[Pkg-cacti-maint] Bug#949385: cacti: Cacti fails under PHP-FPM
Adam Thompson
athompso at athompso.net
Mon Jan 20 14:28:06 GMT 2020
Package: cacti
Version: 1.2.2+ds1-2+deb10u2
Severity: grave
Tags: upstream newcomer
Justification: renders package unusable
Dear Maintainer,
* What led up to the situation?
Switching from Apache2 to Nginx, which mandated switching from mod_php to PHP-FPM.
* What exactly did you do (or not do) that was effective (or
ineffective)?
Setting this line in nginx.conf:
fastcgi_catch_stderr "AAABBBCCCDDDEEEFFF"; # try to always pass the crap through, never detect an error
* What was the outcome of this action?
Cacti at least loads now, but generates a nearly endless series of non-understandable error messages.
* What outcome did you expect instead?
Cacti to just... work.
The exact error is:
[20-Jan-2020 08:19:02] WARNING: [pool www] child 18496 said into stderr: "NOTICE: PHP message: PHP Notice: Trying to access array offset on value of type null in /usr/share/cacti/site/lib/functions.php on line 4431"
This looks a lot like https://github.com/Cacti/cacti/issues/3127, I think?
Supposedly this is fixed in 1.2.7 somehow, but even though 1.2.8 is available in testing, I'm still on Buster, and I've seen the package maintainer's comments that installing -testing's version on -stable isn't likel to work at all, so I haven't tried completely breaking my server in that way yet.
Once I convince nginx to pass through error details instead of just dumping me at a "502 bad gateway" error, Cacti looks like it sorta kinda works... but it doesn't actually work. Every page load gets me a popup with "Sorry, we could not process your last action. Error: 200 Reason: The response to the last action was unexpeced." and in the logs, another corresponding entry about functions.php:4431.
-- System Information:
Debian Release: 10.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cacti depends on:
ii dbconfig-common 2.0.11+deb10u1
ii dbconfig-mysql 2.0.11+deb10u1
ii debconf [debconf-2.0] 1.5.71
ii fonts-dejavu-core 2.37-1
ii fonts-dejavu-extra 2.37-1
ii fonts-fork-awesome 1.1.5+ds1-2
ii javascript-common 11
ii libapache2-mod-php 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii libapache2-mod-php7.4 [libapac 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii libjs-c3 0.4.11+dfsg-2
ii libjs-chart.js 2.7.3+dfsg-5
ii libjs-d3 3.5.17-2
ii libjs-jquery 3.3.1~dfsg-3
ii libjs-jquery-colorpicker 1.2.17-1
ii libjs-jquery-cookie 12-1.1
ii libjs-jquery-hotkeys 0~20130707+git2d51e3a9+dfsg-2
ii libjs-jquery-jstree 3.3.7+dfsg1-1
ii libjs-jquery-metadata 12-1.1
ii libjs-jquery-tablesorter 1:2.31.1+dfsg1-1
ii libjs-jquery-timepicker 1.2-1
ii libjs-jquery-ui 1.12.1+dfsg-5
ii libjs-jquery-ui-theme-smoothne 1.12.1+dfsg-1
ii libjs-jquery-ui-theme-south-st 1.12.1+dfsg-1
ii libjs-jquery-ui-theme-ui-darkn 1.12.1+dfsg-1
ii libjs-jquery-ui-touch-punch 0.0~git20141218.2.4bc0091+dfsg1-2
ii libphp-phpmailer 6.0.6-0.1
ii perl 5.28.1-6
ii php-gd 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-gmp 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-ldap 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-mbstring 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-mysql 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-php-gettext 1.0.12-0.1
ii php-phpseclib 2.0.14-1
ii php-snmp 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php-twig 2.6.2-2
ii php-xml 2:7.4+71+0~20191219.19+debian10~1.gbpefc769
ii php7.4-cli [php-cli] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-gd [php-gd] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-gmp [php-gmp] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-json [php-json] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-ldap [php-ldap] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-mbstring [php-mbstring] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-snmp [php-snmp] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii php7.4-xml [php-xml] 7.4.1-1+0~20191218.8+debian10~1.gbp21c50e
ii rrdtool 1.7.1-2
ii snmp 5.7.3+dfsg-5
ii ucf 3.0038+nmu1
Versions of packages cacti recommends:
ii apache2 [httpd] 2.4.38-3+deb10u3
ii default-mysql-server 1.0.5
ii iputils-ping 3:20180629-2
ii logrotate 3.14.0-4
ii mariadb-server-10.3 [virtual-mysql-server] 1:10.3.18-0+deb10u1
ii nginx [httpd] 1.16.1-1~buster
Versions of packages cacti suggests:
pn cacti-spine <none>
ii moreutils 0.62-1
ii snmpd 5.7.3+dfsg-5
-- debconf information:
cacti/app-password-confirm: (password omitted)
cacti/password-confirm: (password omitted)
cacti/mysql/admin-pass: (password omitted)
cacti/mysql/app-pass: (password omitted)
cacti/remote/port:
cacti/install-error: abort
* cacti/dbconfig-upgrade: true
* cacti/db/dbname: cacti
* cacti/webserver: apache2
cacti/missing-db-package-error: abort
cacti/remote/newhost:
cacti/dbconfig-remove:
cacti/remove-error: abort
cacti/dbconfig-install: true
cacti/database-type: mysql
cacti/purge: false
* cacti/mysql/method: Unix socket
* cacti/upgrade-backup: true
* cacti/passwords-do-not-match:
cacti/upgrade-error: retry
cacti/internal/reconfiguring: false
* cacti/db/app-user: cacti_muug at localhost
cacti/internal/skip-preseed: false
* cacti/mysql/admin-user: debian-sys-maint
cacti/dbconfig-reinstall: false
cacti/remote/host: localhost
More information about the Pkg-cacti-maint
mailing list