Question

How do you restart droplet from command line? Usual method doesn't seem to work

Posted January 31, 2018 9.9k views
UbuntuJavaScript

I was unable to restart my droplet.

Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud

42 packages can be updated.
0 updates are security updates.

*** System restart required ***
Last login: Wed Jan 31 15:57:42 2018 from
@JGC-Droplet:~$ reboot
Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to start reboot.target: Interactive authentication required.
See system logs and ‘systemctl status reboot.target’ for details.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.

I have no idea how to update packages and reboot doesn’t seem to work.
I think I already had disabled root user for security purposes.
This is so confusing and annoying. I want to press the power button via website but that could cause data corruption.

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.

×
1 answer

Does the user trying to reboot have sudo privileges? If, not, then I think you’re out of luck trying to restart from the command line. If you want to avoid data corruption then make sure all services have stopped running (if you need to look at all processes running you can use top), kill all the processes that are using the hard drive, and then you should be able to use the online power button without data corruption.

Submit an Answer