Troubleshoot Amazon EC2 instance stop issues
If you have stopped your Amazon EBS-backed instance and it appears stuck in the
stopping
state, there may be an issue with the underlying host
computer. First, try to force stop the instance. If the instance does not stop,
you can request assistance with this issue.
There is no cost for instance usage while an instance is in the stopping
state or in any other state except running
. You are only charged for instance
usage when an instance is in the running
state.
Force stop an instance
Force the instance to stop using either the console or the AWS CLI.
Note
You can force an instance to stop using the console only while the instance is in
the stopping
state. You can force an instance to stop using the AWS CLI
while the instance is in any state, except shutting-down
and
terminated
.
If, after 10 minutes, the instance has not stopped, post a request for help on AWS re:Post
(Optional) Create a replacement instance
While you are waiting for assistance from AWS re:Post
Important
You can create a replacement instance if the stuck instance produces system status checks only, as instance status checks will result in the AMI copying over an exact replica of the broken operating system. After you've confirmed the status message, create the AMI and launch a new instance using the new AMI.
If you are unable to create an AMI from the instance as described in the previous procedure, you can set up a replacement instance as follows:
(Alternate) To create a replacement instance using the console
-
Select the instance and choose Description, Block devices. Select each volume and make note of its volume ID. Be sure to note which volume is the root volume.
-
In the navigation pane, choose Volumes. Select each volume for the instance, and choose Actions, Create Snapshot.
-
In the navigation pane, choose Snapshots. Select the snapshot that you just created, and choose Actions, Create Volume.
-
Launch an instance with the same operating system as the stuck instance. Note the volume ID and device name of its root volume.
-
In the navigation pane, choose Instances, select the instance that you just launched, and choose Instance state, Stop instance.
-
In the navigation pane, choose Volumes, select the root volume of the stopped instance, and choose Actions, Detach Volume.
-
Select the root volume that you created from the stuck instance, choose Actions, Attach Volume, and attach it to the new instance as its root volume (using the device name that you made note of). Attach any additional non-root volumes to the instance.
-
In the navigation pane, choose Instances and select the replacement instance. Choose Instance state, Start instance. Verify that the instance is working.
-
Select the stuck instance, choose Instance state, Terminate instance. If the instance also gets stuck terminating, Amazon EC2 automatically forces it to terminate within a few hours.