Ubuntu 服务器每晚都会冻结,这个系统日志条目是什么意思?

Ubuntu 服务器每晚都会冻结,这个系统日志条目是什么意思?

我的服务器运行良好,但几周前,即使我删除了一些可能存在问题的应用程序,它仍然在夜间挂起,我猜想这可能是电源传输、某种奇怪的空闲状态或基于 cron 的原因。今天我打开了 syslog 文件,根据 02:17 的图像,出现了一些有趣的东西

4 月 5 日 02:17:01 家庭服务器 CRON[285582] (root) CMD (cd / && run-parts --report /etc/cron.hourly)

7:23 时我醒来,注意到并重启了服务器。下面是 crontab -e 文件,上面没有安排在服务器挂断时执行的任何操作。有人知道问题可能出在哪里吗?

sudo crontab-e:

# System Backup at Friday 15pm
00 15 * * 5 mountpoint /mnt/media && rsync -aAXv --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/run/* --exclude=/mnt/* --U1 

# Backup MEDIA Directory, NextCloud & Network drives for parity
00 09 * * * mountpoint /mnt/Backup && rsync -aAXSv --delete --exclude="lost+found" --exclude=".cache" /mnt/media/ /mnt/Backup

# Fix ownership of folders 
00 15 * * * setfacl -R -m "u:plex:rwx" /mnt/video 
00 16 * * * setfacl -R -m "u:plex:rwx" /mnt/audio 
00 17 * * * setfacl -R -m "u:sonar:rwx" /mnt/video 
00 18 * * * setfacl -R -m "u:radarr:rwx" /mnt/video 

# Backup Music Collection
00 15 * * 7 mountpoint /mnt/media && rsync -aAXv --delete /mnt/audio/MUSIC /mnt/media/Backups/MUSIC 

#Photoprism indexing
00 4 * * * /usr/bin/docker exec -it photoprism_protoprism_1 /photoprism/bin/photoprism index 

#Weekly updates 
00 23 * * 7 apt-get update 
00 00 * * 1 apt-get upgrade -y

[var/syslog][1] [1]: https://i.stack.imgur.com/2hGZ8.jpg

时间范围内的 kern.log:

...
Apr  4 08:56:47 homeserver kernel: [  778.148042] eth0: renamed from veth2073901
Apr  4 08:56:47 homeserver kernel: [  778.167947] IPv6: ADDRCONF(NETDEV_CHANGE): veth59d8998: link becomes ready
Apr  4 09:45:33 homeserver kernel: [ 3703.089539] fwupd[45836]: segfault at 8 ip 000055aa3b5db10d sp 00007ffe6fec4540 error 4 in fwupd[55aa3b5d6000+26000]
Apr  4 09:45:33 homeserver kernel: [ 3703.089546] Code: ff 85 c0 0f 85 97 02 00 00 48 8b 7c 24 30 e8 5a d5 ff ff e9 67 01 00 00 48 8b 44 24 28 48 8d 3d d9 14 02 00 41 be 01 00 00 00 <48> 8b 70 08 31 c0 e8 08 f4 ff ff 4d 85 e4 74 08 4c 89 e7 e8 2b db
Apr  4 17:48:11 homeserver kernel: [32661.793069] perf: interrupt took too long (2534 > 2500), lowering kernel.perf_event_max_sample_rate to 78750
Apr  5 00:13:57 homeserver kernel: [55806.993146] fwupd[260498]: segfault at 8 ip 0000557e9d14e10d sp 00007ffca9bb9f60 error 4 in fwupd[557e9d149000+26000]
Apr  5 00:13:57 homeserver kernel: [55806.993152] Code: ff 85 c0 0f 85 97 02 00 00 48 8b 7c 24 30 e8 5a d5 ff ff e9 67 01 00 00 48 8b 44 24 28 48 8d 3d d9 14 02 00 41 be 01 00 00 00 <48> 8b 70 08 31 c0 e8 08 f4 ff ff 4d 85 e4 74 08 4c 89 e7 e8 2b db
Apr  5 00:38:18 homeserver kernel: [57268.594181] perf: interrupt took too long (3179 > 3167), lowering kernel.perf_event_max_sample_rate to 62750
Apr  5 07:23:38 homeserver kernel: [    0.000000] microcode: microcode updated early to revision 0xea, date = 2021-03-08
Apr  5 07:23:38 homeserver kernel: [    0.000000] Linux version 5.4.0-107-generic (buildd@lcy02-amd64-058) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 (Ubuntu 5.4.0-107.121-generic 5.4.174)
Apr  5 07:23:38 homeserver kernel: [    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-107-generic root=UUID=a71686d4-7ed5-4da9-913f-87eeb1746d72 ro
Apr  5 07:23:38 homeserver kernel: [    0.000000] KERNEL supported cpus:
Apr  5 07:23:38 homeserver kernel: [    0.000000]   Intel GenuineIntel
Apr  5 07:23:38 homeserver kernel: [    0.000000]   AMD AuthenticAMD
Apr  5 07:23:38 homeserver kernel: [    0.000000]   Hygon HygonGenuine
Apr  5 07:23:38 homeserver kernel: [    0.000000]   Centaur CentaurHauls
Apr  5 07:23:38 homeserver kernel: [    0.000000]   zhaoxin   Shanghai  
...

编辑:我注意到的一件事是,当我在外面连接到它时,它整天都工作正常,当我回到家时,它使用 netatalk avahi 启动了时间机器备份,而我正在将一些文件传输到网络磁盘时它挂断了,我删除了 netatalk avahi 并使用 samba 的另一种备份方法,删除了一些我不再需要的旧 docker 容器,还更改了驱动器连接的集线器,它设法存活到凌晨 6 点 59 分,我检查了 kern.log,lidarr 的一个实例是挂断时最后一个工作的服务,所以我也禁用了它。让我们看看今天它是否会达到 24 小时而不挂断。

相关内容