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,

질문됨 2년 전1828회 조회
3개 답변
1
수락된 답변

Any chance you're looking in the wrong region?

답변함 2년 전
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.

답변함 2년 전
  • 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

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠