Check the cron job to make sure it is running and using discovery-wrapper.py

Hello everyone.
We have an issue begins from last night.

There is no any graphs available.

Whoops, looks like something went wrong. Check your librenms.log

[email protected]:/opt/librenms# ./validate.php

Component Version
LibreNMS 1.57-70-gbf181b9
DB Schema 2019_04_22_220000_update_route_table (147)
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.36-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/

[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py

/opt/librenms/discovery.php -h all
LibreNMS Discovery

In discovery.php line 120:

Class ‘DeviceCache’ not found

[email protected]:/opt/librenms# ./discovery.php -h localhost
LibreNMS Discovery

In discovery.php line 120:

Class ‘DeviceCache’ not found

Can someone please route me to the right way on how to troubleshoot this issue?

Dears any idea is much appreciating:

[email protected]:/opt/librenms# ./poller.php -h localhost
LibreNMS Poller
Starting polling run:

In poller.php line 167:
Class ‘DeviceCache’ not found

Hi,

I have run in the same issue, and after hours of debug I have finally find a solution!

Error itself is caused by this change: https://github.com/librenms/librenms/pull/10795 and as stated in this PR, fix that worked for me was running php artisan config:clear as a librenms user.

My poller is up and running again.

Just for information:

/validate.php

Component Version
LibreNMS 1.58-2-gddff6dba6
DB Schema 2019_04_22_220000_update_route_table (147)
PHP 7.3.11-1~deb10u1
MySQL 10.3.18-MariaDB-0+deb10u1
RRDTool 1.7.1
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.

1 Like