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
已提問 2 個月前檢視次數 166 次
1 個回答
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
專家
已回答 2 個月前
profile pictureAWS
專家
已審閱 2 個月前
  • 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)."

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南