-1

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

5
  • Shuts down at the same time every time, or at random? Jul 28, 2011 at 12:00
  • random// i wish i knew when Jul 28, 2011 at 12:28
  • Could it be memory and if so how do i check Jul 28, 2011 at 12:41
  • Isn't that a virtual cloud server? If it is a hardware problem I don't think you can check without contacting Amazon and having them look at the issue. Checking memory via software isn't extremely reliable, and I don't know how you could trust any hardware diags that are being abstracted through virtualization to diagnose the physical host. Jul 28, 2011 at 12:54
  • Plus having the VM moved to another host, which should be invisible to you (I'd think, I don't use Amazon's service) would make the problem magically disappear for you unless the VM stays "sticky" to a particular host. Again, don't know how it's implemented on their side. Jul 28, 2011 at 12:55

2 Answers 2

1

Have a look through the system logs, they're located in /var/log - the main one is messages

2
  • can it be memory...any idea how to verify Jul 28, 2011 at 12:42
  • memory corruption on an EC2 instance would bring the whole server down, not just you.
    – Olipro
    Jul 28, 2011 at 14:11
1

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.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .