Monitoring, Errors, and Unexpected Behavior
How do I monitor my systems?
Amazon EC2 provides basic monitoring. You can use DescribeInstances to check whether an instance appears to be running. However, if you are using Amazon EC2 as your data center, you might want to set up for sophisticated monitoring on your instances, such as SNMP.
Why can't I "talk" to my instances?
There are a few common reasons for broken connectivity to your instance.
Amazon EC2 changes the state of your instance to running
after
your operating system starts booting. Depending on your AMI, there will be a
delay before the instance is fully set up and functional.
If your instance has been running for several minutes, you verify you
authorized the appropriate access to your host through the Amazon EC2 firewall.
If you have launched your instances without specifying a security group,
the default
group is used. Permissions on the default
group are very strict and disallow all access from the Internet and other groups.
You will need to modify the permissions of your default
group or
set up a new group with appropriate permissions. For more information, see
Network Security
If this doesn't solve your issue, make sure you authorized port 22 and try to
open an SSH connection with verbose output. Use the man page for the exact syntax
of your system, but the command is likely to be similar to
ssh -vv root@[hostname]
.
This output is very useful if you are posting to the forum.
Why did my instance terminate immediately after launch?
Launch errors can be the result of an internal error during launch or a corrupt Amazon EC2 image. Internal errors are rare, as we actively test for and isolate suspect hosts. Consult the DescribeInstances operation for details on why your instance failed to launch.
Note | |
---|---|
The |
You can also attempt to launch the image again. If this proves to be a persistent problem (especially with a shared image), post to the AWS forums.
I ran shutdown
from within an ssh
session,
but my instance still shows up as running when I query it with DescribeInstances
and I can't shell into it.
This is a "feature" of the shutdown
command. If you issue
shutdown
without a -h
(halt) flag, it shuts down
the network and switches to single user mode. The instance is still running, but
without a network.
You should always use shutdown -h
when
working inside an Amazon EC2 instance.
You can also shut the instance down using the TerminateInstances call
(ec2-terminate
) on the command line.
Why are my instances stuck in a pending state (or a shutting-down state)?
This situation is rare and might be the result of a software error or misconfiguration.
We actively monitor for this; please contact us if it occurs.
Why do I get an "AuthFailure: User is not AMI creator" error when I try to register an image?
Make sure that you are using the correct user ID and certificate to create and upload the image. You must use the same ID and certificate to register the image with Amazon EC2.