I manage a server for a friend. This server ran fine but when I tried making it go to sleep at a specific time and wake up using a cronjob, the server would not wake up using rtcwake. While trying to fix this the server started to shut down after ~10 minutes every time he turned it back on.
I tried looking for a cause using sudo cat /var/log/syslog | grep -i "panic\|error\|hang"
and sudo journalctl -b -1 -e
but that didn't show anything strange. BIOS also doesn't have any power management setting turned on.
After giving up I decided to fully reinstall Ubuntu servers 22.04 however it still shutdown after some time. We think it shuts down faster when accessed using SSH but weren't able to fully verify it.
The server has the following components:
- i7 6700k
- 16GB DDR4
- NVIDIA Geforce GTX 660
- ASUS Z170 pro gaming
- 120 GB boot SSD
- 2 3TB Harddrives in RAID 1
Running kernel version: 5.15.0-47-generic
rtcwake
(which I personally haven't used before) can't be the cause since you've reinstalled Ubuntu. I'm not sure if yourssh
test is valid, though. After all, if you log in via a screen, you will need to have loaded up programs -- i.e., the GUI. All of this doesn't load when youssh
in. So, it makes sense that it will shutdown faster viassh
. You could consider booting into an older kernel "just for fun" / just to rule that out... Also, a check of your memory chips (old link, but tools same) – Ray Sep 19 '22 at 22:37