New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hangs on "Waiting for time sync (systemd-timesyncd.service) to complete." during install #2144
Comments
Can you confirm that this is happening because network configuration is done manually (like wifi, slow DHCP or even static IP)? |
Yes, at work we have a very restrictive firewall, MITM, self-signed certificates and other annoyances. One or more of these factor prevent NTP communication with outside servers and things only work after I stop NTP service, point it to internal NTP server and then restart NTP service. |
I figured something like this was going on ^^
This is an issue for manual installs to, and I think instead of fixing it here, I'll discuss with some other upstream devs if we can't solve this permanently for all use cases. |
I'm installing Arch on a VM on Proxmox using the ISO There are several other steps I need to do before starting the actual installation. These steps are:
|
Going back and forth on this, since it's network related on user side - there's really nothing we can do to fix this. We could however add a It'd be up to the user to verify that time is correct, or as OP mentioned edit the NTP settings and restart the timesyncd-service. Would this be a viable option? |
This would be sufficient. But the ideal would be to detect the problem with NTP (by timeout, perhaps?), kill the NTP process and proceed with the installation. |
Some sort of feedback to the user would also be good. When I got this issue I simply waited to see if it it would magically fix itself haha A disclaimer with possible reasons for hanging would give the user enough information to possibly do something about it himself |
Those are valid suggestions,
This is usually not enough tho, as it also requires manual configuration first. I'll make sure to add the parameter before release and perhaps a note in the
|
Thank you for your work/effort. |
is the ntp process important for any other step in the install? because I have an ansible playbook that later on configures ntp among other things, if I used the proposed '--skip-ntp' flag would I need to do anything else that was skipped/affected during archinstall? |
Yes, the main reason for making sure NTP exists before So NTP is a cheap reliable:tm: way of ensuring that such things work. But as long as you ensure time is accurate to within a couple of seconds from the mirrors etc, any method of setting the correct time should work in theory. |
I see, thank you for the clarification. After a quick search, ntp seems to be ill suited for VMs if they are not constantly running, virtualbox even marked it as wontfix. Letting the user skip ntp and synchronize time on his owns seems more and more like a solid solution (or add something like a vm-mode to synchronize against host time, but no idea how to do that consistently from inside guest for all virtualization providers) |
Correct. The issue is that most often, you'll need to configure for instance -rtc needs to be configured before launching a virtual machine and there's not much we can do after-the-fact. And as you eluded to, some virtualization platforms have issues retaining time. I just.. *grinds my teeth*.. foresee the following issue being that the keyring is out of date, followed by |
For what it's worth, a test page is published for the new docs and it references this issue and it's workaround: https://archlinux.github.io/archinstall/help/known_issues.html#waiting-for-time-sync-2144 Together with PR #2225 - adding |
parameter is now in |
@Torxed might be worth putting that into the FAQ of the readme as well |
Good idea, we should also swap the link to the documentation to https://archinstall.archlinux.page/! PR: #2273 |
As the title says,
archinstall
hangs on "Waiting for time sync (systemd-timesyncd.service) to complete." during install IF NETWORK DO NOT ALLOW NTP TRAFFIC TO GO OUT.It do not timeout as expected.
The only way I found to do my installation was to open another SSH session and:
Then, installation proceeds.
The text was updated successfully, but these errors were encountered: