No connection to the DB

Hi,

On Ubuntu 20.04 I have problems to connect DB:

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

Component Version
LibreNMS 21.5.1-20-g70023c0b5
DB Schema Not Connected (0)
PHP 7.4.3
Python 3.8.5
MySQL ?
RRDTool 1.7.2
SNMP NET-SNMP 5.8
====================================

[OK] Composer Version: 2.1.0
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.

And nothing on the logfile abour that !?

Thanks for your help.

Sam.

Maybe related to your other issue.

What’s in librenms.log?

Yes I corrected permissions on some directories and then the database could be built and now I got there:

Sam.

1 Like

Does your .env file contain correct settings to connect to your database?
Also run php artisan config:clear after changing .env

Hello Sam, i am facing the same issue right jow. Could you help me exactly what permissions you have altered to get it working?

What is your output of ./validate.php?

@Jarod2801
$ ./validate.php

Component Version
LibreNMS 21.5.1-20-g70023c0b5
DB Schema Not Connected (0)
PHP 7.4.3
Python 3.8.5
MySQL ?
RRDTool 1.7.2
SNMP NET-SNMP 5.8

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

[OK] Composer Version: 2.1.2
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.

Check your database settings in /opt/librenms/.env

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