Sorry I don’t write here as frequently as before but I’ve been busy. The scenario: we are forced to update everything to the latest kernel and to clean all the extra packages. I don’t do it so when I’m back to my server and restart my munin service on the web side I get this message
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
I’m the server administrator, so I need to contact myself 😂😂😂. First of course I restart all the services. (httpd, munin, munin-node). That has no effect, so stop the munin service, clean all the logs and start them again. The log shows errors but nothing strange:
/var/log/munin ## > tailf munin-update.log
DATE [INFO] Reaping Munin::Master::UpdateWorker
<XX>. Exit value/signal: 0/0
DATE [ERROR] In RRD: Error updating XXX
GPU_TEMP-g.rrd: conversion of 'N/A'
to float not complete: tail 'N/A'
How about the httpd service itself? Let’s have a look:
/var/www/html ## > tailf /var/log/httpd/error_log
</p>
[DATE] munin-cgi-html:
Can't open /var/log/munin/munin-cgi-html.log
(Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm
line 103.
<h1>Software error:</h1>
<pre>Can't open /var/log/munin/munin-cgi-html.log
(Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm
line 103.
</pre>
<p>
For help, please send mail to this site's webmaster,
giving this error message
and the time and date of the error.
</p>
Again, oddly enough, the message recommends to contact myself 😁😁. That I do, of course. Is there an easy solution for this? Reinstall? Move to a docker version? No, it’s much easier. I stop all the munin services and clean the log. Then I do:
/var/log ## > chown apache:munin /var/log/munin/
and systemctl restart munin. And my munin monitoring is back. Fir the records,
/var/log ## > ls -lh
...
rwx------ 2 munge munge 4096 DATE munge/
drwxr-x--- 2 apache munin 4096 DATE munin/
Time for a break. A summer break? not yet 😩😩😩…