archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Infinite waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete. (Lastest version)

Open Heyo7726 opened this issue 1 year ago • 2 comments

How i got this: First i got an error:

Time synchronisation not completing, while you wait- check the docs for workarounds: https://archinstall.readthedocs.io/

then did:

timedatectl set-time "current date/time" archinstall --skip-ntp made Automatic time sync (NTP) false/no

then got:

Waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete.

waited for around 30m and still on the same thing.

possible fixes that i already did: sudo pacman -Sy archinstall pacman-key --init pacman-key --populate pacman-key --refresh-keys sudo pacman -Sy archlinux-keyring

Heyo7726 avatar Sep 10 '24 18:09 Heyo7726

You would also need to terminate/restart the archlinux-keyring-wkd-sync.service as this is what we're waiting for.

This is however the second time I've seen this specific report in 2 weeks so I'll look into how we could optimize this situation.

Torxed avatar Sep 16 '24 07:09 Torxed

I have the same issue as @Heyo7726. I'm a complete newbie with Linux so I'm not well versed in this arena. But I thought I would mention that I have the issue too.

ProgrammerNull avatar Sep 24 '24 16:09 ProgrammerNull

Same issue when run archinstall. 😢 archlinux-keyring-wkd-sync.service and timer is dead, and can't start.

shalldie avatar Nov 07 '24 09:11 shalldie

Same issue when run archinstall. 😢 archlinux-keyring-wkd-sync.service and timer is dead, and can't start.

Usually that's due to network related reasons. I really wish the timer/service in question would have more debug output..

Torxed avatar Nov 09 '24 13:11 Torxed

Having the same issue. Is there a way to help diagnose what the problem is? I don’t think it is a network issue as I can ping google.com, but in truth I don’t know enough about this to know if that is even a good test.

kylescudder avatar Dec 22 '24 00:12 kylescudder

I have been trying to install Arch as a client in Virtualbox on a Debian 12 host. Actually this is my send attempt. I tried this in 2024 and now grabbed the latest 01-01-2025 ISO today.

I have multiple clients that have successfully installation on my workstation, (Debian, Mint, Windows 11). There is no problem with the networking portion. (I have tried manual and automatic options with the Arch install) .

Each time I tried it hung on time synch. I found that there is a command 'archinstall --skip-ntp' and I used that. Arch continued past that point on the next attempt only to hang on Waiting for Linux keyring sync (arch-leyright-wkd-sync) to complete.

I switched the network setting on VB settings to bridged and from root@archio I was able to ping out to the gateway and then all the way to 8.8.8.8. From my Debian host I ran Angry IP and determined the Arch client was using 192.168.1.63. I was able to run ssh [email protected] which gave me a key fingerprint with I accepted and prompted me for a password, which I don't have. But clearly the network settings work. The problem is Arch and not a connectivity issue.

MichaelLieberman avatar Jan 10 '25 03:01 MichaelLieberman

having the same issue, on 3.0.1 and today's master. network is up and running, starting archlinux-keyring-wkd-sync manual runs without errors.

gnoppix avatar Jan 12 '25 15:01 gnoppix

Hi, @gnoppix, I am a Debian user who is new to arch. I was using archinstall from the archio prompt. I am not familiar with a manual install. Are you saying that this will now work?

MichaelLieberman avatar Jan 13 '25 01:01 MichaelLieberman

This particular issue is due to a service on the ISO blocking progress, manual install will have the same issue.

Either way, users need to become familiar with how to deal with services hanging.

systemctl restart archlinux-keyring-wkd-sync.timer
systemctl restart archlinux-keyring-wkd-sync.service

These two commands should remedy the situation, after the machine has network up and running - and assuming the machine is allowed to reach gpg servers to perform the key updates (this is not always the case behind corporate/school networks)

Torxed avatar Jan 23 '25 11:01 Torxed

@Torxed, The problem installing for the first time from the ISO is that at the archiso~# prompt, when I type systemctl restart archlinux-keyring-wkd-sync.timer

I get the response: Failed to restart archlinux-keyring-wkd-sync.timer.service: Unit archlinux-keyring-wkd-sync.timer.service not found

This is the 10/01/2025 release.

MichaelLieberman avatar Jan 23 '25 11:01 MichaelLieberman

sorry didnt added my log, restarting archlinux-keyring-wkd-sync.* services helped on the old version and than falling into python error.... will try now with 3.02 and a proper log :)

gnoppix avatar Jan 23 '25 12:01 gnoppix

logfile was full of: 1737634656.529998 ['/usr/bin/systemctl', 'show', '--property=ActiveEnterTimestamp', '--no-pager', 'archlinux-keyring-wkd-sync.timer']

on another console I've restarted the service and it and fall int python error where it cant find mkinitcpio.conf

File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 872, in minimal_installation if mkinitcpio and not self.mkinitcpio(['-P']): ~~~~~~~~~~~~~~~^^^^^^^^ File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 711, in mkinitcpio with open(f'{self.target}/etc/mkinitcpio.conf', 'r+') as mkinit: ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/mnt/archinstall/etc/mkinitcpio.conf'

If I look into /mnt/archinstall the file doesn't exist, not it exists on /mnt/archinstall/etc/mkinitcpio.conf.d/

Log: https://0x0.st/8X8q.log

running on the installiso : pacman -Q |grep mk mkinitcpio 39.2-3 mkinitcpio-archiso 71-1 mkinitcpio-busybox 1.36.1-1 mkinitcpio-nfs-utils 0.3-8

chroot into /mnt/archinstall/ run pacman -Q give no result. Anything more to test?

edit: used extra/archinstall 3.0.2-2

gnoppix avatar Jan 23 '25 13:01 gnoppix

on another console I've restarted the service and it and fall int python error where it cant find mkinitcpio.conf

Just to clarify, you say you restarted the service, but did you also restart the timer?

archlinux-keyring-wkd-sync.timer

Or was it enough to restart the .service - and then it proceeded to crash?

Torxed avatar Jan 23 '25 14:01 Torxed

@Torxed, archlinux-keyring-wkd-sync.timer was NOT a service available from archiso. I tried but it wasn't in the provided ISO.

MichaelLieberman avatar Jan 23 '25 14:01 MichaelLieberman

@Torxed, archlinux-keyring-wkd-sync.timer was NOT a service available from archiso. I tried but it wasn't in the provided ISO.

Pretty sure it is, and here's why:

  1. packages.x86_64 requires base, which requires archlinux-keyring
  2. pkgfile /usr/lib/systemd/system/archlinux-keyring-wkd-sync.timer shows that core/archlinux-keyring provides that timer.
  3. wget https://ftp.lysator.liu.se/pub/archlinux/iso/2025.01.01/archlinux-2025.01.01-x86_64.iso (latest)
  4. wget https://archlinux.org/iso/2025.01.01/b2sums.txt
  5. b2sum -c b2sums.txt
  6. sudo ip link add br0 type bridge
  7. sudo ip tuntap add dev tapArch mode tap user anton group anton
  8. sudo ip link set dev tapArch master br0
  9. qemu-system-x86_64 -m 8192 -enable-kvm -cdrom archlinux-2025.01.01-x86_64.iso -device pcie-root-port,multifunction=on,bus=pcie.0,id=port9-0,addr=0x9,chassis=0 -device virtio-net-pci,mac=FE:00:00:00:00:00,id=network0,netdev=network0.0,status=on,bus=port9-0 -netdev tap,ifname=tapArch,id=network0.0,script=no,downscript=no -cpu host,topoext,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time -machine type=q35,accel=kvm,kernel_irqchip=on
  10. Image

Torxed avatar Jan 23 '25 14:01 Torxed

@Torxed, OK so I tried twice again and each time it hangs (once for ten minutes) [first snap] I then ctl-C out each time.

I show, via ping, that I have network access (second snap). There is no ifconfig available (deprecated and can't be downloaded as a keyring is not writable), for me to show you how the DHCP sets the session up. I am in bridged mode. The address is part of the LAN netmask this workstation is on and is using the same nameservers that all other devices here use. Our entire network uses a public static IP address in the Philippines. Our mail server and web servers are available from the Internet. All other OSes install.

And that gets me to the question, should keyrings be writable? If so, should I install a Debian package in a VM first and the install archlinux on top of it?

Image

Image

MichaelLieberman avatar Jan 24 '25 00:01 MichaelLieberman

@Torxed after cleaning the pacman-pkg-cache it now works. thanks for all your efforts

gnoppix avatar Jan 25 '25 07:01 gnoppix

EDIT: Not running on a virtual machine, but bare metal. Having this issue too. Restarting the timers and services did NOT remedy the issue. Internet is working. I am not behind a school/corporate wifi.

WinnerWind avatar Feb 17 '25 16:02 WinnerWind

I'm experiencing the same issue, what's the current fix?

Game-Geekz0 avatar Feb 27 '25 21:02 Game-Geekz0

Same issue here I've been troubleshooting for a couple days and I'm now realizing there is nothing more I can do

reportthings avatar Feb 28 '25 23:02 reportthings

I'm experiencing the same issue, what's the current fix?

I messed around a bit more. For some reason if I select US mirrors I get the "waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete." issue. But selecting none of the mirrors and allowing archinstall to select one the installation goes on with no issues

reportthings avatar Feb 28 '25 23:02 reportthings

I'm experiencing the same issue, what's the current fix?

I messed around a bit more. For some reason if I select US mirrors I get the "waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete." issue. But selecting none of the mirrors and allowing archinstall to select one the installation goes on with no issues

This worked for me! Thank you very much for the help, no idea what causes this issue.

Game-Geekz0 avatar Mar 01 '25 03:03 Game-Geekz0

@reportthings said "I messed around a bit more. For some reason if I select US mirrors I get the "waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete." issue. But selecting none of the mirrors and allowing archinstall to select one the installation goes on with no issues.

So I tried it as a VirtualBox VM clean install. No luck. Still hangs.

MichaelLieberman avatar Mar 04 '25 03:03 MichaelLieberman

I fixed this by unplug the Ethernet and plug it in again and pressed yes to redownload and it worked

qwertytuan avatar Mar 08 '25 13:03 qwertytuan

My router blocked the ntp sync so when I plugged my machine into a socket that did not talk to my router the installed as expected!

daRasmussen avatar May 02 '25 10:05 daRasmussen

I'm experiencing the same issue, what's the current fix?

I messed around a bit more. For some reason if I select US mirrors I get the "waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete." issue. But selecting none of the mirrors and allowing archinstall to select one the installation goes on with no issues

works great! i got the time sync prob then i tried this and... well, it works! Like a charm.. um... just dont use any mirrors then wait for a bit then it should work if it didnt please report it here im no dev but im sure they are tryna fix it

MintLeaf08 avatar Jun 08 '25 12:06 MintLeaf08

I'm experiencing the same issue, what's the current fix?

I messed around a bit more. For some reason if I select US mirrors I get the "waiting for Arch Linux Keyring (archlinux-keyring-wkd-sync) synchronization to complete." issue. But selecting none of the mirrors and allowing archinstall to select one the installation goes on with no issues

works great! i got the time sync prob then i tried this and... well, it works! Like a charm.. um... just dont use any mirrors then wait for a bit then it should work if it didnt please report it here im no dev but im sure they are tryna fix it

still there's a problem, the install never finishied its just giving red errors and orange ones too... it never installs either, please fix this devs really this is my only hope for this old piece of history

Laptop Specs: OS: Tiny 10 B4 x64 CPU: AMD E2 VISION - Dual Core W/ Radeon GPU(TM, Why not) Currently Super Slow and Ru-RUNS STEAM!!!!! WHAT RAM: 2GB RAM (Idk What brand) Samsung Manufactured it Samsung Notebook NP305U1A

Notes: Suprisingly Runs Steam... Tag: The Power Of Paint Also Suprisingly has HDMI Good Audio (I think) Quite Good USB 16GB I didnt install Arch but I got ubuntu to get inside of this History ol' boi also i got linux mint and random things on this boi, i got a red & orange error of some kind it also wants me to Restart the install idk why my cpu probaly is the prob but it runs well onther oses and vmware runs all oses i got here alongside my Cool USB which also works fine so idk what doesnt work please devs HELP MEEEEEE!!!

-Random Guy From Github, yours cooly. §MintLeaf§

PS: Also the Laptop Is Currently Dead, Im tryna fix it still

MintLeaf08 avatar Jun 08 '25 12:06 MintLeaf08

You can use --skip-wkd now days.

Torxed avatar Jun 08 '25 16:06 Torxed

The Same Problem….

Image

3yeskXng avatar Jun 12 '25 19:06 3yeskXng

The Same Problem….

Did you try the solution posted?

Torxed avatar Jun 12 '25 20:06 Torxed