It seems that the webserver session storage is now creating season files with the apache2 user ownership instead of the “librenms:librenms” user.
[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX] chown -R librenms:librenms /opt/librenms
Chowning doesn’t help because new session file continue to be created with wrong owneshir.
Also restarted apache which continues to run under www-data:www-data user.
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-121-generic x86_64)
The following Ubuntu packages are to be upgraded,…
The following NEW packages will be installed:
linux-headers-4.4.0-124 linux-headers-4.4.0-124-generic linux-image-4.4.0-124-generic linux-image-extra-4.4.0-124-generic
The following packages will be upgraded:
distro-info-data ghostscript ifupdown libavahi-client3 libavahi-common-data libavahi-common3 libcupsfilters1 libgs9 libgs9-common linux-base linux-generic linux-headers-generic linux-image-generic linux-libc-dev wget
Chowning /opt/librenms/bootstrap/cache/services.php to the librenms user works and remains stable it seems.
(this file was indeed listed as having the wrong owner by the validate.php script.)
The session files are created with the user running the apache2.
I am having the same issue, however each time a new web session is started from a different location this file keeps having the permission reset to www-data:www-data --> “/opt/librenms/bootstrap/cache/services.php” and the “/opt/librenms/storage/framework/sessions/” just fills up with session files with the same permissions www-data:www-data!
This is a setup right out of the book…no weird settings here
This happened after the latest update! here is where i am standing with versions and system.
Seems that the validate.php from 1.39-45-g4347f0a doesn’t barf anymore on the session file ownership of the session files in /opt/librenms/storage/framework/sessions owned by the apache2 user.
The question remains if the issue is resolved or simply ignored by the validate.php script as before?