Why My EC2 Ubuntu Linux instance status showed "1/2 checks passed"? How to solve this issue?

0

I am using EC2 Ubuntu 20.04 Linux instance (t2.micro). After 3/4 days, My instance status showed "1/2 checks passed". I have some small websites running in this instance. When this message appears, I cannot able to access those websites. Currently, each time I reboot my instance, and after some time, the status checked showed 2/2 checks passed. Then, I can able to access my website. Rebooting after 3/4 days at regular intervals is very painful. Please help me to solve my issue.

asked 2 years ago969 views
2 Answers
0

Hello,

I understand that you are encountering a 1/2 status check error for some of your Ec2 instances.

Instance status checks failure is usually caused by the following issue:

*Failed system status checks

*Incorrect networking or startup configuration

*Exhausted memory, etc

For more information regarding instance status checks you can review the attached document[1]

To troubleshoot this issue further,, I would recommend that you make use of the known AWS tools such as Ec2Rescue to Restore your instances from Last Known Good Configuration. Here are the steps that you can use to achieve this:

• Launch a helper instance in the same subnet and VPC • Detach volume of the faulty instance and attach it on the helper instance • Download Ec2Rescue https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2rw-gui.html#ec2rescue-offline • Select the disk of the newly mounted volume and choose Next. • Confirm the disk selection and choose Yes. • Choose the offline instance option to perform and choose Next. • Then they should choose Restore from Last Known Good Configuration • When done click next until the end and detach and attach the volume to the original instance and wait for the status checks Additionally, you can review the instance screenshot to see whether there are any boot errors causing your instance to fail instance status checks, this can be reviewed using the steps mentioned here:https://aws.amazon.com/blogs/aws/ec2-instance-console-screenshot/

I hope this helps.

Resources:-

[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html

[2] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html

profile pictureAWS
SUPPORT ENGINEER
answered 2 years ago
0

My solution was with fixing the macaddress in /etc/netplan/50-cloud-init.yaml.

Had to login via serial connection to update it, as it failed network connection. Bummer this is default when creating an Ubuntu 22.04 image. :\

answered 8 months 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