Closed H-Nestler closed 2 years ago
More problems with logs in volume:
The cgi zoom does not work.
tail -f /var/log/apache2/error.log
...
Can't open /var/log/munin/munin-cgi-graph.log (Permission denied) at /usr/share/perl5/Log/Log4perl/Appender/File.pm line 151.
Hotfix:
docker exec munin touch /var/log/munin/munin-cgi-graph.log
docker exec munin chown www-data /var/log/munin/munin-cgi-graph.log
docker exec munin touch /var/log/munin/munin-cgi-html.log
docker exec munin chown www-data /var/log/munin/munin-cgi-html.log
This repository is not maintained anymore, please try on https://github.com/ethersys/ethersys-docker-munin and report issues on it.
I used the command suggest in README.md with a volume for logs.
This does not work, if the directoy /data/munin does not exist. Webserver does not start, because wrong directory permissions.
Webside is not accessable
If I stop this container and start the container again, then the directory exists and the line 90 has no errors. The webside is empty with the text "Munin has not run yet. Please try again in a few moments." now.
Wait long time not helps. No graphics will be see, because wrong permission for html log.
To fix this, needs to change directory rights after docker was started. This is a simple woraround:
Some minutes later Munin website is working.
Pull request #33 fixes this issue completely.