Troubleshooting
Instances
Contents
- What To Do If An Instance Immediately Terminates
- Troubleshooting Connecting to Your Instance
- Troubleshooting Stopping Your Instance
- Troubleshooting Terminating (Shutting Down) Your Instance
- Troubleshooting Instance Recovery Failures
- Troubleshooting Instances with Failed Status Checks
- Troubleshooting Instance Capacity
- Getting Console Output and Rebooting Instances
- My Instance is Booting from the Wrong Volume
What To Do If An Instance Immediately Terminates
After you launch an instance, we recommend that you check its
status to confirm that it goes from the
pending
state to the running
state, not the terminated
state.
The following are a few reasons why an instance might
immediately terminate:
·
You've reached your EBS volume limit. For information about the
volume limit, and to submit a request to increase your volume limit, see Request
to Increase the Amazon EBS Volume Limit.
·
An EBS snapshot is corrupt.
·
The instance store-backed AMI you used to launch the instance is
missing a required part (an image.part.xx file).
Getting the Reason for Instance Termination
You can use the Amazon EC2 console, CLI, or API to get
information about the reason that the instance terminated.
2.
In the navigation pane, choose Instances, and select your instance.
3.
In the Description tab,
locate the reason next to the label State transition reason. If the instance is still
running, there's typically no reason listed. If you've explicitly stopped or
terminated the instance, the reason is
User initiated shutdown
.$
aws ec2 describe-instances--instance-id instance_id
2.
In the JSON response that's displayed, locate the
StateReason
element. It looks similar to the following example."StateReason": {
"Message": "Client.UserInitiatedShutdown: User initiated shutdown",
"Code": "Client.UserInitiatedShutdown"
},
This example response
shows the reason code that you'll see after you stop or terminate a running
instance. If the instance terminated immediately, you'll see
code
and message
elements that describe the reason that the instance terminated
(for example, VolumeLimitExceeded
).
No comments:
Post a Comment