-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
DietPi-Globals | G_CHECK_URL fails as DNS resolving takes very long #2726
Comments
@musicfan145 Could you please go trough: #2717 |
Looks like 6+ seconds for me too: root@Sparky:~# time wget --spider https://deb.debian.org/debian real 0m6.200s real 0m0.465s |
Based on /etc/resolv.conf DNS is apparently set to my router. I will try some of the other troubleshooting steps next. |
@musicfan145 You are already the third reporting this. In the other two cases the internet otherwise is fast 50 - 100 Mbits and in one case all other clients (e.g. Windows desktops etc) using the same DNS and resolving fractions of a second. In your case it is a bid different then in the linked issue as only first resolving is taking long (09:07:18 => 09:07:24) which the others finish in the same second. So to test:
Not sure what can be the reason here. The DNS resolving itself should only take fractions of a second, as long as you didn't manually hack inside a DNS server from the other side of the globe. I will dig a bid into it and try to find methods to debug the DNS resolving itself at best calling the bare library behind it and skipping the wget/curl/etc wrappers. |
I tried switching to static IP using the copy command in dietpi-config. (I already had it set to static on the router.) With the DNS setting unchanged (my router as DNS) the connection time was the same. I switched the DNS to 8.8.8.8 and this sped things up a bit, but it was still over 6 seconds for I edited the timeout in dietpi-globals, and this allowed me to run dietpi-software. However, it is still a mystery as to why DNS is so slow. I tried running |
@musicfan145 Nice about it is as well that it lists all the redirects done in a better overview than wget does. But the timestamps each redirect are missing, instead you see the time reported from the servers, which are not always 100% in sync. |
We added the possibility to raise the timout and retry count for G_CHECK_URL which should resolve this issue. This could be further tweaked, e.g. we scrape the output for "timeout" and in case give more specific info and allow to change these settings directly (or open the submenu directly): #2717 (comment) |
Details:
Steps to reproduce:
Expected behaviour:
Actual behaviour:
root@IQaudIO:~# dietpi-software
[ OK ] DietPi-Software | Root access verified.
[ OK ] DietPi-Software | RootFS R/W access verified.
[ OK ] DietPi-Software | Initialized database
[ OK ] DietPi-Software | Reading database
[ .... ] DietPi-Software | Failed connection attempt (1/3), retrying[ .... ] DietPi-Software | Failed connection attempt (2/3), retrying[ .... ] DietPi-Software | Failed connection attempt (3/3), retrying[FAILED] DietPi-Software | Connection test: http://raspbian.raspberrypi.org/raspbian
Extra details:
This is happening on all of my DietPi machines, Raspberry Pi 3 and Sparky, versions 6.21.1 to 6.22.3. It also fails the connection test in DietPi-config network settings. However, DietPi updates still work if connection failures are ignored.
Additional logs:
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
root@IQaudIO:~#
The text was updated successfully, but these errors were encountered: