Failed archlinux-keyring-wkd-sync.service

The new archlinux-keyring sync service fails to start for me for the second time since its introduction. I wonder if anyone else is having this issue as well.

systemctl status archlinux-keyring-wkd-sync.service  
× archlinux-keyring-wkd-sync.service - Refresh existing keys of archlinux-keyring
     Loaded: loaded (/usr/lib/systemd/system/archlinux-keyring-wkd-sync.service; static)
     Active: failed (Result: exit-code) since Mon 2022-09-12 07:21:29 CEST; 23min ago
   Duration: 3h 55min 8.571s
TriggeredBy: ● archlinux-keyring-wkd-sync.timer
    Process: 38382 ExecStart=/usr/bin//archlinux-keyring-wkd-sync (code=exited, status=2)
   Main PID: 38382 (code=exited, status=2)
        CPU: 14.530s

Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Skipping key 0E87D6C3F9AF7FDED0C8588D22E3B67B4A86FDE7 with UID me@vild.io...
Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Skipping key 0E87D6C3F9AF7FDED0C8588D22E3B67B4A86FDE7 with UID arch@vild.io...
Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Skipping key 0E87D6C3F9AF7FDED0C8588D22E3B67B4A86FDE7 with UID dan@mutate.se...
Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Skipping key 0E87D6C3F9AF7FDED0C8588D22E3B67B4A86FDE7 with UID xwildn00bx@gmail.com...
Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Refreshing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2 with UID pierre@master-key.archlinux.org...
Sep 12 07:21:29 arch-lenovo-yoga archlinux-keyring-wkd-sync[38401]: gpg: error retrieving 'pierre@master-key.archlinux.org' via WKD: Connection timed out
Sep 12 07:21:29 arch-lenovo-yoga archlinux-keyring-wkd-sync[38401]: gpg: error reading key: Connection timed out
Sep 12 07:21:29 arch-lenovo-yoga systemd[1]: archlinux-keyring-wkd-sync.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 12 07:21:29 arch-lenovo-yoga systemd[1]: archlinux-keyring-wkd-sync.service: Failed with result 'exit-code'.
Sep 12 07:21:29 arch-lenovo-yoga systemd[1]: archlinux-keyring-wkd-sync.service: Consumed 14.530s CPU time.

archlinux-keyring in journalctl from today >> http://ix.io/4agM

Sep 12 03:26:20 arch-lenovo-yoga archlinux-keyring-wkd-sync[38382]: Refreshing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2 with UID pierre@master-key.archlinux.org...
Sep 12 07:21:29 arch-lenovo-yoga archlinux-keyring-wkd-sync[38401]: gpg: error retrieving 'pierre@master-key.archlinux.org' via WKD: Connection timed out
Sep 12 07:21:29 arch-lenovo-yoga archlinux-keyring-wkd-sync[38401]: gpg: error reading key: Connection timed out
Sep 12 07:21:29 arch-lenovo-yoga systemd[1]: archlinux-keyring-wkd-sync.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 12 07:21:29 arch-lenovo-yoga systemd[1]: archlinux-keyring-wkd-sync.service: Failed with result 'exit-code'.
Sep 12 07:21:29 arch-lenovo-yoga audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=archlinux-keyring-wkd-sync comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Sep 12 07:21:29 arch-lenovo-yoga kernel: audit: type=1131 audit(1662960089.473:566): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=archlinux-keyring-wkd-sync comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

Could this be a keyserver issue?

Running archlinux-keyring-wkd-sync manually >> http://ix.io/4agS

Refreshing key A2FF3A36AAA56654109064AB19802F8B0D70FC30 with UID heftig@archlinux.org...
gpg: error retrieving 'heftig@archlinux.org' via WKD: Connection closed in DNS
gpg: error reading key: Connection closed in DNS

Seems to be a networking issue. Try again later?

Thanks for the reply @jonathon !

I did actually try in the meantime to run archlinux-keyring-wkd-sync manually in a terminal. Judging by the output it seemed to have worked out this time.

I have had this service failing on me on two occasions already since its introduction (two Mondays in a row) so I am thinking if I am going to do away with it altogether and just run the sync command manually whenever there is an issue with the gpg keys.

My PC is showing inactive(dead). How to activate as -systemctl enable,
Archlinux_keyring_wkd_sync_status
does not activate it

Activate the timer:

sudo systemctl enable --now archlinux-keyring-wkd-sync.timer

The service will run when triggered by the timer.

2 Likes

Activated timer. Still showing same inactive/dead status. Does it starts and stops when activated by system periodically?Not sure
archlinux_keysync_fail

Yes, it’s triggered by the timer. Do a systemctl status archlinux-keyring-wkd-sync.timer and it will tell you how long there is until the next run.

1 Like

It works.Thanks https://forum.endeavouros.com/u/chomsky and https://forum.endeavouros.com/u/jonathon for help.
key_sync_timer_works

3 posts were split to a new topic: AUR PGP Issue