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년 전1020회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠