我的安装了 gnome 的 Ubuntu 服务器几乎每天都会在同一时间重启或崩溃。
该服务器用作无头服务器,安装了 GNOME,可直接在服务器上运行一些脚本并检查数据,以及使用一些 IDE。为此,使用咖啡因打开虚拟 HDMI 插头以防止屏幕进入睡眠状态,因为我认为重启问题与此有关。
我尝试过暂停内核更新(我检查时发现问题出在哪里last reboot
)
reboot system boot 5.15.0-46-generi Fri Sep 2 05:04 still running
reboot system boot 5.15.0-46-generi Wed Aug 31 05:03 still running
reboot system boot 5.15.0-46-generi Tue Aug 30 17:29 still running
reboot system boot 5.15.0-46-generi Tue Aug 30 05:03 - 17:29 (12:25)
reboot system boot 5.15.0-46-generi Mon Aug 29 05:03 - 17:29 (1+12:25)
reboot system boot 5.15.0-46-generi Sun Aug 28 05:03 - 17:29 (2+12:25)
reboot system boot 5.15.0-46-generi Fri Aug 26 05:03 - 17:29 (4+12:25)
reboot system boot 5.15.0-46-generi Sun Aug 21 05:03 - 17:29 (9+12:25)
reboot system boot 5.15.0-46-generi Sat Aug 20 05:03 - 17:29 (10+12:25)
reboot system boot 5.15.0-46-generi Tue Aug 16 09:07 - 17:29 (14+08:21)
reboot system boot 5.15.0-43-generi Tue Aug 16 05:03 - 09:07 (04:03)
但问题是内核不再更新,服务器不断崩溃。
当我问who -b
system boot 2022-09-02 05:04
我还检查了一些 cronjobs,但系统没有,所以我检查了一下systemctl list-timers --all
LEFT LAST PASSED UNIT ACTIVATES
10:31:17 CEST 53min left Sun 2022-09-04 09:30:35 CEST 6min ago anacron.timer anacron.service
12:46:58 CEST 3h 9min left Sun 2022-09-04 06:02:10 CEST 3h 35min ago ua-timer.timer ua-timer.service
15:58:24 CEST 6h left Sat 2022-09-03 23:15:35 CEST 10h ago motd-news.timer motd-news.service
19:15:17 CEST 9h left Sun 2022-09-04 06:33:02 CEST 3h 4min ago fwupd-refresh.timer fwupd-refresh.service
23:00:09 CEST 13h left Sun 2022-09-04 07:52:02 CEST 1h 45min ago apt-daily.timer apt-daily.service
00:00:00 CEST 14h left n/a n/a dpkg-db-backup.timer dpkg-db-backup.service
00:00:00 CEST 14h left Sun 2022-09-04 00:00:03 CEST 9h ago logrotate.timer logrotate.service
00:37:51 CEST 15h left Mon 2022-08-29 00:19:21 CEST 6 days ago fstrim.timer fstrim.service
05:08:48 CEST 19h left Sun 2022-09-04 05:08:48 CEST 4h 28min ago update-notifier-download.timer update-notifier-download.service
05:14:32 CEST 19h left Sun 2022-09-04 00:36:41 CEST 9h ago man-db.timer man-db.service
05:18:33 CEST 19h left Sun 2022-09-04 05:18:33 CEST 4h 19min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
06:08:19 CEST 20h left Sun 2022-09-04 06:08:02 CEST 3h 29min ago apt-daily-upgrade.timer apt-daily-upgrade.service
20:01:12 CEST 4 days left Mon 2022-08-22 01:40:48 CEST 1 week 6 days ago update-notifier-motd.timer update-notifier-motd.service
03:10:03 CEST 6 days left Sun 2022-09-04 03:10:31 CEST 6h ago e2scrub_all.timer e2scrub_all.service
n/a n/a n/a apport-autoreport.timer apport-autoreport.service
n/a n/a n/a snapd.snap-repair.timer snapd.snap-repair.service
重启时我没有发现任何异常。
我对这个问题很绝望,我开始考虑一个有故障的组件,任何帮助都会很好。
谢谢