So trying to access Librenms web this morning, I get this error:
Whoops, looks like something went wrong. Check your librenms.log.
I can log into mmariadb with my librenms username and password but librenms does not recognize that is can:
**-bash-4.2$ ./daily.sh
Could not connect to database, check logs/librenms.log.
Updating SQL-Schema OK
Cleaning up DB OK
Could not connect to database, check logs/librenms.log.
-bash-4.2$
**
-bash-4.2$ ./validate.php
Component
Version
LibreNMS
21.8.0-22-ge81ee98
DB Schema
Not Connected (0)
PHP
7.4.22
Python
3.6.8
MySQL
?
RRDTool
1.4.8
SNMP
NET-SNMP 5.7.2
====================================
[OK] Composer Version: 2.1.6
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.
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:
Do you really wish to run this command? (yes/no) [no]:
yes
In Connection.php line 692:
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = librenms and
table_name = migrations and table_type = ‘BASE TABLE’)
Resolved - Thanks Jellyfrog. It was an update to Mariadb. Replaced my my.cnf with generic file. I matched the rpm.saved version with the .env and I am working again.