Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cleanly reboot core OS when "Failed to talk to init daemon" is seen?

Tags:

coreos

How do I cleanly reboot my coreOS after the following issue shows up?

core@node2 ~ $ sudo reboot
Failed to talk to init daemon
core@node2 ~ $ sudo shutdown -r now
Failed to talk to init daemon.
core@node2 ~ $ sudo systemctl reboot
Failed to get D-Bus connection: Operation not permitted
core@contiv-node2 ~ $ shutdown
Must be root.
core@node2 ~ $ sudo shutdown
Unable to perform operation without bus connection.
core@node2 ~ $ cat /etc/lsb-release 
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=991.2.0
DISTRIB_CODENAME="Coeur Rouge"
DISTRIB_DESCRIPTION="CoreOS 991.2.0 (Coeur Rouge)"
like image 259
Rajesh Avatar asked May 13 '16 23:05

Rajesh


2 Answers

sudo reboot -f

-f, --force Force immediate halt, power-off, reboot. Do not contact the init system.

like image 64
Christophe Schmitz Avatar answered Nov 17 '22 00:11

Christophe Schmitz


kill -15 1

That should wake up the init daemon and then you should be able to reboot as normal. (i.e. sudo kill -15 1; sudo reboot)

If possible, this is a better solution than reboot -f as you will be able to perform a clean reboot.

like image 2
user11837292 Avatar answered Nov 17 '22 02:11

user11837292