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

2

14

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)"
Calliopsis answered 13/5, 2016 at 23:21 Comment(0)
M
37
sudo reboot -f

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

Macroscopic answered 14/5, 2016 at 3:40 Comment(3)
Thanks, will try next time.Calliopsis
probably worth unmounting filesystems and so on before doing that!Escarp
@frankster, all processes are killed and filesystems are unmounted/remounted as ro when using --forceBandicoot
P
2
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.

Psyche answered 25/7, 2019 at 15:40 Comment(1)
Didn't work for me after systemd crashed.Overnight

© 2022 - 2024 — McMap. All rights reserved.