Question

Ubuntu 16.04 droplet can't shut down, any ideas on how to find out why?

I’ve created a droplet with Ubuntu 16.04, set up the basic security/firewall settings, and apt installed a few things (java, tomcat8, apache2, mysql).

Everything is working fine when the server is running, but when I sudo poweroff it seems to get stuck. After running poweroff it is inaccessible but still shows up as running in the droplet web UI, and snapshots do not work.

In order to get it to fully power off, I need to click the Power > Power Off button in the web UI.

Does anyone know of a way to troubleshoot this, or logs to check to find out why it’s happening? I looked in /var/log/* but didn’t notice anything related to shutdown problems. I also tried systemctl stopping the services I installed before poweroff, but this didn’t help either.

Thanks for any ideas.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The power off button in the control panel will send a soft-reboot signal (the same as running poweroff or shutdown -h. After approximately 5 minutes if the droplet has not powered down it will send a hard power off.

If your droplet is getting stuck during power down you can see what messages are being displayed during the process in the console in the control panel (Droplet-> Access-> Console). Your droplet sees the console as it’s local keyboard and display so all messages up until power is completely shut off will be seen there. If you run the poweroff or shutdown -h commands from the console you’ll be able to review the shutdown process and see where things are getting stuck.