[21.02] opkg update fails on wdr3600 (wget returned 4)

I have IPv4 and IPv6 connectivity. I can also just wget those files. Other target (ipq40xx) do not have any problems. On WDR3600 it always fails:

root@bla:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/kmods/5.4.124-1-4f1271a56f0192cef6cc5531235d2d0e/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/kmods/5.4.124-1-4f1271a56f0192cef6cc5531235d2d0e/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/ath79/generic/kmods/5.4.124-1-4f1271a56f0192cef6cc5531235d2d0e/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/mips_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

Check the output:

ping -4 -q -c 3 openwrt.org
ping -6 -q -c 3 openwrt.org
wget -4 -O /dev/null https://downloads.openwrt.org/
wget -6 -O /dev/null https://downloads.openwrt.org/
2 Likes

Wow, I have 33 % packet loss on ipv4 and 0 % on ipv6.

However, both uclient-fetch commands work.

1 Like

related sidenote: suspect the (trunk only?) recent (3 weeks ago?) busybox bump (or SRV pr etc.) has altered OS handling with ipv6 ( generally for the better )... unsure if these improvements feed back down to uclient-fetch

something to do with resolver ip selection...

1 Like

I believe a minor packet loss should not be critical.
However, there's a long standing issue for musl/getaddrinfo selecting an incorrect socket for outgoing connections under certain conditions.
Try to bring down unrelated interfaces and temporarily disable IPv6 to isolate the problem.

1 Like

Try another Mirror https://openwrt.org/downloads#mirrors Think closes to you would be France on http://openwrt.tetaneutral.net but check first if you get pocket loss

1 Like

I have again those problems on a fritzbox 7530:

root@xxx:/tmp# wget https://downloads.openwrt.org/releases/21.02-SNAPSHOT
/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz
Downloading 'https://downloads.openwrt.org/releases/21.02-SNAPSHOT/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz'
Connecting to 2a01:4f8:251:321::2:443
(null)                   0   - stalled -
Connection reset prematurely

Hi there,
i have a similar problem. When calling:

wget -4 -O /dev/null https://downloads.openwrt.org/

I get the following error message:

root@rome03:/tmp# wget -4 -O /dev/null https://downloads.openwrt.org/
Downloading 'https://downloads.openwrt.org/'
Connecting to 168.119.138.211:443
Connection error: Invalid SSL certificate

Something seems wrong with the certificate?