Debian 9, nginx.
Also having this exact same issue. ./validate.php tells me this:
Fail: Some folders have incorrect file permissions, this may cause issues.
Fix:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
I run the commands, rerun validate.php, everything’s happy, check a few minutes later and get the same exact error again.
seeing similar issue on centos 7
====================================
Component |
Version |
LibreNMS |
1.45-10-g4bdfc8e |
DB Schema |
270 |
PHP |
7.2.10 |
MySQL |
5.5.60-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
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
html/js/jquery.min.js
[FAIL] Some folders have incorrect file permissions, this may cause issues.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/storage/framework/sessions/cG1RCHLaKKJxR7BzCEfZz9UAFaqcxFw6zlGBtWvg
If you are seeing errors in validate, please follow the instructions in the validate.php output before posting (marked with [FIX]).
Transient files under /opt/librenms/storage/framework/
can be ignored from now. You cannot permanently fix that at this time, but the directories MUST have librenms group write access.
Additionally, most cases that cannot fixed by the prescribed fixes are different and should be in their own thread.