Here is the start of my /opt/librenms/config.php file
## Have a look in misc/config_definitions.jsmisc/config_definitions.json!
// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
$config['user'] = 'librenms';
### This should *only* be set if you want to *force* a particular hostname/port
### It will prevent the web interface being usable form any other hostname
#$config['base_url'] = "/";
I have a similar issue, but different output from ./validate:
====================================
Component
Version
LibreNMS
21.6.0
DB Schema
2021_02_09_122930_migrate_to_utf8mb4 (204)
PHP
7.4.20
Python
3.8.10
MySQL
10.5.10-MariaDB-1:10.5.10+maria~bionic
RRDTool
1.7.2
SNMP
NET-SNMP 5.8
====================================
[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database is out of date!
[FIX]:
./lnms migrate
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
I was having the same issue (“oops, something went wrong…” while running on 18.04, so I upgraded to 20.04 but still can not access web ui.
Seems like my db is connected, but somehow still fails?
I updated the MariaDB:
====================================
Component | Version
--------- | -------
LibreNMS | 21.6.0
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (204)
PHP | 7.4.20
Python | 3.8.10
MySQL | 10.5.10-MariaDB-1:10.5.10+maria~focal
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 2.1.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database is out of date!
[FIX]:
./lnms migrate
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
But still no luck. Could it be something with this?:
DB Schema 2021_02_09_122930_migrate_to_utf8mb4 (204)
I am very happy to report that I have resolved this issue by recreating the /opt/librenms/.env file using the default values in this article and changing my password to suit.