WebGUI suddenly stopped working(404 Not Found)

All of a sudden my WebGui is not accessible and returns a 404 error:

I have searched for a similar problem but cant find an answer, am in desperate need of assistance, the NMS is a critical part of our support

$ ./validate.php

Component Version
LibreNMS 1.47-106-g4ed8f67
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.0.28-0ubuntu0.16.04.1
MySQL 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.8.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Just to add, these are the error logs I cannot find answer to:

/opt/librenms/logs# tail -5 access_log
41.xx.xx.xx - - [26/Jan/2019:03:44:48 +0200] “POST /ajax/dash/availability-map HTTP/1.1” 404 528 “http://example.com/librenms” “Mozilla/5.0 (Linux; Android 8.0.0; SM-T825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36”
41.xx.xx.xx - - [26/Jan/2019:03:44:48 +0200] “POST /ajax/dash/eventlog HTTP/1.1” 404 520 “http://example.com/librenms” “Mozilla/5.0 (Linux; Android 8.0.0; SM-T825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36”
41.xx.xx.xx - - [26/Jan/2019:03:44:48 +0200] “POST /ajax/dash/top-interfaces HTTP/1.1” 404 526 “http://example.com/librenms/” “Mozilla/5.0 (Linux; Android 8.0.0; SM-T825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36”

have same issue, that appeared after automated version upgrade.

If I may ask, when did yours happen exactly?

exactly after I run manually ./daily.sh at 00.00 or so.
I saw the version upgrade and was wondering what is new. Since then I have been spending time to look for a solution. I am not sure, but that was my impression. I reverted back from snapshot, started to run and re-run ./daily.sh , same happened.

wondering if I should also run a snapshot or wait for help with admins…thanks for the info

Had the same issue here. Enabled ‘release’ configuration in setup.php and applied some git magic command:
cd /opt/librenms && git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
to downgrade to last release version.

Bug found and I’m reverting the PR that introduced it.

1 Like

Ok. You can run ./daily.sh again

2 Likes

Thanks, it’s restored after running ./daily.sh

Updated from 4ed8f67e0 to a0e33a670 OK
confirmed, issue has been solved. Thank you!

Thank you for fixing this so quickly!

I’m having the same problem but when running the ./daily.sh command I get the below error. Before I found this post I also found a previous post where the command “./scripts/github-remove -d” was suggested so I ran that previously but I still have the problem. Thanks for any help.

Re-running /opt/librenms/daily.sh as librenms user
./daily.sh: line 166: sudo: command not found

I figured it out. I had to “su librenms” first. Back up and working.

Talk about a quick fix. :slightly_smiling_face:

Man I love this project. Thanks!

1 Like