如何查看为什么“snapd.refresh.service”在启动时无法启动?

5 debugging logs systemd

升级到snapd版本后,2.0.8我注意到我收到一条snapd.refresh.service关于启动失败的错误消息,该错误告诉我要运行哪个命令以查看失败的原因,但是该消息消失得如此之快,以至于我看不到是什么该命令是。

我知道这可能是一个错误,我打算报告它,但是我想知道是否有人知道它可能是什么命令?我认为这可能是一个systemd命令,但我不完全确定。是否有消息会被记录的地方(我已经尝试过 syslogdmesg但它不在那里)?

我正在使用 GNOME 3.20 运行 Ubuntu GNOME 16.04。


对于任何人谁是兴趣已经有提交的这一事项的报告在这里

mur*_*uru 5

您还systemctl status可以查看日志的尾部,以及 systemd 拥有的有关该服务的任何其他信息:

systemctl status snapd.refresh.service
Run Code Online (Sandbox Code Playgroud)

例如:

$ systemctl status lightdm.service   
? lightdm.service - Light Display Manager
   Loaded: loaded (/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/lightdm.service.d
           ??override.conf
        /lib/systemd/system/display-manager.service.d
           ??xdiagnose.conf
   Active: active (running) since Sun 2016-06-12 09:27:09 IST; 2 days ago
     Docs: man:lightdm(1)
 Main PID: 2218 (lightdm)
   CGroup: /system.slice/lightdm.service
           ??2218 /usr/sbin/lightdm
           ??2245 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Jun 12 09:27:12 host lightdm[2278]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jun 12 09:27:12 host lightdm[2278]: PAM adding faulty module: pam_kwallet5.so
Jun 12 09:27:13 host lightdm[2278]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jun 12 09:27:28 host lightdm[2490]: PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
Jun 12 09:27:28 host lightdm[2490]: PAM adding faulty module: pam_kwallet.so
Jun 12 09:27:28 host lightdm[2490]: PAM unable to dlopen(pam_kwallet5.so): /lib/security/pam_kwallet5.so: cannot open shared object file: No such file or directory
Jun 12 09:27:28 host lightdm[2490]: PAM adding faulty module: pam_kwallet5.so
Jun 12 09:27:28 host lightdm[2490]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "muru"
Jun 12 09:27:36 host lightdm[2490]: pam_unix(lightdm:session): session opened for user muru by (uid=0)
Jun 15 05:53:19 host systemd[1]: [/etc/systemd/system/lightdm.service.d/override.conf:2] Executable path is not absolute, ignoring: true
Run Code Online (Sandbox Code Playgroud)

注意信息:

  • 服务状态(启用/禁用)以及供应商设置的状态(在本例中为包)
  • 服务文件的位置,以及任何覆盖文件的位置(“Drop-In”文件)
  • PID、cgroup 和子进程