How can I reboot a server with systemctl if systemctl reboot fails?

Ned64

I tried rebooting my CentOS 7 server but it gives ridiculous error messages.

As root (of course):

# systemctl reboot
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
Exit 1

Does polkit need to check whether root has the right to reboot the machine??? If so, why?

# systemctl status reboot.target
● reboot.target - Reboot
   Loaded: loaded (/usr/lib/systemd/system/reboot.target; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)
Exit 3

Do I need to enable the reboot target? Why would this be disabled by default?

Perhaps this will work?

# systemctl start reboot.target
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
Exit 1

OK, force it, then:

# systemctl --force reboot
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to execute operation: Connection timed out
Exit 1

And the server is still up.

Zach Sanchez

As weird as it may seem, trying running

sudo systemctl --force reboot

It has popped up in a couple of searches I made. It may be related to issues with a DBus service restarting.

Can't reboot. Slow and timing out. Failed to start reboot.target: Connection timed out

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I schedule a timed reboot of my server in seconds?

From Dev

How can I use ansible playbook to reboot a ubuntu server?

From Dev

How can I restore an xkilled panel in Linux Mint without a reboot?

From Dev

time since last reboot: how can i convert?

From Dev

How can I use ansible playbook to reboot a ubuntu server?

From Dev

How can I tell GRUB I want to reboot into Windows—before I reboot?

From Dev

Can reboot system restarting the service as systemctl does?

From Dev

How can I apply environment variables without reboot?

From Dev

Why are reboot, shutdown and poweroff symlinks to systemctl?

From Dev

What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

From Dev

How can I schedule a nightly reboot?

From Dev

How can I prevent systemctl reboot or systemctl poweroff from executing?

From Dev

Can I install `systemctl` onto my Mac?

From Dev

How can I list the queued units with systemctl?

From Dev

Can't start Minecraft server in tmux with systemctl

From Dev

Why does systemctl halt asks for password but systemctl reboot and systemctl poweroff not?

From Dev

How can I make dconf-editor changes persistent for reboot?

From Dev

How to control mariadb server using systemctl?

From Dev

How can I find out, before upgrading, whether a reboot will be required

From Dev

systemctl hibernate AND reboot?

From Dev

How can i auto start Wamp Xampp and tomcat after reboot server

From Dev

Alarmmanager when i reboot how can i remaining time

From Dev

What kind of link to /bin/systemctl is /sbin/reboot?

From Dev

systemctl start nginx fails

From Dev

How can I enable user namespaces and have it persist after reboot?

From Dev

MX Linux - can't shutdown/ reboot - /usr/bin/systemctl: Syntax error: Unterminated quoted string

From Dev

How can I check if a reboot is required on Arch Linux?

From Dev

How can I mount a partition on every reboot using Bash Script?

From Dev

How to delay IIS reboot server?

Related Related

  1. 1

    How do I schedule a timed reboot of my server in seconds?

  2. 2

    How can I use ansible playbook to reboot a ubuntu server?

  3. 3

    How can I restore an xkilled panel in Linux Mint without a reboot?

  4. 4

    time since last reboot: how can i convert?

  5. 5

    How can I use ansible playbook to reboot a ubuntu server?

  6. 6

    How can I tell GRUB I want to reboot into Windows—before I reboot?

  7. 7

    Can reboot system restarting the service as systemctl does?

  8. 8

    How can I apply environment variables without reboot?

  9. 9

    Why are reboot, shutdown and poweroff symlinks to systemctl?

  10. 10

    What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

  11. 11

    How can I schedule a nightly reboot?

  12. 12

    How can I prevent systemctl reboot or systemctl poweroff from executing?

  13. 13

    Can I install `systemctl` onto my Mac?

  14. 14

    How can I list the queued units with systemctl?

  15. 15

    Can't start Minecraft server in tmux with systemctl

  16. 16

    Why does systemctl halt asks for password but systemctl reboot and systemctl poweroff not?

  17. 17

    How can I make dconf-editor changes persistent for reboot?

  18. 18

    How to control mariadb server using systemctl?

  19. 19

    How can I find out, before upgrading, whether a reboot will be required

  20. 20

    systemctl hibernate AND reboot?

  21. 21

    How can i auto start Wamp Xampp and tomcat after reboot server

  22. 22

    Alarmmanager when i reboot how can i remaining time

  23. 23

    What kind of link to /bin/systemctl is /sbin/reboot?

  24. 24

    systemctl start nginx fails

  25. 25

    How can I enable user namespaces and have it persist after reboot?

  26. 26

    MX Linux - can't shutdown/ reboot - /usr/bin/systemctl: Syntax error: Unterminated quoted string

  27. 27

    How can I check if a reboot is required on Arch Linux?

  28. 28

    How can I mount a partition on every reboot using Bash Script?

  29. 29

    How to delay IIS reboot server?

HotTag

Archive