Server randomly hangs, with the only way out a forced reboot

For whatever reason, having an X server installed causes my headless server to completely hang (no response to any pings, attempts to ssh in, input on exsiting ssh connections, anything. waiting 10+ minutes doesn't un-hang the server), with the only solution being to force a reboot via my hosters web interface. EDIT: confirmed X server probably is actually not causing it. Removing xserver-xorg didn't help.

Looking around online, I saw some complaints about linux kernel 5.3 with Xorg/X server causing hangs.

Because I need a server that doesn't crash every 30-45 min with absolutely no trace in logs of why, I chose to remove xorg and all of the related compenents.

After fighting with VNC and no X server for about 30min, the server hung again. What could be the problem?

Syslog from last crash:

It's a server running on an AMD Ryzen 5 3600, with 64GB DDR4 RAM and two 512GB NVMe SSDs in RAID 0. Running Ubuntu 19.10

Edit: Interestingly enough removing all packages related to X11, GNOME, and XFCE seems to have gotten rid of the problem. Service called NetworkManager was requesting a suspend, according to the logs at the link. Now the question is why?

7

1 Answer

It was XFCE's built in power management. It was suspending the server after 30 minutes, rendering it inaccessible

Switched to LXDE and no further problems

Also need to forcibly disable hibernate and sleep services:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

(Source: )

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like