Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77774 - [fwupd] fwupd-refresh.service: Main process exited, code=exited, status=1/FAILURE

Attached to Project: Community Packages
Opened by CS (JMP64i) - Tuesday, 07 March 2023, 23:31 GMT
Last edited by freswa (frederik) - Wednesday, 08 March 2023, 22:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
freswa (frederik)
Filipe LaĆ­ns (FFY00)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
fwupd-refresh.service fail with the following log:
# journalctl -fu fwupd-refresh.service
Mar 08 00:21:10 <hostname> systemd[1]: Starting Refresh fwupd metadata and update motd...
Mar 08 00:21:10 <hostname> systemd[1]: fwupd-refresh.service: Main process exited, code=exited, status=1/FAILURE
Mar 08 00:21:10 <hostname> systemd[1]: fwupd-refresh.service: Failed with result 'exit-code'.
Mar 08 00:21:10 <hostname> systemd[1]: Failed to start Refresh fwupd metadata and update motd.

Some solutions are on the internet but I don't know which solution is the best:
* https://github.com/fwupd/fwupd/issues/2532
* https://github.com/fwupd/fwupd/issues/3597
* https://askubuntu.com/questions/1404691/fwupd-refresh-service-failed
* https://askubuntu.com/questions/1415928/cannot-start-fwupd-refresh-service
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943343
* https://bugzilla.redhat.com/show_bug.cgi?id=2029179
* https://itsfoss.community/t/fwupd-refresh-service-has-finished-with-a-failure/9627/7
* ...

Additional info:
* version: 1.8.12-1

Steps to reproduce:
systemctl start fwupd-refresh.service
This task depends upon

Closed by  freswa (frederik)
Wednesday, 08 March 2023, 22:06 GMT
Reason for closing:  Upstream
Additional comments about closing:  https://github.com/systemd/systemd/issue s/22737

Either edit the service or install dbus-broker in the meantime.
Comment by Toolybird (Toolybird) - Wednesday, 08 March 2023, 06:16 GMT
FWIW the refresh service is not mentioned in the Arch wiki article. But that refresh service comes with a systemd timer which implies you should be using it instead. The service simply runs:

/usr/bin/fwupdmgr refresh

but you're trying to run it like a daemon which the refresh service is not. Please use the timer. Additionally, because it talks to a remote server, network and/or remote issues could also be a factor.

In any case, there is nothing to indicate an Arch packaging bug here. Feel free to discuss further in the proper support channels (forum/IRC/etc).
Comment by CS (JMP64i) - Wednesday, 08 March 2023, 08:17 GMT
  • Field changed: Percent Complete (100% → 0%)
Yes I'm using it with the timer, which simply trigger the service. And since the service fail, the timer triggered is failing too.

And no it is not a network/remote problem. I have many independent systems which fails and if I add User=root to the service file, it works on all of this. But I'm not sure if this is the bedt solution.

Additionally many other distribution fixed it in some way.

Therefor I can open up the same issue on the forum or you can simply try if it will fail on your system too to verify it.
Comment by Toolybird (Toolybird) - Wednesday, 08 March 2023, 08:23 GMT
It would have been better to mention all this in your initial report...instead of posting a bunch of inconclusive links. Anyway, the PM's might have some suggestions.
Comment by freswa (frederik) - Wednesday, 08 March 2023, 21:27 GMT
This is the root cause: https://github.com/systemd/systemd/issues/22737

In the meantime one can either run the process with it's own user, as root or just mask the service. I don't think we should lower security here since the service isn't required at all. Also `fwupd refresh` works fine.
Comment by freswa (frederik) - Wednesday, 08 March 2023, 22:02 GMT
Another option is to install dbus-broker which doesn't suffer from the same systemd issue.

Loading...