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.

已提问 2 年前1019 查看次数
2 回答
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
支持工程师
已回答 2 年前
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. :\

已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则