Instance reachability check failed

0

I created an Instanse to use it as 'Python server' which is connected to RDS on AWS , and this Python code is responsible to connect to S3 and get data and do some process and shows the data on my RDS database , But 4 times happend that without any reason and suddenly the ' Instance reachability check failed ' errour apears and the server crashed . I respectfully ask you to help me .

asked 10 months ago211 views
2 Answers
1

Hi sedigheh

Check these steps to resolve the issue Hope it helps:

This error indicates that the AWS health checks couldn't reach your EC2 instance, suggesting a network connectivity issue or an instance crash. This can prevent your Python server from functioning correctly and disrupt data processing from S3 to RDS.

Check Instance Status:

  1. In the Instances list, identify your server instance.
  2. Verify its status. If it's stopped, restart it.

Review Instance Logs:

Connect to your EC2 instance using SSH or a terminal service. Examine the system logs (e.g., /var/log/messages, /var/log/syslog) for any errors or warnings that might indicate the cause of the crash. Common culprits include:

  • Resource exhaustion (CPU, memory)
  • Application errors
  • Software issues

Follow the links it will help to resolve the issue:

profile picture
EXPERT
answered 10 months ago
EXPERT
reviewed 10 months ago
1

Hello,

please try this solution.

To the Instance reachability check failed error, start by stopping and then starting your EC2 instance from the AWS console to address any transient issues. set up an Auto-Recovery Alarm in Amazon CloudWatch by selecting your instance, navigating toManage CloudWatch alarms and creating an alarm for the Status Check Failed System metric to automatically recover the instance if a failure is detected. Regularly monitor the instance's performance metrics and system logs to identify and fix potential problems early and your security group settings allow the necessary traffic to and from your instance.

Please look at AWS Document link below you will get more information.

https://davy.ai/how-to-fix-aws-ec2-status-check-showing-instance-reachability-check-failed/

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateDBInstance.html#USER_CreateDBInstance.Prerequisites

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html

EXPERT
answered 10 months ago
EXPERT
reviewed 10 months ago

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