Web interface outputing "Whoops, looks like something went wrong. Check your librenms.log."

Hello, having an issue with my installation, intiially I was getting a 500 error and after checking validate I had the wrong php mysql driver which I fixed with ( yum swap php71w-mysql php71w-mysqlnd ). Now I loaded up my web interface, saw the login for a minute then i get the "whoops looks like something went wrong) after checking the logs I’m seeing tons of output about the laravel framework which I cant decipher ( https://pastebin.com/JnQc5uXf ).

Here’s the output of my validate

[root@localhost librenms]# ./validate.php

Component Version
LibreNMS 1.43-70-g9aa429c
DB Schema 267
PHP 7.1.21
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (netmon) has not completed within the last 5 minutes, check the cron job.
[FAIL] The poller (netmon.dedicontrol.com) has not completed within the last 5 minutes, check the cron job.
[root@localhost librenms]#

Try this:

2 Likes

Solved by running,

chown -R librenms:librenms /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
2 Likes

Solved for me on ubuntu too.

hi
i got the same issue Whoops, looks like something went wrong. Check your librenms.log. but when i run this command
./validate.php
I got this
librenms@librenms:~$ ./validate.php

Component Version
LibreNMS 21.4.0
DB Schema 2020_12_14_091314_create_port_group_port_table (202)
PHP 7.4.13
Python 3.6.9
MySQL 10.5.9-MariaDB-1:10.5.9+maria~bionic
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 2.0.12
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database is out of date!
[FIX]:
./lnms migrate

after that i run this commad to fix the issue ./lnms migrate but i got this error :slight_smile:
librenms@librenms:~$ ./lnms migrate


  • Application In Production!     *
    

Do you really wish to run this command? (yes/no) [no]:

yes

Migrating: 2020_12_14_091314_create_port_groups_table

In Connection.php line 678:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'port_groups
’ already exists (SQL: create table port_groups (id int unsigned not nu
ll auto_increment primary key, name varchar(255) not null, desc varchar
(255) null) default character set utf8mb4 collate ‘utf8mb4_unicode_ci’)

In Exception.php line 18:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'port_groups
’ already exists

In PDOStatement.php line 112:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'port_groups
’ already exists

please advice
Thank you