EC2 Instance Unresponsive
SSH unreachable, console output, system logs, kernel panic, disk full, and rescue mode.
Overview
Overview
An EC2 instance that stops answering SSH can fail at three layers: network (security group, NACL, routing), OS (kernel panic, OOM kill of sshd, disk full) or hardware (the underlying host). Start with the layers you can reach without SSH: the AWS console and the EC2 Serial Console.
When SSH fails, with a timeout or a refusal, the investigation fans out from the AWS console. Its status checks and CloudTrail tell you where to look next. A failing system check sends you straight to a stop and start. Otherwise you check the network layer (security groups, NACLs, routes) and read the system log, which holds the kernel and boot output. If the log shows the OS is broken, the serial console gets you in with no network needed, and a rescue instance lets you fix the root volume when the console is not an option.
Key concepts
- EC2 System Log
- EC2 Serial Console
- Stop vs reboot
- CPU credit exhaustion (T-class)
- Rescue instance
Interview questions
- An EC2 instance that was running fine is now unreachable via SSH. Walk through your complete diagnosis.
Sign up free to read the full topic
More Troubleshooting topics
Start free on Cariara · Coding problems · System design studio