Skip to content

Why is my instance stopping 7 minutes after I start it?

-1

I click "Start instance" on my EC2 instance and it boots up just fine. My websites hosted on the server are working perfectly as expected for 7 minutes.

The console log looks fine. At about 7 minutes, the machine is printing messages indicating that it is going to shut down.

Then, for seemingly no reason, the instance is stopped with this information:

User name
3f4cf7409ddc3e69b5a3f905df7fdb73

Event name
StopInstances

Event source
ec2.amazonaws.com

Source IP address
events.amazonaws.com

There is an Alarm, but it is impossible to understand what the Alarm is about. The title of the alarm is awsec2-i-{ID}-GreaterThanOrEqualToThreshold-StatusCheckFailed

There is no indication whatsoever about what is greater than or equal to threshold. There are no links or descriptions anywhere.

Alarm

Question: Is there some chance that an unpaid bill might be the reason for the automatic StopInstances event originating from events.amazonaws.com?

Is there some other reason that our instance might be stopping?

By the way, when I clicked "Investigate" on the Alarm page, the "AI" thing wrote this summary, but it does not make sense to me:

At approximately 19:26:00 UTC on 2025-10-27, EC2 instance i-{ID} began failing its status checks, triggering the StatusCheckFailed metric to report a value of 1.0. This status check failure indicates the instance became unresponsive to AWS infrastructure health probes, most likely due to an underlying hardware or hypervisor issue affecting the physical infrastructure hosting the instance. The CloudWatch alarm was configured to trigger when the StatusCheckFailed metric reached or exceeded 0.99, which occurred at 19:31:05.002Z when the system detected the sustained failure condition.

I don't know if there is any issue with underlying hardware, but the machine does run for 7 minutes and everything loads as expected until some automated process is sending the StopInstances command.

asked 9 months ago191 views

3 Answers
0
Accepted Answer

In this case, here is how I solved the problem:

  1. Stop the instance.
  2. Create a new AMI image from the instance.
  3. Create a new instance from the image.

That's it. The new instance runs fine for many hours now.

So, we can conclude that the issue is not related to any AWS settings (e.g., hardcoded IP, firewalls, routing) and it is not related to applications using too many resources (CPU or RAM).

My best guess is that the issue was probably related to the massive global AWS outage that happened recently.

answered 9 months ago

0

Based on the information provided, your EC2 instance is likely being stopped by an automated CloudWatch alarm that's monitoring the status checks of your instance. The alarm name "awsec2-i-{ID}-GreaterThanOrEqualToThreshold-StatusCheckFailed" indicates it's monitoring the StatusCheckFailed metric, which triggers when your instance fails its status checks.

According to the AI investigation summary, your instance is failing its status checks after running for about 7 minutes. These status checks verify that your instance is reachable and that the underlying AWS infrastructure is healthy. When an instance fails these checks, it suggests there might be an issue with:

  1. The operating system on your instance (e.g., running out of memory, CPU, or disk space)
  2. The underlying hardware or hypervisor
  3. Network connectivity
  4. Application issues causing system instability

The "StopInstances" event from "events.amazonaws.com" confirms that AWS CloudWatch Events is automatically stopping your instance in response to the alarm. This is likely a default recovery action configured to stop and restart unhealthy instances.

This is not related to unpaid bills. When AWS suspends accounts for billing issues, they typically don't automatically stop and start instances in this manner.

To troubleshoot this issue:

  1. Check your instance's system logs for errors or warnings before shutdown
  2. Monitor CPU, memory, and disk utilization to identify potential resource constraints
  3. Consider upgrading to a larger instance type if resource constraints are the issue
  4. Review your application logs for errors that might be causing system instability
  5. Check if the instance is running out of memory or experiencing kernel panics
  6. Verify if there are any hardware degradation notifications in your AWS Health Dashboard

If the problem persists, you might need to modify the CloudWatch alarm's behavior or implement a more resilient architecture with multiple instances behind a load balancer.
Sources
Instance or Server keeps shutting down | AWS re:Post
Elevating Your AWS Observability: Unlocking the Power of Amazon CloudWatch Alarms | AWS Cloud Operations Blog

answered 9 months ago

EXPERT

reviewed 9 months ago

0

If you are having this issue repeatedly, then it's the instance status check that is failing. Most like reasons are

  • you are using an AMI that has issue - maybe you created an AMI with hardcoded IP.
  • the EC2 is using all CPU n RAM, change to larger instance type
  • Internal firewalls - OS-level firewalls blocking AWS health check agents
  • routing issue - misconfigured routes, dropped packets, or disabled network interfaces
EXPERT

answered 9 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.