EC2 instance suddenly stopped working.

0

Last week, one of my EC2 instances suddenly became unresponsive without any prior changes on my end. Despite trying various troubleshooting steps, such as allowing ports and checking network settings, I couldn't pinpoint the issue. When attempting to SSH into the instance, I encountered the error message: "Failed to connect to your instance. EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect." It's important to note that I haven't made any alterations that could have caused this failure. If anyone has insights or potential solutions, I'd greatly appreciate the assistance.

Ansh
asked 2 months ago152 views
1 Answer
0

Hello.

What is the CPU and memory load on the EC2 instance?
Also, what instance type are you using?
Did you check the EC2 system log and did any other errors occur?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output

profile picture
EXPERT
answered 2 months ago
profile pictureAWS
EXPERT
reviewed 2 months ago
  • Hi, I am using t2.medium type instance and CPU utilization and Disk usage both are almost 1.5% only , also checked the system logs it shows me login: in the end but i can see some errors before that like "OSError: [Errno 21] Is a directory: '/var/lib/cloud/instance' Failed to start Initial cloud-init job (metadata service crawler)."

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