PHP 502 errors as of June 6 2025

Thanks so much again Tony, things are definitely looking a lot happier - I’ve removed the fastcgi buffer workaround and am not getting 502s on the alert rules page any more.

Errors that we’re still seeing in nginx.log having updated to 25.5.0-126-ge99d3968c (2025-06-12T05:54:59+01:00) are:

PHP Error(2): Undefined array key "name" in /opt/librenms/includes/html/functions.inc.php:650;
PHP Error(2): mkdir(): File exists from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:652 in /opt/librenms/LibreNMS/Util/Clean.php:78;
PHP Error(2): Undefined array key "error" in /opt/librenms/includes/html/functions.inc.php:700;
request: POST /ajax_table.php, referrer: /overview?dashboard=2

Not sure if this related, but seeing the below in daily.log as well:

PHP Error(2): unlink(/opt/librenms/bootstrap/cache/config.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/app/Console/Commands/ClearConfigCommand.php:22
PHP Error(2): unlink(/opt/librenms/bootstrap/cache/events.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/artisan:16
PHP Error(2): unlink(/opt/librenms/bootstrap/cache/routes-v7.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/artisan:16

Also still getting this error when running validate.php, although only on the distributed pollers and not on the web server, so don’t know if there something else going on:

PHP Error(8192): gethostbyname(): Passing null to parameter #1 ($hostname) of type string is deprecated from vendor/dapphp/radius/src/Radius.php:321 in /opt/librenms/LibreNMS/Authentication/RadiusAuthorizer.php:26
1 Like

My install is having the 502 errors as well, but it looks like my PHP also updated to 8.4.8 from 8.3.x. I know enough to be dangerous, is there an upgrade guide to change it over to 8.4? Thanks All

librenms@e071librenms01:~$ ./daily.sh
Clearing caches OK
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@e071librenms01:~$ ./validate.php

Component Version
LibreNMS 25.5.0-134-g8cec8f846 (2025-06-12T15:35:21+00:00)
DB Schema 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP 8.4.8
Python 3.10.12
Database MariaDB 10.6.22-MariaDB-0ubuntu0.22.04.1
RRDTool 1.7.2
SNMP 5.9.1
===========================================

[OK] Composer Version: 2.8.9
[OK] Dependencies up-to-date.
[OK] Database Connected
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
librenms@e071librenms01:~$

Here is my validate.php

librenms@librenms:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.5.0-134-g8cec8f846 (2025-06-12T22:35:21+07:00)
DB Schema | 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP       | 8.3.12
Python    | 3.12.3
Database  | MariaDB 10.11.13-MariaDB-0ubuntu0.24.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.4.pre2
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
librenms@librenms:~$

This is the nginx error when I select App → Apache The graphs are display but there is error.

2025/06/13 08:16:43 [error] 1035466#1035466: *4215 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $graph_subtype in /opt/librenms/includes/html/graphs/application/auth.inc.php:15" while reading response header from upstream, client: 192.168.1.91, server: 192.168.1.12, request: "GET /graph.php?height=100&width=220&to=1749777300&from=1749690900&legend=no&type=application_apache_bits&id=23 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "192.168.1.12", referrer: "http://192.168.1.12/apps/app=apache"
2025/06/13 08:16:43 [error] 1035466#1035466: *4219 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $graph_subtype in /opt/librenms/includes/html/graphs/application/auth.inc.php:15" while reading response header from upstream, client: 192.168.1.91, server: 192.168.1.12, request: "GET /graph.php?height=100&width=220&to=1749777300&from=1749690900&legend=no&type=application_apache_hits&id=23 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "192.168.1.12", referrer: "http://192.168.1.12/apps/app=apache"
2025/06/13 08:16:43 [error] 1035466#1035466: *4217 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $graph_subtype in /opt/librenms/includes/html/graphs/application/auth.inc.php:15" while reading response header from upstream, client: 192.168.1.91, server: 192.168.1.12, request: "GET /graph.php?height=100&width=220&to=1749777300&from=1749690900&legend=no&type=application_apache_cpu&id=23 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "192.168.1.12", referrer: "http://192.168.1.12/apps/app=apache"
2025/06/13 08:16:43 [error] 1035466#1035466: *4218 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $graph_subtype in /opt/librenms/includes/html/graphs/application/auth.inc.php:15" while reading response header from upstream, client: 192.168.1.91, server: 192.168.1.12, request: "GET /graph.php?height=100&width=220&to=1749777300&from=1749690900&legend=no&type=application_apache_scoreboard&id=23 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "192.168.1.12", referrer: "http://192.168.1.12/apps/app=apache"

This is the nginx error log when I choose App → Overview. There is no graph.

`2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: " PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.i
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_nu
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "act_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_mul
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/gene
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "s/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "l/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/in
2025/06/13 08:18:47 [error] 1035465#1035465: *4307 FastCGI sent in stderr: "nms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in
2025/06/13 08:18:47 [error] 1035465#1035465: *4308 FastCGI sent in stderr: "; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:18; PHP message: PHP Error(2): Cannot modify header information - headers already sent by (output started at /opt/librenms/includes/html/functions.inc.php:373) in /opt/librenms/includes/html/graphs/graph.inc.php:104" while reading upstream, client: 192.168.1.91, server: 192.168.1.12, request: "GET /graph.php?height=100&width=218&to=1749777300&from=1749690900&legend=no&type=application_systemd_all&id=125 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "192.168.1.12", referrer: "http://192.168.1.12/apps"
2025/06/13 08:18:47 [error] 1035466#1035466: *4301 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $graph_subtype in /opt/librenms/includes/html/graphs/application/auth.inc.php:15; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:18; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP
2025/06/13 08:18:47 [error] 1035466#1035466: *4301 FastCGI sent in stderr: " PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.i
2025/06/13 08:18:47 [error] 1035466#1035466: *4301 FastCGI sent in stderr: "php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:104; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_numbers.inc.php:75; PHP message: PHP Error(2): Undefined variable $printtotal in /opt/librenms/includes/html/graphs/generic_multi_line_exact_nu

Here is my validate.php

===========================================
Component | Version
--------- | -------
LibreNMS  | 25.5.0-136-gcccf286f4 (2025-06-13T07:43:43-04:00)
DB Schema | 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP       | 8.4.6
Python    | 3.10.12
Database  | MariaDB 10.6.22-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[WARN]  Debug enabled.  This is a security risk.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Distributed Polling setting is enabled globally
[OK]    Connected to rrdcached
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached

And error logs from nginx when trying to view a device config for oxidized.

2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:2
2025/06/13 12:53:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "7; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Undefined variable $previous_config in /opt/librenms/includes/html/pages/device/showconfig.inc.php:287; PHP message: PHP Error(2): Trying to access array offset on null in /opt/librenms/includes/html/pages/device/showconfig.inc.
2025/06/13 12:53:03 [error] 1257#1257: *121945 upstream sent too big header while reading response header from upstream, client: redacted.redacted.30.1, server: librenmsprod.redacted.com, request: "GET /device/91/showconfig HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "librenmsprod.redacted.com", referrer: "https://librenmsprod.redacted.com/device/91"
2025/06/13 12:54:03 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159; PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159; PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159" while reading response header from upstream, client: redacted.redacted.30.1, server: librenmsprod.redacted.com, request: "POST /ajax/table/device HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "librenmsprod.redacted.com", referrer: "https://librenmsprod.redacted.com/devices/type=network"
2025/06/13 12:54:30 [error] 1257#1257: *121945 FastCGI sent in stderr: "PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159; PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159; PHP message: PHP Error(8192): htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/app/Http/Controllers/Table/DeviceController.php:159" while reading response header from upstream, client: redacted.redacted.30.1, server: librenmsprod.redacted.com, request: "POST /ajax/table/device HTTP/1.1", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "librenmsprod.redacted.com", referrer: "https://librenmsprod.redacted.com/devices/type=network"

1 Like

@sheevpaulpatine Fix issue in showconfig by murrant · Pull Request #17851 · librenms/librenms · GitHub Fix cisco hardware rewrite returning non-string by murrant · Pull Request #17852 · librenms/librenms · GitHub

@kanokc Fix a graph issue by murrant · Pull Request #17853 · librenms/librenms · GitHub

This is an upstream issue, fixed there already, waiting for new release:

PHP Error(2): mkdir(): File exists from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:652 in /opt/librenms/LibreNMS/Util/Clean.php:78;

These are non-issues. Tried to delete a file that doesn’t exist.

PHP Error(2): unlink(/opt/librenms/bootstrap/cache/config.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/app/Console/Commands/ClearConfigCommand.php:22
PHP Error(2): unlink(/opt/librenms/bootstrap/cache/events.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/artisan:16
PHP Error(2): unlink(/opt/librenms/bootstrap/cache/routes-v7.php): No such file or directory from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:308 in /opt/librenms/artisan:16

Uh, this probably means you have auth set to radius on your pollers?

PHP Error(8192): gethostbyname(): Passing null to parameter #1 ($hostname) of type string is deprecated from vendor/dapphp/radius/src/Radius.php:321 in /opt/librenms/LibreNMS/Authentication/RadiusAuthorizer.php:26

Others fixed here: Fix a couple issues in format_alert_details by murrant · Pull Request #17855 · librenms/librenms · GitHub

When asking for help and support, please provide as much information as possible. This should include:

  • Steps to reproduce an issue.
  • The output of ./validate.php

If it’s an issue with the WebUI then please consider including a screenshot and the browser version you are using.

If you are having troubles with discovery/polling include the pastebin output of:

./discovery.php -h HOSTNAME -d | ./pbin.sh
./poller.php -h HOSTNAME -r -f -d | ./pbin.sh

librenms@librenms:~$ ./validate.php

Component Version
LibreNMS 25.5.0-142-g676ccd6ad (2025-06-14T22:21:09+04:00)
DB Schema 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP 8.3.12
Python 3.8.10
Database MariaDB 10.3.39-MariaDB-0ubuntu0.20.04.2
RRDTool 1.7.2
SNMP 5.8
===========================================

[OK] Composer Version: 2.8.9
[OK] Dependencies up-to-date.
[OK] Database Connected
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached

still got same error after update

$ ./validate.php 
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.6.0-3-g56d45e09e (2025-06-17T15:25:51+07:00)
DB Schema | 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP       | 8.3.22
Python    | 3.9.21
Database  | MariaDB 11.4.7-MariaDB
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok
$ cat /etc/*release
NAME="Red Hat Enterprise Linux"
VERSION="9.6 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.6"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.6 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9"
BUG_REPORT_URL="https://issues.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.6"
Red Hat Enterprise Linux release 9.6 (Plow)
Red Hat Enterprise Linux release 9.6 (Plow)

Same issue here

./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.6.0-3-g56d45e09e (2025-06-17T10:25:51+02:00)
DB Schema | 2025_06_11_025425_hr_device_table_add_status_default (343)
PHP       | 8.3.15
Python    | 3.8.10
Database  | MariaDB 10.3.39-MariaDB-0ubuntu0.20.04.2
RRDTool   | 1.7.2
SNMP      | 5.8
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
PHP Error(2): stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) from vendor/predis/predis/src/Connection/Resource/StreamFactory.php:209 in /opt/librenms/LibreNMS/Validations/Poller/CheckRedis.php:67
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

Re-run ./daily.sh to fix the redis reporting.

getting 502 when trying to log in now
I am using LDAP auth if that helps

2025/06/18 08:42:58 [error] 1811508#1811508: *1703 FastCGI sent in stderr: "PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:313; PHP message: PHP Error(2): Trying to access array offset on value of type null in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:313; PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:314; PHP message: PHP Error(2): Trying to access array offset on value of type null in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:314; PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:315; PHP message: PHP Error(2): Trying to access array offset on value of type null in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:315; PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:316; PHP message: PHP Error(2): Trying to access array offset on value of type null in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:316; PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:266; PHP message: PHP Error(2): Trying to access array offset on value of type null in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:266; PHP message: PHP Error(2): Undefined array key 1 in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:268; PHP message: PHP Error(2): ldap_compare(): Compare: No such attribute in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:47; PHP message: PHP Error(2): Trying to access array offset on value of type int in /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:313; PHP message: PHP Error(
2025/06/18 08:42:58 [error] 1811508#1811508: *1703 upstream sent too big header while reading response header from upstream, client: 10.246.16.1, server: librenms.truestream.us, request: "POST /login HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm-librenms.sock:", host: "librenms.truestream.us", referrer: "https://librenms.truestream.us/login"
librenms@librenms:~$ ./validate.php 
===========================================
Component | Version
--------- | -------
LibreNMS  | 25.6.0-12-g822b7ef62 (2025-06-18T08:06:58-04:00)
DB Schema | 2025_06_11_173916_drop_alert_rule (344)
PHP       | 8.2.26
Python    | 3.11.2
Database  | MariaDB 10.11.6-MariaDB-0+deb12u1
RRDTool   | 1.7.2
SNMP      | 5.9.3
===========================================

[OK]    Composer Version: 2.8.9
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Distributed Polling setting is enabled globally
[OK]    Connected to rrdcached
[OK]    Active pollers found
[OK]    Dispatcher Service is enabled
[OK]    Locks are functional
[OK]    Python wrapper cron entry is not present
[OK]    Redis is functional
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
[FAIL]  Scheduler is not running

I needed to get this working so I changed the buffer size like listed above from hartred

  fastcgi_buffer_size 128k;
  fastcgi_buffers 16 128k;

and now I can log in.

Receiving 502 error on BGP All Sessions and BGP External, logs from
/var/log/nginx/error.log

Hi,

I have this same problem with login page after a cache clearing, I have a 502 BAD gateway in place of login page.

In access.log i have this message :

2025/06/19 15:18:48 [error] 930#930: *586362 FastCGI sent in stderr: "PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122ecaaf.php:44; PHP message: PHP Error(8192): substr(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/librenms/storage/framework/views/d70fd842eac18989d3ee7ebc122e
2025/06/19 15:18:48 [error] 930#930: *586362 upstream sent too big header while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: librenms.XXX, request: “GET /login HTTP/2.0”, upstream: “fastcgi://unix:/run/php-fpm-librenms.sock:”, host: “librenms.XXX”

Hello.
I’m receiving 502 bad gateway errors if I click on some LibreNMS interfaces.
Depending on the day, sometimes it works, sometimes it doesn’t, I suspect it’s because the daily updates are breaking/fixing the errors every day

./validate.php

Component Version
LibreNMS 25.6.0-25-g714900ee4 (2025-06-19T21:33:58+01:00)
DB Schema 2025_06_11_173916_drop_alert_rule (344)
PHP 8.3.20
Python 3.10.12
Database MariaDB 10.6.22-MariaDB-0ubuntu0.22.04.1
RRDTool 1.7.2
SNMP 5.9.1
===========================================

[OK] Composer Version: 2.8.9
[OK] Dependencies up-to-date.
[OK] Database Connected
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
librenms@librenms:~$

Here is the /var/log/nginx/error.log:
2025/06/20 12:11:45 [error] 1187#1187: *47316 FastCGI sent in stderr: "PHP messa - Pastebin.com

When I click on some interfaces (like 11 or 12), and the 508 Bad Gateway | nginx/1.18.0 (Ubuntu) is shown, the following error appears on the /var/log/nginx/error.log logfile:

2025/06/20 16:36:58 [error] 1464982#1464982: *920 FastCGI sent in stderr: "PHP message: PHP Error(2): Undefined array key “tab” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:25; PHP message: PHP Error(2): Undefined array key “tab” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:127; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616a6cf1e326c4af521c233858.php:343; PHP message: PHP Error(2): Undefined array key “neighbor_ports” in /opt/librenms/storage/framework/views/92b6a6616
2025/06/20 16:36:58 [error] 1464982#1464982: *920 upstream sent too big header while reading response header from upstream, client: 172.30.254.254, server: 172.30.0.200, request: “GET /device/device=438/tab=port/port=56717/ HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.3-fpm.sock:”, host: “172.30.0.200”, referrer: “http://172.30.0.200/device/438/ports
^C

Otherwise, the following error is always appearing on the /var/log/nginx/error.log logfile (even when not clicking on any interfaces):

2025/06/20 16:36:38 [error] 1464982#1464982: *954 FastCGI sent in stderr: “PHP message: PHP Error(2): mkdir(): File exists from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:652 in /opt/librenms/LibreNMS/Util/Clean.php:78” while reading response header from upstream, client: 172.30.254.254, server: 172.30.0.200, request: “GET /graph.php?from=-1d&legend=yes&text=&id=52816&type=port_bits&absolute_size=0&width=300&height=150 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.3-fpm.sock:”, host: “172.30.0.200”, referrer: “http://172.30.0.200/
2025/06/20 16:36:38 [error] 1464982#1464982: *918 FastCGI sent in stderr: “PHP message: PHP Error(2): mkdir(): File exists from vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:652 in /opt/librenms/LibreNMS/Util/Clean.php:78” while reading response header from upstream, client: 172.30.254.254, server: 172.30.0.200, request: “GET /graph.php?from=-7d&legend=yes&text=&id=52816&type=port_bits&absolute_size=0&width=300&height=150 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php8.3-fpm.sock:”, host: “172.30.0.200”, referrer: “http://172.30.0.200/

After editing the /etc/nginx/fastcgi.conf file and adding the following (I decided to go all in):
fastcgi_buffer_size 256k;
fastcgi_buffers 32 256k;

I can access the pages that were showing the 508 Bad Gateway | nginx/1.18.0 (Ubuntu) error (although the errors continue on the /var/log/nginx/error.log)

Thanks @hartred :grinning: