My EC2 instance suddenly stopped working

0

Hello, Please I need some help. I've been running an EC2 instance for about a year without issues, and this morning suddenly a customer told me he couldn't access the server anymore. It looks like Amazon EC2 panel says it's running normally. But I cannot access the server via public address. If I try to login via console .sh script, it gives error 'Operation timed out'. And If I try to connect via the AWS EC2 panel, it gives error as well: "There was a problem connecting to your instance We were unable to connect to your instance. Make sure that your instance’s network settings are configured correctly for EC2 Instance Connect." I really need to make it work asap, can someone please help me to understand what is going on ?? Appreciate your help, thank you,

asked 2 years ago1778 views
3 Answers
1
Accepted Answer

Any chance you're looking in the wrong region?

answered 2 years ago
0

Finally I was able to find the instance running, it was that I was not checking the correct zone. However, I wasn't able to login to the instance via login sh script or via the AWS EC2 panel. I had to STOP and re run the EC2 instance, which changed the public IP address ( a mess, I had to redirect many things) and I lost lot of data from the customer's database. I still don't know what could happen, I'm afraid it can happen again at any moment.

answered 2 years ago
  • If you require a static public IP address, use an "Elastic IP" for your instance rather than a "Public IP". That way, the Elastic IP address will persist through reboots and shutdown/restart cycles.

0

Why EC2 instance is disappear?

using/constructing an AMI that does not have SSH properly set up. using/constructing an AMI that does not boot properly (network and/or sshd issues) and failing to look into console output. instance reboot failing.

How do you recover EC2 instance?

You can create an Amazon CloudWatch alarm that monitors an Amazon EC2 instance and automatically recovers the instance if it becomes impaired due to an underlying hardware failure or a problem that requires AWS involvement to repair. Terminated instances cannot be recovered.

Recover your instance : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html

answered 2 years 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