Today no devices or anything is showing up in the libre webgui. On the settings icon the only thing I can see there is “About LibreNMS”. No settings or anything.
I can see my own user settings but at the end of that page it says Roles “No roles” and Devices Permission “No access”.
It seems like the user have lost the access?
Look at the screenshot ff the personal user settings showing no access / no roles in the picture 1.
And here is the drop down of the setting meny. As you can see it’s only the “About libreNMS” and not all the settings I need to access. See pic number 2.
I can see that devices are still there when looking at the logs in CLI:
"/opt/librenms/poller.php 103 2023-08-28 10:52:46 - 1 devices polled in 1.778 secs
/opt/librenms/poller.php 118 2023-08-28 10:52:46 - 1 devices polled in 1.921 secs
/opt/librenms/poller.php 93 2023-08-28 10:52:46 - 1 devices polled in 1.766 secs
"
Here is the output of the validate-script:
librenms@STSLIBNMS02:~$ ./validate.php
Component
Version
LibreNMS
23.8.2-11-g2cd207028 (2023-08-28T07:13:40+02:00)
DB Schema
2023_08_02_120455_vendor_ouis_unique_index (257)
PHP
8.1.12
Python
3.8.10
Database
MariaDB 10.3.38-MariaDB-0ubuntu0.20.04.1
RRDTool
1.7.2
SNMP
5.8
===========================================
[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
Everything is OK from the validation script.
I have tried to create a new user with lnms user:add but always getting error. See pic number 3.
Anybody got any ideas?
Here is the pictures. (Couldn’t add multiple pictures as a new user).
You might have had unlucky enough timing to find a short lived bug. Try:
./daily.sh
lnms db:seed --force
lnms user:add newadmin -r admin
log in to the webui and add roles back to users missing roles under <gear>->Manage Users
Some users may only need to run lnms db:seed --class='Database\Seeders\RolesSeeder' and lnms tinker --execute='Bouncer::refresh()'
This worked for me as I was having same issue, had to run daily.sh a couple times, only myself and a couple other user lost roles everyone else was fine. Thanks for the fix.