Gnome
gnome-shell 錯誤日誌
我在哪裡可以找到
gnome-shell
錯誤(或調試)日誌?我對發出錯誤/警告消息很感興趣,因為我有一個 GLX 問題需要調試,而且我相信關鍵可能在
gnome-shell
’s 消息中。
我將從 journald 的日誌開始。嘗試其中之一:
$ journalctl /usr/bin/gnome-shell $ journalctl /usr/bin/gnome-session
如果日誌不存在,請嘗試以下操作:
$ journalctl -xe
Google搜尋我確實找到了這個標題為:gnome-session logging 的文章,當我在我擁有的 Ubuntu 16.04 系統上嘗試它們時,它確實有幾個範例有效。
SYSLOG_IDENTIFIER=gnome-session-binary
$ journalctl SYSLOG_IDENTIFIER=gnome-session-binary -n 5 -- Logs begin at Sun 2018-07-15 06:33:41 EDT, end at Sat 2018-07-21 00:23:03 EDT. -- Jul 16 18:35:21 manny gnome-session-binary[17047]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Jul 16 18:35:21 manny gnome-session-binary[17047]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Jul 16 18:35:21 manny gnome-session-binary[17047]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed Jul 17 02:11:43 manny gnome-session-binary[18526]: Entering running state Jul 17 13:08:48 manny gnome-session-binary[23495]: Entering running state
SYSLOG_IDENTIFIER=gnome 會話
$ journalctl SYSLOG_IDENTIFIER=gnome-session -n 5 -- Logs begin at Sun 2018-07-15 06:33:41 EDT, end at Sat 2018-07-21 00:23:03 EDT. -- Jul 20 06:30:10 manny gnome-session[18526]: (gnome-software:18773): Gs-WARNING **: failed to call gs_plugin_refresh on apt: apt transaction returned result exit-failed Jul 20 06:30:10 manny gnome-session[18526]: (gnome-software:18773): Gs-WARNING **: failed to refresh the cache: no plugin could handle refresh Jul 20 07:36:18 manny gnome-session[18526]: Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: mkdir failed on directory /var/run/samba/msg.l Jul 20 07:36:18 manny gnome-session[18526]: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Jul 20 07:36:18 manny gnome-session[18526]: Please ask your system administrator to enable user sharing.
.xsession-errors
$ tail -n 5 ~/.xsession-errors upstart: indicator-session main process (25074) killed by TERM signal upstart: indicator-application main process (25139) killed by TERM signal upstart: unity7 main process (25334) terminated with status 1 upstart: unity-panel-service-lockscreen main process (32162) killed by HUP signal upstart: Disconnected from notified D-Bus bus