[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#943343: fwupd: fwupd-refresh.service failed to start Refresh fwupd metadata and update motd.



Can you check if fwupdmgr works as a standard user to talk to the daemon for you?

> -----Original Message-----
> From: Thomas Stewart <thomas@stewarts.org.uk>
> Sent: Wednesday, January 27, 2021 5:42
> To: 943343@bugs.debian.org
> Subject: Bug#943343: fwupd: fwupd-refresh.service failed to start Refresh
> fwupd metadata and update motd.
> 
> 
> [EXTERNAL EMAIL]
> 
> Hi,
> 
> I'm running testing/sid and have fwupd-1.5.5-2 installed. I have found
> that when fwupd-refresh.service restarts either with the timer or
> manually that if DynamicUser=yes is enabled then the service fails to
> start[0]. When I remove DynamicUser from the unit it restarts fine.
> 
> I noticed that the unit has: CacheDirectory=fwupdmgr but the
> metadata seems to live in /var/cache/fwupd[1].
> 
> After purging the package and removing /var/cache/fwup* /var/lib/fwupd
> /var/cache/private/fwupd and reinstalling I can see the /var/cache dirs
> created[2] but the service does not start.
> 
> When removing the "StandardError=null" directive from the unit I get an
> additional error[3], which seems to indicate it's having trouble
> talking to dbus.
> 
> Kind Regards
> --
> Tom
> 
> [0]
> $ sudo systemctl restart fwupd-refresh.service
> Job for fwupd-refresh.service failed because the control process exited with
> error code.
> See "systemctl status fwupd-refresh.service" and "journalctl -xe" for details.
> $
> 
> $ sudo journalctl -f
> Jan 27 10:09:30 systemd[1]: Starting Refresh fwupd metadata and update motd...
> Jan 27 10:09:31 fwupdmgr[176638]: (fwupdmgr:176638): GLib-DEBUG: 10:09:31.089:
> setenv()/putenv() are not thread-safe and should not be used after threads are
> created
> Jan 27 10:09:31 systemd[1]: fwupd-refresh.service: Main process exited,
> code=exited, status=1/FAILURE
> Jan 27 10:09:31 systemd[1]: fwupd-refresh.service: Failed with result 'exit-
> code'.
> Jan 27 10:09:31 systemd[1]: Failed to start Refresh fwupd metadata and update
> motd.
> $
> 
> [1]
> $ find /var/cache/fw*
> /var/cache/fwupd
> /var/cache/fwupd/metadata.xmlb
> /var/cache/fwupd/quirks.xmlb
> /var/cache/fwupd/metainfo.xmlb
> /var/cache/fwupdmgr
> $
> 
> [2]
> $ sudo ls -la /var/cache/fwupdmgr /var/cache/private/fwupdmgr
> lrwxrwxrwx 1 root  root    16 Jan 27 10:57 /var/cache/fwupdmgr ->
> private/fwupdmgr
> 
> /var/cache/private/fwupdmgr:
> total 8
> drwxr-xr-x 2 62803 62803 4096 Jan 27 10:57 .
> drwx------ 3 root  root  4096 Jan 27 10:57 ..
> $
> 
> [3]
> Jan 27 11:09:30 fwupdmgr[189035]: Failed to connect to daemon: Exhausted all
> available authentication mechanisms (tried: EXTERNAL) (available: EXTERNAL)


Reply to: