어제의 Debian 8.5 충돌 로그를 수집하는 방법은 무엇입니까?

어제의 Debian 8.5 충돌 로그를 수집하는 방법은 무엇입니까?

어제 처음으로 데비안 8.5 충돌을 겪었습니다. 많은 프로세스가 활성화되어 있고(Google Chrome 52.x, Matlab 2016a, ...) 시스템이 갑자기 충돌합니다. 화면이 어두워지고 사용자 작업이 허용되지 않습니다. 유일한 옵션은 재부팅입니다.

더 자세히 연구하기 위해 로그를 수집하고 싶습니다. 내 생각

  • dmesg | grep그러나 특정 간격을 얻는 방법
  • log/디렉토리가 어딘가에 존재합니다/

GAD3R 테스트답변

명령 배우기journalctl --since yesterday

  • 하는 중 오류가 발생했습니다.journalctl --since yesterday | grep error | less

     Oct 01 16:30:40 masi kernel: tpm_crb: probe of MSFT0101:00 failed with error -16
     Oct 01 16:30:40 masi kernel: EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
     Oct 01 16:30:40 masi kernel: iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-21.ucode failed with error -2
     ...
     Oct 01 16:30:41 masi apache2[1053]: The Apache error log may have more information.
     Oct 01 16:30:42 masi gdm-Xorg-:0[1427]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
     Oct 01 16:30:53 masi org.a11y.Bus[1599]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
     ...
     Oct 01 16:30:53 masi gnome-session[1595]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
     Oct 01 16:30:53 masi ca.desrt.dconf[1599]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
     Oct 01 16:31:20 masi gnome-session[1775]: (tracker-extract:1960): Tracker-WARNING **: Task for 'file:///home/masi/Documents/(Compu.djvu' finished with error:
     Could not get any metadata for uri:'file:///1...1.djvu' and mime:'image/vnd.djvu'
     Could not get any metadata for uri:'file:///home/masi/Documents/Programming/CDC..1.svg' and mime:'image/svg+xml'
     Oct 01 16:31:20 masi gnome-session[1775]: (tracker-extract:1960): Tracker-WARNING **: Task for 'file:///home/masi/Documents/Physics/0441/r328_1.raw' finished with error: Could not get any metadata for
     Oct 02 15:45:21 masi gnome-session[1775]: (nm-applet:1964): libnm-glib-WARNING **: replace_settings: error updating connection /org/freedesktop/NetworkManager/Settings/6 settings: (1) ipv4.routes: 1. route is invalid
     ...
     Oct 02 15:54:28 masi org.freedesktop.Telepathy.AccountManager[1818]: (process:1906): libnm-glib-WARNING **: replace_settings: error updating connection /org/freedesktop/NetworkManager/Settings/6 settings: (1) ipv4.routes: 1. route is invalid
     ...           
     Oct 02 16:51:08 masi org.gtk.Private.UDisks2VolumeMonitor[1818]: index_parse.c:191: indx_parse(): error opening /media/masi/MasiWeek/BDMV/index.bdmv
     Oct 02 16:51:08 masi org.gtk.Private.UDisks2VolumeMonitor[1818]: index_parse.c:191: indx_parse(): error opening /media/masi/MasiWeek/BDMV/BACKUP/index.bdmv
     Oct 02 17:55:02 masi kernel: jxbrowser-chrom[26948]: segfault at 39 ip 00007ff33300d760 sp 00007fff715c0c38 error 6 in libjxbrowser-chromium-lib.so[7ff3322ea000+7676000]
     Oct 02 18:15:51 masi gnome-session[1775]: Gjs-Message: JS LOG: Received error from DBus search provider org.gnome.Photos.desktop during GetResultMetas: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.383 was not provided by any .service files
     Oct 02 23:00:24 masi org.gtk.vfs.Daemon[1818]: ** (process:2021): WARNING **: send_infos_cb: No such interface 'org.gtk.vfs.Enumerator' on object at path /org/gtk/vfs/client/enumerator/5 (g-dbus-error-quark, 19)
     ...
     Oct 02 23:08:49 masi org.gtk.vfs.Daemon[1818]: ** (process:2021): WARNING **: send_done_cb: No such interface 'org.gtk.vfs.Enumerator' on object at path /org/gtk/vfs/client/enumerator/9 (g-dbus-error-quark, 19)
    
  • 경고하다journalctl --since yesterday | grep warning | less

      Oct 01 16:30:42 masi gdm-Xorg-:0[1427]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
      Oct 01 17:05:24 masi gnome-session[1775]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x280002f specified for 0x2800038 ( ).
      Oct 02 22:23:32 masi gnome-session[1775]: Window manager warning: Window 0x2801c66 (HG_Peer_Of) sets an MWM hint indicating it isn't resizable, but sets min size 1 x 1 and max size 2147483647 x 2147483647; this doesn't make much sense.
      ... [thousands of this warning]
    
  • 산출root@masi:/home/# timedatectl status

          Local time: Sun 2016-10-02 23:15:57 EEST
      Universal time: Sun 2016-10-02 20:15:57 UTC
            RTC time: Sun 2016-10-02 20:15:57
           Time zone: Europe/Helsinki (EEST, +0300)
         NTP enabled: no
    NTP synchronized: no
     RTC in local TZ: no
          DST active: yes
     Last DST change: DST began at
                      Sun 2016-03-27 02:59:59 EET
                      Sun 2016-03-27 04:00:00 EEST
     Next DST change: DST ends (the clock jumps one hour backwards) at
                      Sun 2016-10-30 03:59:59 EEST
                      Sun 2016-10-30 03:00:00 EET
    

OS: Debian 8.5 64비트
Linux 커널: 스레드에 설명된 대로 4.6용 백포트 설정여기
하드웨어: ASUS Zenbook UX303UA

답변1

journalctlDebian 로그를 수집하려면 다음 옵션과 함께 명령을 사용할 수 있습니다 yesterday.

journalctl --since yesterday

관련 정보