I’m having an issue with my LibreNMS instance - The biggest issue is that I didn’t set it up and I know nothing about it at all, aside from the root PW.
That being said, I can’t access the webUI on any browser (latest Chrome, FF). I keep getting the message:
Error: bootstrap/cache, storage, storage/framework/sessions, storage/framework/views, storage/framework/cache not writable! Run these commands as root on your LibreNMS server to fix:
chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
I upgrade the system it’s running on (yum update), rebooted, then I ran all of those, commands. Rebooted and still isn’t working.
I ran ./validate.php and got the following.
Component | Version |
---|---|
LibreNMS | 1.39-65-g0448c9e |
DB Schema | 250 |
PHP | 7.0.30 |
MySQL | 5.5.56-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: missing column (users/updated_at)
[FAIL] Database: missing column (users/remember_token)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on IRC or the community site (https://t.libren.ms/5gscd):
[FIX] Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE users
ADD updated_at
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER created_at
;
ALTER TABLE users
ADD remember_token
varchar(100) NULL AFTER updated_at
;
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX] Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
HIDDEN FOR PRIVACY
I’m a little hesitant to run random things in the event something breaks because like I said, I didn’t set it up and the guy who did doesn’t work here anymore (and isn’t giving a lot of assistance). It’s running on a CentOS 7