- Newest
- Most votes
- Most comments
I understand this is an urgent situation with your EC2 instance stuck in a stopping state for over 20 minutes, affecting multiple websites. Here are some steps you can take to address this issue:
-
If you haven't already, try using the AWS CLI to force stop the instance with this command:
aws ec2 stop-instances --instance-ids i-050b744091744caaf --force
-
If the force stop command doesn't work after a few minutes, the next step is to seek direct assistance from AWS. There are two ways to do this:
a. Post a request for help on AWS re:Post. Include your instance ID (i-050b744091744caaf) and describe the steps you've already taken, including the force stop attempts.
b. If you have an AWS support plan, create a technical support case in the AWS Support Center. This is recommended for faster, more tailored assistance.
-
While waiting for a response, consider creating a replacement instance as a temporary solution:
- Create an Amazon Machine Image (AMI) from the stuck instance.
- Launch a new instance using this AMI.
- Update your DNS or load balancer settings to point to the new instance.
-
Be aware that if the instance remains stuck for several hours, Amazon EC2 may eventually treat it as a stuck instance and forcibly terminate it. However, this is not guaranteed and can take a considerable amount of time.
-
For future reference, it's important to investigate why the instance is not stopping properly to prevent similar issues. This could be related to processes running on the instance, instance store volumes, or other factors that AWS support can help identify.
Remember, while your instance is in the 'stopping' state, you are not being charged for its usage. However, given the urgency of your situation with websites being down, pursuing immediate assistance from AWS support is advisable.
Sources
Troubleshoot Amazon EC2 instance stop issues - Amazon Elastic Compute Cloud
My Ec2 instance stops completely and does not stop. | AWS re:Post
AWS Instance stuck in shutting-down | AWS re:Post
Relevant content
- asked 5 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 5 months ago
