Apache has crashed and won't come back up -
Hi folks,
Today Apache went down and the service won't restart. Please see below.
--
Waiting for “httpd” to start ……info [restartsrv_httpd] systemd failed to start the service “httpd” (The “/usr/bin/systemctl restart httpd.service --no-ask-password” command (process 1311325) reported error number 1 when it ended.): Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
…Gracefully terminating process: /usr/sbin/httpd with pid 1309518 and owner nobody.
Waiting for 1309518 to shutdown ........... terminated.
Waiting for httpd,litespeed,lscgid to shutdown ... not running.
info [restartsrv_httpd] systemd failed to start the service “httpd” (The “/usr/bin/systemctl restart httpd.service --no-ask-password” command (process 1311345) reported error number 1 when it ended.): Job for httpd.service failed because a timeout was exceeded.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
…info [restartsrv_httpd] The service 'httpd' failed to restart at least three times. The system will now rebuild the httpd.conf file.
info [restartsrv_httpd] systemd failed to start the service “httpd” (The “/usr/bin/systemctl restart httpd.service --no-ask-password” command (process 1313651) reported error number 1 when it ended.): Job for httpd.service failed because a timeout was exceeded.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.
…failed.
Cpanel::Exception::Services::StartError
Service Status
undefined status from Cpanel::ServiceManager::Services::Httpd
Service Error
(XID cnp6xc) The “httpd” service failed to start.
Log Messages
[Sun Jan 12 20:08:03.814789 2025] [core:error] [pid 1313787:tid 1313787] (28)No space left on device: AH10231: httpd: Failed creating pid file /run/apache2/httpd.pid.VIyQrU
[Sun Jan 12 20:08:03.064047 2025] [security2:notice] [pid 1313677:tid 1313677] ModSecurity for Apache/2.9.7 (http://www.modsecurity.org/) configured.
httpd has failed. Contact your system administrator if the service does not automagically recover.
--
Any ideas?
Thanks in advance,
RS
-
"No space left on device"?
Try:
df -h
to see if you are out of disk space.0 -
Hi Finn,
I managed to find the same command and it turns out a client's Python script had quietly been depositing passenger error documents in /run/ea-passenger-runtime and had filled the partition to the tune of 13GB in plain text.
The directory has now been cleared out and the usage is back down to ~7% and all services are now behaving normally once again.
Cheers,
RS1 -
Glad to hear some cleaning is all it took!
0
Please sign in to leave a comment.
Comments
3 comments