[BlueOnyx:22461] Re: (no subject)
Michael Stauber
mstauber at blueonyx.it
Mon Oct 29 00:39:48 -05 2018
Hi Herbert,
> I am getting this message:
>
> Failed to get D-Bus connection: Too many levels of symbolic links
>
> when trying to restart httpd.
> I can't even shutdown -r now
>
> Any ideas?
Yeah, this is one of the shitty Systemd problems that occasionally pop up.
Here is how to fix it:
1.) Please check if /var/run is a symbolic link to /run and most likely
it is not.
The typical fix is to do this:
rm -R /var/run
ln -s /run /var/run
2.) Check if /run/dbus/system_bus_socket is a Symbolic link to
/var/run/dbus/system_bus_socket. That should also not be the case.
If it is, do the following:
rm /run/dbus/system_bus_socket
rm -R /var/run
ln -s /run /var/run
And yes: There is then no way around a reboot after either one of these
two. :-/
Now if "shutdown -r" doesn't work, try "/sbin/reboot" instead.
If none of this works, do the following. Copy both the following two
lines ...
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
... and paste them into SSH as "root". Your SSH session will either hang
or drop immediately, but the server will reboot no matter what.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list