Package: ganglia-webfrontend Version: 3.7.5+debian-3 Severity: normal Dear Maintainer,
There are two errors in setting up ganglia due to incorrect file permissions. I've removed the package, checked that the files were gone. After new installation the permissions were again wrong. 1. In a host view click on the "+" above one of the graphs. Select "default" as the view to add the graph to. I get the following message: Alert: Can't write to file: "/var/lib/ganglia-web/conf/view_default.json". Perhaps permissions are wrong. The file is not updated. 2. In the "Events" tab press "Add event". Fill in the fields and after pressing "Add" I get the message: {"status":"error","message":"Can't write to \/var\/lib\/ganglia-web\/conf\/events.json. Please check permissions."} Ganglia-webfrontend runs as www-data, but there are files owned by root in /var/lib/ganglia-web/conf. root@example:/usr/share/ganglia-webfrontend# ls -l /var/lib/ganglia-web/conf/ insgesamt 52 -rw-r--r-- 1 root root 84 21. Mär 2019 default.json -rw-r--r-- 1 root root 3 21. Mär 2019 event_color.json -rw-r--r-- 1 root root 3 21. Mär 2019 events.json -rw-r--r-- 1 www-data www-data 14869 6. Mär 23:09 ganglia_metrics.cache -rw-r--r-- 1 www-data www-data 442 6. Mär 23:09 ganglia_metrics.cache_cluster_data -rw-r--r-- 1 www-data www-data 250 6. Mär 23:09 ganglia_metrics.cache_host_list -rw-r--r-- 1 www-data www-data 3247 6. Mär 23:09 ganglia_metrics.cache_metric_list drwxr-xr-x 2 root root 4096 7. Mär 18:28 sql -rw-r--r-- 1 www-data www-data 442 30. Dez 2016 view_Bacula_Volumes.json -rw-r--r-- 1 root root 58 21. Mär 2019 view_default.json Changing the file owner/group to www-data:www-data fixes the errors for me. -- System Information: Debian Release: 11.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-11-amd64 (SMP w/4 CPU threads) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ganglia-webfrontend depends on: ii apache2 [httpd-cgi] 2.4.52-1~deb11u2 ii debconf [debconf-2.0] 1.5.77 ii libapache2-mod-php 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e ii libapache2-mod-php7.4 [libapac 7.4.28-1+deb11u1 ii libapache2-mod-php8.1 [libapac 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9 ii libjs-chosen 1.8.7+dfsg-2 ii libjs-d3 3.5.17-4 ii libjs-jquery 3.5.1+dfsg+~3.5.5-7 ii libjs-jquery-cookie 12-3 ii libjs-jquery-flot 4.2.1+dfsg-5 ii libjs-jquery-jstree 3.3.11+dfsg1-1 ii libjs-jquery-mobile 1.4.5+dfsg-1 ii libjs-jquery-scrollto 2.1.2+dfsg-6 ii libjs-jquery-ui 1.12.1+dfsg-8+deb11u1 ii libjs-jstimezonedetect 1.0.6-5 ii libjs-moment 2.29.1+ds-2 ii libjs-moment-timezone 0.5.32+dfsg1-2+2021a ii libjs-rickshaw 1.5.1.dfsg-4 ii libjs-select2.js 4.0.13+dfsg1-4 ii php 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e ii php-xml 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e ii php7.4 [php] 7.4.28-1+deb11u1 ii php7.4-xml [php-xml] 7.4.28-1+deb11u1 ii php8.1 [php] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9 ii php8.1-xml [php-xml] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9 ii rrdtool 1.7.2-3+b7 Versions of packages ganglia-webfrontend recommends: ii gmetad 3.7.2-4 ii php-gd 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e ii php7.4-gd [php-gd] 7.4.28-1+deb11u1 ii php8.1-gd [php-gd] 8.1.3-1+0~20220223.13+debian11~1.gbp7757b9 ganglia-webfrontend suggests no packages. -- debconf information excluded