Hello,
We are having a small issue with the validate.php. Files in /opt/librenms/storage/framework/views show as not being writable. The file changes every day. Running the suggested fixes from validate.php fixes it for a day then a new file is generated the next day (from daily.sh? ). I have included the output of validate.php from two consecutive days showing the wrong file.
This does not appear to affect any functionality. Is it Ok to just ignore the warning?
[librenms@librenms librenms]$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.49 |
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132) |
PHP | 7.2.16 |
MySQL | 5.5.60-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[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/views/c3b7464cd5445849d84e41e84c08be5a
You have new mail in /var/spool/mail/root
[librenms@librenms librenms]$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.49 |
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132) |
PHP | 7.2.16 |
MySQL | 5.5.60-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[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/views/b5ccacdda92f6718c922c34634dcebb7
[librenms@librenms librenms]$ date
Fri Mar 29 08:11:05 EDT 2019
[librenms@librenms librenms]$ ls -alh /opt/librenms/storage/framework/views/b5ccacdda92f6718c922c34634dcebb7
-rw-r–r--. 1 librenms librenms 86 Mar 29 08:02 /opt/librenms/storage/framework/views/b5ccacdda92f6718c922c34634dcebb7
Running CentOS Linux release 7.6.1810 (Core)
Thanks,