EC2 is running, but no connection.

0

Hello, I have deployed my service built with django to ec2 and am using it. On the console, the instance is running. However, the Instance status checks fails, and the ssh connection is not possible. Even if I try to use the connection service within aws, I can't connect with the error "There was a problem connecting to your instance". Network access, security groups are still in use, so I don't think there was a problem here. What can i do now?

  • I've tried everything like rebooting, shutting down, and restarting a little later!
已提問 2 年前檢視次數 252 次
1 個回答
0

Hello,

Thank you for your question, I understand that you currently unable to connect to your instance as it is failing status checks.

Please confirm whether it is failing:

Instance level checks = 1/2 this means that the issue is with OS level operations (AWS has no visibility)

System level checks = 2/2 this generally means that there is an issue with the underlying host hence (stop/start will be required)

To check why the instance is failing status checks you can use the console logs/instance screenshots, you can reference this link [1] for further troubleshooting:

To get console output

1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
2. In the left navigation pane, choose Instances, and select the instance.
3. Choose Actions, Monitor and troubleshoot, Get console logs.

To get screenshot

1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
2. In the left navigation pane, choose Instances, and select the instance.
3. Choose Actions, Monitor and troubleshoot, Get instance screenshot.

Once you have determined the cause for status check failure, you can reference this link [2] for common troubleshooting methods for 1/2 status checks.

Feel free to share console log and/or screenshot should you require further assistance with troubleshooting

[1] Troubleshoot an unreachable instance - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html

[2] Troubleshoot instances with failed status checks - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html

profile pictureAWS
支援工程師
Lundi
已回答 2 年前

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

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

回答問題指南