Cannot terminate EC2

0

Hi, I cannot terminate EC2 instances i-0a63be202eeedb72c and i-0164358bd2d08565f. It has be been in the shutting down state for 1 days. The status message is "Server.InternalError: Internal error on launch". Could you please help? Regards

asked 2 years ago285 views
1 Answer
0

Hello,

To check the most recent state of your instance, choose the refresh icon in the Amazon EC2 console. Or, run the describe-instances command in the AWS Command Line Interface (AWS CLI), and please make sure that you’re using the most recent version of the AWS CLI. To check the recent state of your instance in the AWS CLI you can use the command 'aws ec2 describe-instances --instance-ids <instance-id> --output json'. You can then look at the State Code and Name in the JSON response to get the most recent state of your instance.

You may also be seeing the "Server.InternalError" message if your EBS volumes aren't attached to your instances correctly or if it is in an error state. The solutions for this can be found here: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-client-internal-error/

If your instance is still showing as shutting down after following the above instructions, try either forcefully shutting it down via the Management Console or via the CLI with the command 'aws ec2 stop-instances --instance-ids <instance-id> --force'

You may also try creating an AMI of the stuck instance and try launching another EC2 with that AMI. Steps for these potential solutions are provided in this document: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html

answered 2 years ago
AWS
SUPPORT ENGINEER
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions