Skip to content

SSL column for multiple pollers can be incorrectly set causing SQL errors #2907

@bmfmancini

Description

@bmfmancini

Hey Guys

I am seeing something strange only on debian 10

I am seeing the following errors when creating a remote poller on debian 10

08/21/2019 14:57:43 - INSTALL: always: Updating remote configuration file
08/21/2019 14:57:43 - CMDPHP ERROR: A DB Exec Failed!, Error: Data too long for column 'dbssl' at row 1
08/21/2019 14:57:43 - CMDPHP SQL Backtrace: (/install/background.php[52]:Installer::beginInstall(), /lib/installer.php[3200]:Installer->install(), /lib/installer.php[2715]:Installer->installPoller(), /lib/installer.php[2817]:remote_update_config_file(), /install/functions.php[611]:sql_save(), /lib/database.php[1394]:_db_replace(), /lib/database.php[1324]:db_execute(), /lib/database.php[191]:db_execute_prepared())
08/21/2019 14:57:43 - DBCALL ERROR: SQL Save Failed for Table 'poller'. SQL:'INSERT INTO poller (name, hostname, dbdefault, dbhost, dbuser, dbpass, dbport, dbssl) VALUES ('New Poller', 'localhost', 'cacti', '127.0.0.1', 'cacti', 'cacti', 3306, 'false') ON DUPLICATE KEY UPDATE name=VALUES(name), hostname=VALUES(hostname), dbdefault=VALUES(dbdefault), dbhost=VALUES(dbhost), dbuser=VALUES(dbuser), dbpass=VALUES(dbpass), dbport=VALUES(dbport), dbssl=VALUES(dbssl)'
08/21/2019 14:57:43 - INSTALL: always: Finished INSTALL Process for v1.2.5
08/21/2019 14:57:43 - INSTALL: always: Unable to obtain poller id for this server
08/21/2019 14:57:43 - INSTALL: always: Installation was started at 2019-08-21 19:57:30, completed at 2019-08-21 19:57:43
^C
root@localhost:/var/www/html/cacti/log# uname -a
Linux localhost 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux
root@localhost:/var/www/html/cacti/log# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
root@localhost:/var/www/html/cacti/log#

Centos7,Debian9,RHEL7 all good

Metadata

Metadata

Assignees

Labels

bugUndesired behaviourresolvedA fixed issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions