V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
monetto
V2EX  ›  程序员

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

  •  
  •   monetto · 2023-04-23 09:14:40 +08:00 · 2702 次点击
    这是一个创建于 561 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    贴了 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).

    25 条回复    2023-05-01 00:32:18 +08:00
    monetto
        1
    monetto  
    OP
       2023-04-23 09:17:50 +08:00
    分析了半天,可能是我太菜了。啥也看不出来 ...

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

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

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

    发现很多人确实不会看日志啊,kern 报的日志全都来自 Ath 网卡,目标明确还有啥好猜的
    dw2693734d
        11
    dw2693734d  
       2023-04-23 11:06:50 +08:00
    Ubuntu Desktop 吗还是 server
    zysuper
        12
    zysuper  
       2023-04-23 11:17:39 +08:00
    有没有想过,这是一个使用 archlinux 的契机。
    sencat31
        13
    sencat31  
       2023-04-23 11:28:04 +08:00
    亲爱的以后贴日志用 pastebin 好吗
    kilvn
        14
    kilvn  
       2023-04-23 11:42:27 +08:00
    亲爱的以后贴日志用 pastebin 好吗
    elechi
        15
    elechi  
       2023-04-23 13:37:20 +08:00
    有新 bios 的话升级个 bios 试试
    macy
        16
    macy  
       2023-04-23 15:27:16 +08:00
    同样的问题,最开始是大概 6 天左右就死机,后来升级了内核,好了一些,最多坚持到了 19 天,现在写了脚本检测挂了自动重启
    mingl0280
        17
    mingl0280  
       2023-04-23 15:28:27 +08:00 via Android
    dmesg 看看呢?
    flush9f
        18
    flush9f  
       2023-04-23 15:34:17 +08:00
    开 kdump 或者用 usb 采集卡抓屏幕录像来看 backtrace ,看日志就纯纯靠猜了
    wm5d8b
        19
    wm5d8b  
       2023-04-23 16:32:23 +08:00 via Android
    之前有个联想小主机,经常死机还查不到日志,后来有一次屏幕显示 CPU 没响应,更新了一下 TPM 就好了
    felixlong
        20
    felixlong  
       2023-04-23 16:37:03 +08:00
    我有台 Acer 老笔记本装 Ubuntu/Win10 都会经常死机。看上去是散热的问题。也没办法搞定。只能装自带的 Win7.
    monetto
        21
    monetto  
    OP
       2023-04-23 23:17:00 +08:00
    @chionetw5 8G 内存,常年空闲 6G ,硬盘也是 320G SSD 应该不可能这方面有问题 ...
    monetto
        22
    monetto  
    OP
       2023-04-23 23:18:02 +08:00
    @everyx 是标压 CPU 2030M
    fangyou
        23
    fangyou  
       2023-04-24 02:07:19 +08:00
    我的一样,不过是 i7 6700K 台式机,连装系统都报错装不上,还是把硬盘装在其它电脑上才装上的系统,也是动不动就死机了.现在改用 WSL 2 了
    zjsxwc
        24
    zjsxwc  
       2023-04-24 11:11:47 +08:00
    /tmp 目录会不会满了?重启 /tmp 为空就不会死机
    cc18243252478
        25
    cc18243252478  
       2023-05-01 00:32:18 +08:00   ❤️ 1
    我这边的情况是负载一大就死机 增大 swap 修改 swapiness =10 有帮助
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1224 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:16 · PVG 02:16 · LAX 10:16 · JFK 13:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.