I’ve let update froze on my LibreNMS for some time now, here is the details:
root@libre:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.52-70-gf3ba8947f
DB Schema | 2019_05_30_225937_device_groups_rewrite (135)
PHP | 7.3.14-1+0~20200123.51+debian10~1.gbpcf42df
MySQL | 10.3.21-MariaDB-1:10.3.21+maria~buster
RRDTool | 1.7.1
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.9.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Sun, 23 Jun 2019 05:29:12 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
root@libre:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating SQL-Schema OK
Cleaning up DB OK
root@libre:/opt/librenms#
As you see, daily.sh don’t do the update anymore.
I find a trick with git fetch to get daily.sh to work again, but it broke librenms.
Everything works expect device page. And I don’t get any error trace on the librenms.log, just 500 error in the nginx access.
Also, it made re appear some old, deleted devices. I don’t know why.
Any details on the device that does not display correctly ? (type, anything specific) ?
Could you load this broken device page, and grab the error in ./logs/librenms.log to get a hint on what’s going wrong (you may need to do it between to run of the poller, to avoid logs mixed between poller and GUI).
Could you try the following series of commands :
./daily.sh
Sorry for the delay, much to do but not on my monitoring
root@libre:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase OK
Updating Composer packages OK
Updated from f8ce4df0f to 81454ee58 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
root@libre:/opt/librenms# git fetch
root@libre:/opt/librenms# git diff origin master
root@libre:/opt/librenms#
I see that you are running your commands with user root. This is not at all a good idea for permissions and rights. Please switch to “librenms” user, and check all (validate.php, daily.sh) and correct any error you’d see.
Concerning a device which would re-appear, I see no way it could happen except if the database was involved, one way or the other. Any idea of something “weird” on mysql side ?
The problem appeared right after the update of the mysql schema by the daily script.
I think it just killed the database, I don’t see any problem on the “files” side or web server one.