I am following up on another closed topic but I can’t post there.
Since upgrading to v62, I’ve been getting an error from a munin cron job. More specifically, this one that runs at 03:32:
`32 03 * * * www-data cgitmpdir=$({ cat /etc/munin/munin.conf /etc/munin/munin-conf.d/* 2>/dev/null || true; } | sed -nE 's/^\s*cgitmpdir\s+(\S.*)$/\1/p' | tail -1); cgitmpdir=${cgitmpdir:-/var/lib/munin/cgi-tmp}; if [ -d "$cgitmpdir" ]; then find "$cgitmpdir/" -type f -mtime +1 -delete; find "$cgitmpdir/" -mindepth 1 -type d -empty -delete; fi`
It looks like it’s runni…
find: cannot delete ‘/var/lib/munin/cgi-tmp/munin-cgi-graph/example.com/mail.example.com’: Permission denied
I checked /var/lib/munin is owned by munin:munin.
/var/lib/munin is owned by munin:www-data with 775, and its subdirectory munin-cgi-graph is owned by munin:munin with 775.
Do I need to change /var/lib/munin and its subdirectories to munin:www-data?
Thanks.
Curtis
darond
August 18, 2023, 5:28pm
2
If it’s any consolation I am getting the same error on a daily basis but unable to resolve either.
I have renamed the directory that the cron job appears to be trying to delete on the basis it’s labelled as a ‘tmp’ parent directory. Munin monitoring appears to continue to be operating as normal.
I will see if I get another report overnight of a failure.
darond
August 19, 2023, 10:06am
3
Update; cron job reported failure again but against the renamed directory.
Will now delete the renamed directory and see what gets reported tomorrow
system
Closed
September 28, 2023, 10:06am
4
This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.