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

I was unable to restart my droplet.

Get cloud support with Ubuntu Advantage Cloud Guest:

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 Interactive authentication required. See system logs and ‘systemctl status’ 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.


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

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.

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.