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

January 31, 2018 3.6k views
JavaScript Ubuntu

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.

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.

Have another answer? Share your knowledge.