Web Hosting Talk







View Full Version : HTTPD down


Lmax
10-18-2001, 08:27 AM
Every day when my logs rotate my httpd server goes down
The server then sends me this message.

errors occured while rotating /var/log/httpd/error

kill 2389: No such process
error running postrotate script


Anyone know what can cause this??
Also my var/log/httpd dir, all seems normal.

drwxr-xr-x 2 root root 1024 Oct 18 06:30 .
drwxr-xr-x 3 root root 1024 Oct 3 04:21 ..
-rw-r--r-- 1 root root 1621070 Oct 18 06:31 access
-rw-r--r-- 1 root root 1259943 Oct 18 04:05 access.1.gz
-rw------- 1 root root 1013586 Oct 18 06:30 adm_access
-rw------- 1 root root 215257 Oct 18 06:30 adm_error
-rw-rw-rw- 1 root root 3724 Oct 16 08:33 asp
-rw-r--r-- 1 root root 0 Oct 1 15:59 combined-access
-rw-r--r-- 1 root root 205278 Oct 18 06:31 error
-rw-r--r-- 1 root root 1405331 Oct 18 04:05 error.1
-rw-r--r-- 1 root root 0 Oct 18 06:30 mgstat
-rw------- 1 root root 88315815 Oct 16 05:08 mgstat.save
-rw------- 1 httpd root 0 Oct 16 04:13 ssl_mutex.18135
-rw------- 1 httpd root 0 Oct 18 04:09 ssl_mutex.18232
-rw------- 1 httpd root 0 Oct 13 06:45 ssl_mutex.25883
-rw------- 1 httpd root 0 Oct 18 04:09 ssl_scache.dir
-rw------- 1 httpd root 0 Oct 18 04:09 ssl_scache.pag

erik
10-19-2001, 05:20 PM
It could be that your logrotate script doesn't shut down Apache
while rotating the logs. The error log is probably quite buissy
and when Apache tries to log to this file while you are rotating
it, Apache will often go down.

Just my guess, but check your logrotate script and see if it is setup
with the wrong path to the Apache startup/shutdown script.

Lmax
10-19-2001, 07:54 PM
I now also got this messsage
errors occured while rotating /var/log/messages

stat of /var/log/messages failed: No such file or directory

So there is more wrong

JTY
10-19-2001, 08:31 PM
I think your logrotate script is messed up...

You might want to check for an update to it.

Lmax
10-26-2001, 08:13 AM
Today i checked out the server(RAQ3) and i found this when i did a ps aux
Not very normal i think. What may have caused this??

root 18236 21.5 1.6 8980 6288 ? R Oct24 2790:36 /usr/sbin/httpd -f /etc/httpd/conf/httpd.conf


This was after i stopped httpd, so there shouldn't have been any httpd process running
These two were also still running after the stop
root 31648 0.0 1.4 8660 5788 ? S 01:00 0:00 /usr/sbin/httpd -f /etc/admserv/conf/httpd.conf
root 32232 0.0 1.4 8660 5788 ? S 01:15 0:00 /usr/sbin/httpd -f /etc/admserv/conf/httpd.conf

Thanks

Chicken
10-26-2001, 09:45 AM
Well, I'm not entirely sure what is causing this, but those two are your admin control panel (httpd://www.server.name.com/admin). Yes, it actually runs separate from the other httpd.

Lmax
10-26-2001, 10:54 AM
Yes, stupid :eek:
overlooked it :rolleyes: