Ubuntu – How to get AWS EC2 Ubuntu Server out of “Stopping” state

amazon ec2sftpsshUbuntu

I was unable to SSH or SFTP into my ubuntu server on EC2 this morning. It should be noted that SSH and SFTP were working fine up until now. To troubleshoot this I did the following:

  • Logged into AWS and went to my instance.
  • My instance said that it was running and passed all of its' checks.
  • I rebooted the instance from the AWS console, but SSH and SFTP were still not possible.
  • I selected "Stop" thinking that I could stop and then start the instance again.
  • At this point the instance went into the "Stopping" state, but never went to "Stopped".

My EC2 instance is now hung in the "Stopping" state. It's been hung in this state for over 90 minutes now.

How do I get my instance to exit the "Stopping" state, such that, it Stops?

Best Answer

You need to hit stop a few times until forcibly stop becomes available. If it is still not stopped use the Amazon EC2 API, and do a force stop.

Related Topic