无法确定 Ubuntu Server 21.10 关闭的原因

无法确定 Ubuntu Server 21.10 关闭的原因

我已尽力查看其他线程,但似乎无法弄清楚这一点。

我刚刚在我的家用服务器机器上安装了 Ubuntu Server 21.10,该机器由一些较旧的硬件组成(如果听起来可能是硬件问题,我打算开始更换它们)。安装后,我唯一做的事情就是安装 docker 来运行一些容器供我的家庭媒体使用(plex、反向代理、unifi 控制器等)。

一切似乎都运行良好,但自从昨天安装完所有东西以来,我已经意外重启了 5 次左右。有趣的是,现在我已经正常运行了 18 个小时,但不知道是什么导致了最初的重启。

以下是该命令的输出last

reboot   system boot  5.13.0-22-generi Wed Dec 29 02:28   still running
reboot   system boot  5.13.0-22-generi Tue Dec 28 18:05   still running
reboot   system boot  5.13.0-22-generi Tue Dec 28 18:02 - 18:05  (00:02)
reboot   system boot  5.13.0-22-generi Tue Dec 28 14:19 - 18:05  (03:46)
reboot   system boot  5.13.0-22-generi Tue Dec 28 14:17 - 18:05  (03:47)
reboot   system boot  5.13.0-22-generi Tue Dec 28 12:31 - 18:05  (05:34)
ben      pts/1        192.168.1.100    Mon Dec 27 22:33 - 04:18  (05:45)
ben      pts/0        192.168.1.100    Mon Dec 27 21:54 - 00:18  (02:24)
reboot   system boot  5.13.0-22-generi Mon Dec 27 21:53 - 18:05  (20:12)
ben      pts/0        192.168.1.100    Mon Dec 27 21:32 - 21:53  (00:21)
ben      tty1                          Mon Dec 27 21:28 - down   (00:25)
reboot   system boot  5.13.0-22-generi Mon Dec 27 21:27 - 21:53  (00:25)
ben      tty1                          Mon Dec 27 21:13 - down   (00:13)
reboot   system boot  5.13.0-22-generi Mon Dec 27 21:13 - 21:27  (00:14)
ben      tty1                          Mon Dec 27 21:11 - down   (00:01)
reboot   system boot  5.13.0-22-generi Mon Dec 27 21:11 - 21:13  (00:01)
ben      tty1                          Mon Dec 27 21:10 - down   (00:01)
reboot   system boot  5.13.0-22-generi Mon Dec 27 21:09 - 21:11  (00:01)

这也是/var/log/syslog上次重启时的一个片段。请注意时间 02:28:15,这是重启时出现的典型消息。

Dec 28 22:17:01 ben-server CRON[35367]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 28 22:17:11 ben-server 50-motd-news[35384]:  * Super-optimized for small spaces - read how we shrank the memory
Dec 28 22:17:11 ben-server 50-motd-news[35384]:    footprint of MicroK8s to make it the smallest full K8s around.
Dec 28 22:17:11 ben-server 50-motd-news[35384]:    https://ubuntu.com/blog/microk8s-memory-optimisation
Dec 28 22:17:11 ben-server systemd[1]: motd-news.service: Deactivated successfully.
Dec 28 22:17:11 ben-server systemd[1]: Finished Message of the Day.
Dec 28 22:53:36 ben-server systemd[5122]: run-docker-runtime\x2drunc-moby-be17dd72dbdf5028d9e099ff548b2e4bf9b6f9f1c13d90bbfc288643354606c3-runc.zBfpwj.mount: Deactivated successfully.
Dec 28 23:17:01 ben-server CRON[45621]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 28 23:33:14 ben-server systemd[5122]: run-docker-runtime\x2drunc-moby-be17dd72dbdf5028d9e099ff548b2e4bf9b6f9f1c13d90bbfc288643354606c3-runc.ec7o7k.mount: Deactivated successfully.
Dec 29 00:00:00 ben-server systemd[1]: Starting Rotate log files...
Dec 29 00:00:00 ben-server systemd[1]: Starting Daily man-db regeneration...
Dec 29 00:00:00 ben-server systemd[1]: logrotate.service: Deactivated successfully.
Dec 29 00:00:00 ben-server systemd[1]: Finished Rotate log files.
Dec 29 00:00:00 ben-server systemd[1]: man-db.service: Deactivated successfully.
Dec 29 00:00:00 ben-server systemd[1]: Finished Daily man-db regeneration.
Dec 29 00:17:01 ben-server CRON[57015]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 29 00:22:54 ben-server systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs...
Dec 29 00:22:54 ben-server systemd[1]: ua-timer.service: Deactivated successfully.
Dec 29 00:22:54 ben-server systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs.
Dec 29 01:17:02 ben-server CRON[68356]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 29 01:49:42 ben-server systemd[5122]: run-docker-runtime\x2drunc-moby-be17dd72dbdf5028d9e099ff548b2e4bf9b6f9f1c13d90bbfc288643354606c3-runc.1C5L9z.mount: Deactivated successfully.
Dec 29 02:17:01 ben-server CRON[79961]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 29 02:21:48 ben-server systemd[5122]: run-docker-runtime\x2drunc-moby-be17dd72dbdf5028d9e099ff548b2e4bf9b6f9f1c13d90bbfc288643354606c3-runc.pvjfl1.mount: Deactivated successfully.
Dec 29 02:28:15 ben-server systemd-modules-load[424]: Inserted module 'msr'
Dec 29 02:28:15 ben-server systemd[1]: Mounted Huge Pages File System.
Dec 29 02:28:15 ben-server systemd[1]: Mounted POSIX Message Queue File System.
Dec 29 02:28:15 ben-server systemd[1]: Mounted Kernel Debug File System.
Dec 29 02:28:15 ben-server systemd[1]: Mounted Kernel Trace File System.
Dec 29 02:28:15 ben-server systemd[1]: Finished Create list of static device nodes for the current kernel.
Dec 29 02:28:15 ben-server systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
Dec 29 02:28:15 ben-server systemd[1]: [email protected]: Deactivated successfully.
Dec 29 02:28:15 ben-server systemd[1]: Finished Load Kernel Module configfs.
Dec 29 02:28:15 ben-server systemd[1]: [email protected]: Deactivated successfully.
Dec 29 02:28:15 ben-server systemd[1]: Finished Load Kernel Module drm.
Dec 29 02:28:15 ben-server systemd[1]: [email protected]: Deactivated successfully.
Dec 29 02:28:15 ben-server systemd[1]: Finished Load Kernel Module fuse.
Dec 29 02:28:15 ben-server systemd[1]: Finished Set the console keyboard layout.
Dec 29 02:28:15 ben-server systemd[1]: Finished Load Kernel Modules.
Dec 29 02:28:15 ben-server systemd[1]: Finished Remount Root and Kernel File Systems.
Dec 29 02:28:15 ben-server systemd[1]: Finished Uncomplicated firewall.
Dec 29 02:28:15 ben-server systemd[1]: Activating swap /swap.img...
Dec 29 02:28:15 ben-server systemd[1]: Mounting FUSE Control File System...
Dec 29 02:28:15 ben-server systemd[1]: Mounting Kernel Configuration File System...
Dec 29 02:28:15 ben-server systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
Dec 29 02:28:15 ben-server systemd[1]: Starting Flush Journal to Persistent Storage...
Dec 29 02:28:15 ben-server systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
Dec 29 02:28:15 ben-server systemd[1]: Starting Load/Save Random Seed...
Dec 29 02:28:15 ben-server systemd[1]: Starting Apply Kernel Variables...
Dec 29 02:28:15 ben-server systemd[1]: Starting Create System Users...
Dec 29 02:28:15 ben-server systemd[1]: Activated swap /swap.img.
Dec 29 02:28:15 ben-server systemd[1]: Mounted FUSE Control File System.
Dec 29 02:28:15 ben-server systemd[1]: Mounted Kernel Configuration File System.
Dec 29 02:28:15 ben-server systemd[1]: Finished Load/Save Random Seed.
Dec 29 02:28:15 ben-server systemd[1]: Condition check resulted in First Boot Complete being skipped.
Dec 29 02:28:15 ben-server systemd[1]: Reached target Swap.
Dec 29 02:28:15 ben-server systemd[1]: Finished Apply Kernel Variables.

我没有找到系统重新启动的明显原因,但我在日志中找到了进一步的证据,我认为这意味着重新启动是意外的:

Dec 29 02:28:15 ben-server systemd-fsck[636]: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt

我觉得如果是坏磁盘,我会看到一些内核错误。我现在认为最有可能的罪魁祸首是电源?我目前已将其插入 UPS,但我知道这显然无法修复故障设备。

有人有什么想法吗?谢谢!

答案1

我怀疑很多人会遇到我最终发现的问题。根据@AlexOnLinux 的评论,我尝试对计算机进行压力测试,但那时我遇到了问题。我猜一定是电源的问题,但当我去检查电源连接时,我注意到当我触摸电源线时,系统立即关闭。

然后我拿出一个仪表来测试电缆的连续性,因为我正在弯曲它,果然,连接断开了很多次。我更换了电缆,从那以后就没再出现过问题!

相关内容