Ubuntu 不定时死机,从日志里看不出来啥

2023-04-23 09:14:40 +08:00
 monetto

分析了半天,可能是我太菜了。啥也看不出来 ...

贴了 sys.log 和 kern.log ,请有经验的大佬帮忙分析下把 ...

家里的老笔记本装了 Ubuntu 20.04 ,平时合盖当服务器,偶尔打开处理些文本啥的 ...

但是不定时死机,能卸载的外设都卸载了 ...

kern.log

Apr 10 06:33:09 monetto-Lenovo-N480 kernel: [250602.381000] ath: doing EEPROM country->regdmn map search

Apr 10 06:33:09 monetto-Lenovo-N480 kernel: [250602.381001] ath: country maps to regdmn code: 0x52

Apr 10 06:33:09 monetto-Lenovo-N480 kernel: [250602.381002] ath: Country alpha2 being used: CN

Apr 10 06:33:09 monetto-Lenovo-N480 kernel: [250602.381003] ath: Regpair used: 0x52

Apr 10 06:33:09 monetto-Lenovo-N480 kernel: [250602.381004] ath: regdomain 0x809c dynamically updated by country element

Apr 10 10:52:45 monetto-Lenovo-N480 kernel: [266178.315595] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x0000a400

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.482834] wlp8s0: authenticate with 64:09:80:75:df:46

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.502181] wlp8s0: send auth to 64:09:80:75:df:46 (try 1/3)

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.503479] wlp8s0: authenticated

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.504602] ath9k 0000:08:00.0 wlp8s0: disabling HT/VHT/HE due to WEP/TKIP use

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.506550] wlp8s0: associate with 64:09:80:75:df:46 (try 1/3)

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507636] wlp8s0: RX AssocResp from 64:09:80:75:df:46 (capab=0x431 status=0 aid=2)

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507788] wlp8s0: associated

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507878] ath: EEPROM regdomain: 0x809c

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507880] ath: EEPROM indicates we should expect a country code

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507881] ath: doing EEPROM country->regdmn map search

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507882] ath: country maps to regdmn code: 0x52

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507883] ath: Country alpha2 being used: CN

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507884] ath: Regpair used: 0x52

Apr 10 10:52:46 monetto-Lenovo-N480 kernel: [266179.507884] ath: regdomain 0x809c dynamically updated by country element

Apr 11 08:02:04 monetto-Lenovo-N480 kernel: [ 0.000000] microcode: microcode updated early to revision 0x21, date = 2019-02-13

Apr 11 08:02:04 monetto-Lenovo-N480 kernel: [ 0.000000] Linux version 5.15.0-69-generic (buildd@lcy02-amd64-071) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 (Ubuntu 5.15.0-69.76~20.04. 1-generic 5.15.87)

Apr 11 08:02:04 monetto-Lenovo-N480 kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/ vmlinuz-5.15.0-69-generic root=UUID=ee9cfb1c-2a34-4cbc-a6bc-baaf360d07ae ro quiet splash vt. handoff=7

sys.log

Apr 10 14:26:32 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681107992.0486] manager: NetworkManager state is now CONNECTED_GLOBAL

Apr 10 14:26:32 monetto-Lenovo-N480 whoopsie[1257]: [14:26:32] The default IPv4 route is: / org/freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:26:32 monetto-Lenovo-N480 whoopsie[1257]: [14:26:32] Not a paid data plan: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:26:32 monetto-Lenovo-N480 whoopsie[1257]: [14:26:32] Found usable connection: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:26:33 monetto-Lenovo-N480 whoopsie[1257]: [14:26:33] online

Apr 10 14:26:42 monetto-Lenovo-N480 systemd[1]: NetworkManager-dispatcher.service: Succeeded.

Apr 10 14:30:01 monetto-Lenovo-N480 CRON[11672]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)

Apr 10 14:33:56 monetto-Lenovo-N480 systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs...

Apr 10 14:33:56 monetto-Lenovo-N480 systemd[1]: ua-timer.service: Succeeded.

Apr 10 14:33:56 monetto-Lenovo-N480 systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs.

Apr 10 14:34:56 monetto-Lenovo-N480 systemd[1]: Started Run anacron jobs.

Apr 10 14:34:56 monetto-Lenovo-N480 anacron[11690]: Anacron 2.3 started on 2023-04-10

Apr 10 14:34:56 monetto-Lenovo-N480 anacron[11690]: Normal exit (0 jobs run)

Apr 10 14:34:56 monetto-Lenovo-N480 systemd[1]: anacron.service: Succeeded.

Apr 10 14:41:51 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681108911.3153] manager: NetworkManager state is now CONNECTED_SITE

Apr 10 14:41:51 monetto-Lenovo-N480 whoopsie[1257]: [14:41:51] offline

Apr 10 14:41:51 monetto-Lenovo-N480 dbus-daemon[616]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher. service' requested by ':1.12' (uid=0 pid=617 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")

Apr 10 14:41:51 monetto-Lenovo-N480 systemd[1]: Starting Network Manager Script Dispatcher Service...

Apr 10 14:41:51 monetto-Lenovo-N480 dbus-daemon[616]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Apr 10 14:41:51 monetto-Lenovo-N480 systemd[1]: Started Network Manager Script Dispatcher Service.

Apr 10 14:41:54 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681108914.4215] manager: NetworkManager state is now CONNECTED_GLOBAL

Apr 10 14:41:54 monetto-Lenovo-N480 whoopsie[1257]: [14:41:54] The default IPv4 route is: / org/freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:41:54 monetto-Lenovo-N480 whoopsie[1257]: [14:41:54] Not a paid data plan: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:41:54 monetto-Lenovo-N480 whoopsie[1257]: [14:41:54] Found usable connection: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:41:55 monetto-Lenovo-N480 whoopsie[1257]: [14:41:55] online

Apr 10 14:42:04 monetto-Lenovo-N480 systemd[1]: NetworkManager-dispatcher.service: Succeeded.

Apr 10 14:42:12 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681108932.3142] manager: NetworkManager state is now CONNECTED_SITE

Apr 10 14:42:12 monetto-Lenovo-N480 whoopsie[1257]: [14:42:12] offline

Apr 10 14:42:12 monetto-Lenovo-N480 dbus-daemon[616]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher. service' requested by ':1.12' (uid=0 pid=617 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")

Apr 10 14:42:12 monetto-Lenovo-N480 systemd[1]: Starting Network Manager Script Dispatcher Service...

Apr 10 14:42:12 monetto-Lenovo-N480 dbus-daemon[616]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Apr 10 14:42:12 monetto-Lenovo-N480 systemd[1]: Started Network Manager Script Dispatcher Service.

Apr 10 14:42:13 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681108933.1719] manager: NetworkManager state is now CONNECTED_GLOBAL

Apr 10 14:42:13 monetto-Lenovo-N480 whoopsie[1257]: [14:42:13] The default IPv4 route is: / org/freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:42:13 monetto-Lenovo-N480 whoopsie[1257]: [14:42:13] Not a paid data plan: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:42:13 monetto-Lenovo-N480 whoopsie[1257]: [14:42:13] Found usable connection: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 14:42:13 monetto-Lenovo-N480 whoopsie[1257]: [14:42:13] online

Apr 10 14:42:23 monetto-Lenovo-N480 systemd[1]: NetworkManager-dispatcher.service: Succeeded.

Apr 10 14:45:13 monetto-Lenovo-N480 wpa_supplicant[650]: wlp8s0: WPA: Group rekeying completed with 64:09:80:75:df:46 [GTK=TKIP]

Apr 10 15:17:01 monetto-Lenovo-N480 CRON[11739]: (root) CMD ( cd / && run-parts --report / etc/cron.hourly)

Apr 10 15:30:01 monetto-Lenovo-N480 CRON[11760]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)

Apr 10 15:32:32 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681111952.3145] manager: NetworkManager state is now CONNECTED_SITE

Apr 10 15:32:32 monetto-Lenovo-N480 whoopsie[1257]: [15:32:32] offline

Apr 10 15:32:32 monetto-Lenovo-N480 dbus-daemon[616]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher. service' requested by ':1.12' (uid=0 pid=617 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")

Apr 10 15:32:32 monetto-Lenovo-N480 systemd[1]: Starting Network Manager Script Dispatcher Service...

Apr 10 15:32:32 monetto-Lenovo-N480 dbus-daemon[616]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Apr 10 15:32:32 monetto-Lenovo-N480 systemd[1]: Started Network Manager Script Dispatcher Service.

Apr 10 15:32:33 monetto-Lenovo-N480 NetworkManager[617]: <info> [1681111953.5199] manager: NetworkManager state is now CONNECTED_GLOBAL

Apr 10 15:32:33 monetto-Lenovo-N480 whoopsie[1257]: [15:32:33] The default IPv4 route is: / org/freedesktop/NetworkManager/ActiveConnection/2

Apr 10 15:32:33 monetto-Lenovo-N480 whoopsie[1257]: [15:32:33] Not a paid data plan: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 15:32:33 monetto-Lenovo-N480 whoopsie[1257]: [15:32:33] Found usable connection: /org/ freedesktop/NetworkManager/ActiveConnection/2

Apr 10 15:32:34 monetto-Lenovo-N480 whoopsie[1257]: [15:32:34] online

Apr 10 15:32:43 monetto-Lenovo-N480 systemd[1]: NetworkManager-dispatcher.service: Succeeded.

Apr 10 15:34:35 monetto-Lenovo-N480 systemd[1]: Started Run anacron jobs.

Apr 10 15:34:35 monetto-Lenovo-N480 anacron[11777]: Anacron 2.3 started on 2023-04-10

Apr 10 15:34:35 monetto-Lenovo-N480 anacron[11777]: Normal exit (0 jobs run)

Apr 10 15:34:35 monetto-Lenovo-N480 systemd[1]: anacron.service: Succeeded.

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-random-seed[267]: Kernel entropy pool is not initialized yet, waiting until it is.

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-modules-load[258]: Inserted module 'lp'

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-modules-load[258]: Inserted module 'ppdev'

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-modules-load[258]: Inserted module 'parport_pc'

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-modules-load[258]: Inserted module 'msr'

Apr 11 08:02:04 monetto-Lenovo-N480 systemd-sysctl[276]: Not setting net/ipv4/conf/all/ promote_secondaries (explicit setting exists).

2769 次点击
所在节点    程序员
25 条回复
monetto
2023-04-23 09:17:50 +08:00
分析了半天,可能是我太菜了。啥也看不出来 ...

贴了 sys.log 和 kern.log ,请有经验的大佬帮忙分析下把 ...

家里的老笔记本装了 Ubuntu 20.04 ,平时合盖当服务器,偶尔打开处理些文本啥的 ...

但是不定时死机,能卸载的外设都卸载了 ...
chionetw5
2023-04-23 09:28:51 +08:00
log 不是查 bug 的?看看硬盘空间,内存占用?
rocksolid
2023-04-23 09:44:39 +08:00
一样,时间一长就卡的要死或者司机
leonshaw
2023-04-23 09:48:10 +08:00
等个 ssh 哥
debuggerx
2023-04-23 09:51:49 +08:00
https://forum.ubuntu.org.cn/viewtopic.php?t=465602
最后老哥的方案是用 usb 网卡代替内置无线网卡
yylzcom
2023-04-23 09:56:13 +08:00
老电脑的问题比较复杂,建议烤机+u 盘启动 memtest 看看有没有硬件或者散热方面的问题
everyx
2023-04-23 10:18:54 +08:00
kokutou
2023-04-23 10:21:02 +08:00
装 Windows 死不死。。。
硬件确定没问题吗。。。
LxnChan
2023-04-23 10:31:34 +08:00
@everyx 我有个 j1900 就是 Ubuntu 经常死机,先马克了,谢谢
debuggerx
2023-04-23 10:45:30 +08:00
@everyx 显然这台不是,查型号应该是 3 代 i5

发现很多人确实不会看日志啊,kern 报的日志全都来自 Ath 网卡,目标明确还有啥好猜的
dw2693734d
2023-04-23 11:06:50 +08:00
Ubuntu Desktop 吗还是 server
zysuper
2023-04-23 11:17:39 +08:00
有没有想过,这是一个使用 archlinux 的契机。
A8bM3D6FrJTw9l7Y
2023-04-23 11:28:04 +08:00
亲爱的以后贴日志用 pastebin 好吗
kilvn
2023-04-23 11:42:27 +08:00
亲爱的以后贴日志用 pastebin 好吗
elechi
2023-04-23 13:37:20 +08:00
有新 bios 的话升级个 bios 试试
macy
2023-04-23 15:27:16 +08:00
同样的问题,最开始是大概 6 天左右就死机,后来升级了内核,好了一些,最多坚持到了 19 天,现在写了脚本检测挂了自动重启
mingl0280
2023-04-23 15:28:27 +08:00
dmesg 看看呢?
flush9f
2023-04-23 15:34:17 +08:00
开 kdump 或者用 usb 采集卡抓屏幕录像来看 backtrace ,看日志就纯纯靠猜了
wm5d8b
2023-04-23 16:32:23 +08:00
之前有个联想小主机,经常死机还查不到日志,后来有一次屏幕显示 CPU 没响应,更新了一下 TPM 就好了
felixlong
2023-04-23 16:37:03 +08:00
我有台 Acer 老笔记本装 Ubuntu/Win10 都会经常死机。看上去是散热的问题。也没办法搞定。只能装自带的 Win7.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/934667

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX