Librenms keeps asking to chown folder everytime

i don’t know what im doing wrong , but every-time id run validate from the web-interface and then go to shell and run it there too, id see some messages to chown some folders. is there any way i can avoid this?

the following is my cli information:
[root@irena librenms]# ./validate.php

Component Version
LibreNMS 1.64.1
DB Schema 2020_04_06_001048_the_great_index_rename (165)
PHP 7.2.27
Python 3.6.8
MySQL 5.5.65-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.10.6
[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/3f4b4fb839d4894d455ea48781a1ff1b3c508c0e.php
You have new mail in /var/spool/mail/root
[root@irena librenms]# sudo chown -R librenms:librenms /opt/librenms
[root@irena librenms]# sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
[root@irena librenms]# sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
[root@irena librenms]# sudo chown -R librenms:librenms /opt/librenms
[root@irena librenms]# ./validate.php

Component Version
LibreNMS 1.64.1
DB Schema 2020_04_06_001048_the_great_index_rename (165)
PHP 7.2.27
Python 3.6.8
MySQL 5.5.65-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.10.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[root@irena librenms]# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase OK
Updating Composer packages OK
Updated from ee7fa1e to 90d4ef7 OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
[root@irena librenms]# ./validate.php

Component Version
LibreNMS 1.64.1-2-g90d4ef7
DB Schema 2020_04_06_001048_the_great_index_rename (165)
PHP 7.2.27
Python 3.6.8
MySQL 5.5.65-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.10.6
[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/3f4b4fb839d4894d455ea48781a1ff1b3c508c0e.php
[root@irena librenms]# sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
[root@irena librenms]# sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
[root@irena librenms]# sudo chown -R librenms:librenms /opt/librenms

i’ve kept an eye on it and its not the same file that causes this.

kindly assist

regards
Ervin

Hi,

That file is created by the webserver user. Dont worry about it, will not cause any issue in your install.

thanks for the prompt reply.

seems like that particular file (or similar like that ) would prevent the auto-update from happening.

any suggestions that i can take care of this issue?

regards
Ervin

Oh, no, dont worry. That file wont prevent you from updates.

1 Like

thanks :slight_smile: