Website no longer loads; Validate command shows exception errors

Receiving exception errors after running ./daily.sh manually 1 day ago; Website now gives 503 Service Unavailable error. Alert emails are still functioning but webpage no longer loads. Also receiving exception errors when running Validate script:

[root@hqlx-prd-nms-01 librenms]# ./daily.sh
Re-running /nms/librenms/daily.sh as librenms user
Fetching new release information OK
Updating to latest release OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK
[root@hqlx-prd-nms-01 librenms]# sudo librenms
sudo: librenms: command not found
[root@hqlx-prd-nms-01 librenms]# su librenms
bash-4.2$ ./validate.php

Component Version
LibreNMS 22.12.0 (2022-12-28T13:26:21-05:00)
DB Schema 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP 8.1.14
Python 3.6.8
Database MariaDB 10.2.41-MariaDB
RRDTool 1.7.1
SNMP 5.7.2
===========================================

[OK] Composer Version: 2.5.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
“Exception: stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused)”
“/nms/librenms/vendor/predis/predis/src/Connection/StreamConnection.php:127”
[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
“Exception: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated”
“/nms/librenms/LibreNMS/Validations/User.php:95”
bash-4.2$ exit
exit

[root@hqlx-prd-nms-01 librenms]# systemctl status httpd
â—Ź httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2023-01-18 10:25:52 EST; 23h ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 2083 (httpd)
Status: “Total requests: 267; Current requests/sec: 0; Current traffic: 0 B/sec”
Tasks: 111
Memory: 7.6M
CGroup: /system.slice/httpd.service
├─ 2083 /usr/sbin/httpd -DFOREGROUND
├─ 2248 /usr/sbin/httpd -DFOREGROUND
├─ 2249 /usr/sbin/httpd -DFOREGROUND
├─ 2250 /usr/sbin/httpd -DFOREGROUND
├─ 2251 /usr/sbin/httpd -DFOREGROUND
├─ 2252 /usr/sbin/httpd -DFOREGROUND
└─19469 /usr/sbin/httpd -DFOREGROUND

Jan 18 10:25:52 hqlx-prd-nms-01 systemd[1]: Starting The Apache HTTP Server…
Jan 18 10:25:52 hqlx-prd-nms-01 systemd[1]: Started The Apache HTTP Server.
[root@hqlx-prd-nms-01 librenms]# systemctl status rrdcached
â—Ź rrdcached.service - Data caching daemon for rrdtool
Loaded: loaded (/etc/systemd/system/rrdcached.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2023-01-18 10:25:52 EST; 23h ago
Main PID: 1653 (rrdcached)
Tasks: 243
Memory: 2.1G
CGroup: /system.slice/rrdcached.service
└─1653 /usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/run/rrdcached.sock -t 4 -F -b /nms/librenms/rrd/

Jan 18 10:25:51 hqlx-prd-nms-01 systemd[1]: Starting Data caching daemon for rrdtool…
Jan 18 10:25:52 hqlx-prd-nms-01 systemd[1]: Started Data caching daemon for rrdtool.
[root@hqlx-prd-nms-01 librenms]# systemctl status memcached
â—Ź memcached.service - Memcached
Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2023-01-18 10:31:18 EST; 23h ago
Main PID: 6282 (memcached)
Tasks: 6
Memory: 880.0K
CGroup: /system.slice/memcached.service
└─6282 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024

Jan 18 10:31:18 hqlx-prd-nms-01 systemd[1]: Started Memcached.

Server is running RHEL7

anyone?

I resolved 1 error but 1 exception error still remains and it is resulting in graphs not displaying

bash-4.2$ ./daily.sh
Fetching new release information OK
Updating to latest release OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK
bash-4.2$ ./validate.php

Component Version
LibreNMS 22.12.0 (2022-12-28T13:26:21-05:00)
DB Schema 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP 8.1.14
Python 3.6.8
Database MariaDB 10.2.41-MariaDB
RRDTool 1.7.1
SNMP 5.7.2
===========================================

[OK] Composer Version: 2.5.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
“Exception: stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused)”
“/nms/librenms/vendor/predis/predis/src/Connection/StreamConnection.php:127”
[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

Hi!
I have same errors:

[OK] Composer Version: 2.5.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[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
“Exception: stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused)”
“/opt/librenms/vendor/predis/predis/src/Connection/StreamConnection.php:127”
[FAIL] No active polling method detected
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
“Exception: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated”
“/opt/librenms/LibreNMS/Validations/User.php:95”

lostsoul77, how You resolved a second error?

I managed to fix the first error (port 6379 - it is around Redis):
apt install redis redis-tools
But now I have one Warning:
[WARN] Using database for locking, you should set CACHE_DRIVER=redis

did you ever find a fix for the CACHE_DRIVER

I managed to solve the problem in a very simple way: go to Global Settings → System → Reporting and disable “reporting.dump_errors” (you may want to disable “Send Usage Reports” as well). After that, run validate.php and everything runs without errors!
I don’t know how sending error dumps is related to the above errors, but disabling this item really helped.

1 Like

Thanks that solved the display problem and the errors.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.