I have an aws ec2 server Ubuntu 10.04.2 LTS and every week it keeps shutting down for whatever reason I have no idea. I go in the aws console and reboot the server and all is well. What can be causing this. I can ssh in and I want to know if anyone knows of where to look and what to look for. Is there a file or an error log that will tell me what is causing the server to shut down...any ideas..
Here is the domain if that helps
Have a look through the system logs, they're located in /var/log - the main one is
messages
First off, you're running an EC2 instance. There won't be any kind of hardware cause for this. (I'm not saying it's impossible, it's just highly unlikely).
Next, take a look in
/var/log/kern.log
. Lines here are prefixed with the number of second since the machine booted, so scroll back up to point[0000000.00]
. Anything in the logfile before that are the last kernel messages logged before the machine shutdown. That might give you some clues as to what happened (Edit your original question and post in any suspicious lines, if you find any.)