Debugging mysterious VDS reboots in CentOS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
User avatar
moiph
New to forums
New to forums
Posts: 10
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Feb 18, 2011 10:27 am
Location: Seattle
Contact:

Debugging mysterious VDS reboots in CentOS

Post by moiph »

I've got a VDS running CentOS 5.6, setup as a single core web server running cpanel/apache/mysql etc. In the past week it's rebooted 3 times -- extremely unexpected and undesirable.

Any tips on where to look through system logs to figure out what's going on?

Looking through apache logs I see various 404s and then

Code: Select all

[Thu Aug 11 23:19:33 2011] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
So there was definitely an unexpected shutdown. But so far I have no idea what...
User avatar
Edge100x
Founder
Founder
Posts: 12962
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Debugging mysterious VDS reboots in CentOS

Post by Edge100x »

/var/log/messages would be the main place to check. Ideally, there will be kernel output there saying what happened at the time of the crash.

Are you running the latest stable kernel release?
User avatar
moiph
New to forums
New to forums
Posts: 10
Joined: Fri Feb 18, 2011 10:27 am
Location: Seattle
Contact:

Re: Debugging mysterious VDS reboots in CentOS

Post by moiph »

I'm not running the latest kernel no, updating now.

In /var/log/messages I do see:

Aug 11 23:18:04 kelvin syslogd 1.4.1: restart.

Indicating a restart...but no clues as to why. I do have cpanel set to handle upgrading software but I'm not aware of it being able to kick off system reboots...
User avatar
moiph
New to forums
New to forums
Posts: 10
Joined: Fri Feb 18, 2011 10:27 am
Location: Seattle
Contact:

Re: Debugging mysterious VDS reboots in CentOS

Post by moiph »

I don't see an edit so I guess I'll double post :)

Updated the kernel, and did a manual reboot...and now comparing the logs my reboot has much more verbose logs with various services shutting down, etc. Whereas the unexpected reboot was just the sudden restart. So I guess that would rule out my shot in the dark about cpanel kicking off a reboot :)
Post Reply