Description of problem: httpd with mod_perl sometimes goes faulty overnight - mod_perl handled requests are met with errors - error log contains failed to resolve handler `Apache::Registry': Can't locate Apache/Registry.pm in @INC This appears to be related to the server being HUPed - in particular when it is HUPed several times in succession. The logrotate script /etc/logrotate.d/httpd causes a HUP to be sent for each log file rotated, which is excessive. I have modified this script to only send one restart request, and changed that to a graceful restart:- /var/log/httpd/*log { missingok notifempty sharedscripts lastaction /sbin/service httpd graceful >/dev/null 2>&1 || true endscript } which seems better. There is still an issue as to why the mod_perl component is going wonky, however this looks like it will assuage the problem. This should also apply to Fedora - same problem has been seen on FC3 although less frequently. Version: httpd-2.0.52-19
Thanks for the report. The "sharedscripts" option in the logrotate config is defined to make the "postrotate" action only run once, not per-log, so it should effectively be the same as the lastaction script. If this is not happening that it sounds like a logrotate issue. Do you have an error_log snapshot which shows the multiple HUPs?
Looks like a misdiagnosis from my point of view here... The problem is intermittant and I have jumped to a conclusion as to the cause. Looking back at the logs I am not seeing multiple restart attempts. So it looks like this is hitting me at some point after the server is started, apparently related to HUPs (I can bring on the mod_perl problem by HUPing the server a few times). Suggest closing this as "reporter is an idiot" and if I can get a definite bug as to why the server is going strange on me I'll open a more accurate bug.
OK, thanks. Marking as "WORKSFORME" for the time being, please do open a new bug if you get new information