This happened to me firstly, too
Ok mine is related to the custom menu How to add a custom menu item, I guess i need to update my Auth on the menu code. Temp fix it to rename the file to anything else html/includes/print-menubar-custom.inc.php
I am used this menu too, but i also did ./scripts/github-remove -d and now i am dont have this custom menu in that folder and problem is still there
Ahh Perhaps try run another ./daily.sh ? thats the only other thing i did
But maybe you are right, i have another install on ubuntu 16.0.4 and there i ran ./scripts/github-remove -d, then ./daily.sh and it is working… but on new install on ubuntu 18.0.4 i cant update. it stuck on
Cleaning up DB
`
Had to add Your changes in How to add a custom menu item and now it works again.
EDIT:
I did a ./daily.sh , now I con’t get to the webinterface at all, but when I check librenms.log I see a stack trace whenever I call the webinterface:
[2018-09-12 11:02:04] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/opt/librenms/v...', 122, Array)
#1 /opt/librenm (...)
Ahh yes it now seems you now have the same issue as @jozefrebjak I’ve done another ./daily.sh under librenms user, but its still OK.
If it could be permission denied, perhaps try another chown -R librenms:librenms /opt/librenms ?
So ok I got it. This worked for me.
I edited data owner in
/opt/librenms/storage/framework/chache/
i had owner librenms, but it must be www-data
when i edited this, than I can access my webui
This morning, two my librenms`s stop working, no devices in web-ui, and here is log:
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: from
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:76 Undefined index: to
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:436 Undefined index: searchquery
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:437 Undefined index: os
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:438 Undefined index: version
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:439 Undefined index: hardware
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:440 Undefined index: features
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:441 Undefined index: location
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:443 Undefined index: state
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:444 Undefined index: disabled
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:445 Undefined index: ignore
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:446 Undefined index: group
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:453 Undefined index: searchbar
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:459 Undefined index: searchquery
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:469 Undefined index: section
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/pages/devices.inc.php:469 Undefined index: bare
[2018-09-12 12:14:52] production.ERROR: 8 /opt/librenms/html/legacy_index.php:271 Undefined variable: no_refresh
You mean like a
chown -R YOURWEBUSER:YOURWEBGROUP /opt/librenms/storage/framework/chache/
recursively on the directory?
chown -R www-data:www-data /opt/librenms/storage/framework/cache/data
If it helps, my permissions are:
chown -R nginx:nginx /opt/librenms/storage/framework/cache/data
maybe try both
For example I dont have user nginx
My webserver user is in the librenms group, so with a
MYSERVER:/ # ls -al /opt/librenms/storage/framework
drwxrwxr-x 3 librenms librenms 4096 12. Sep 10:44 cache
(...)
it has r/w/x permissions.
I edited only folder data
total 84
drwxrwxr-x. 6 librenms librenms 4096 May 11 10:26 .
drwxrwxr-x+ 6 librenms librenms 4096 May 11 10:26 ..
drwxrwxr-x. 3 librenms librenms 4096 Sep 12 09:03 cache
drwxrwxr-x. 2 librenms librenms 36864 Sep 12 11:26 sessions
drwxrwxr-x. 2 librenms librenms 4096 May 11 10:26 testing
drwxrwxr-x. 2 librenms librenms 24576 Sep 12 09:03 views
librenms:~# ls -al /opt/librenms/storage/framework/cache/
total 16
drwxrwxr-x. 3 librenms librenms 4096 Sep 12 09:03 .
drwxrwxr-x. 6 librenms librenms 4096 May 11 10:26 ..
drwxr-xr-x. 3 www-data www-data 4096 Sep 12 09:03 data
-rw-rwxr--. 1 librenms librenms 14 May 11 10:26 .gitignore
Nope. Worked at first (with a “problem with the backend”-message on the dashboard), but after logging out the webinterface is not showing any more. Also, deleting all the cookies for the website didn’t help.
try on chrome guest window
Check to see what the librenms.log file says now, and re-run validate.php to check all tests are still ok.
if you still see permission errors in librenms.log, you might need to double check your webserver user ps aux | egrep ‘(apache|httpd|nginx)’
and make sure that /opt/librenms/storage/framework/cache/data folder is recursively owned by that user.
Nope, no luck.
Tried it in incognito mode on:
openSuSE leap (15.0)
- FF 60.2.0esr (64-Bit)
- Chromium 69.0.3497.81 (openSUSE Build) (64-Bit)
os X 10.13.6
- Chrome 69.0.3497.92
All failed.
or - if you have selinux enabled, I would re- configure the contexts needed by LibreNMS Cannot access WebUI
or try with selinux turned off, check with sestatus
I think your other post with fping6 might be related to this.