OPKG failed to download, wget returned 4 bug?

Hello everyone,
I have noticed the following on my QNAP Qora-301w and I think it was also the case on my Netgear WAX206.
Both are configured as APs.

I got the following error when I tried to update the package list or when I tried to install packages on the QNAP:

opkg update
Downloading https://downloads.openwrt.org/releases/23.05.5/targets/ipq807x/generic/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/targets/ipq807x/generic/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.5/targets/ipq807x/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/23.05.5/packages/aarch64_cortex-a53/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

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

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

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.5/packages/aarch64_cortex-a53/routing/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

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

If I then go to Interface “lan” in Luci and uncheck “Use default gateway” once in the “Advanced Settings”, save and then check the box again and save, the error is gone and everything works again.

Now it works again but I think after a reboot I have to do it again, has anyone else noticed something like this?

When configured as APs you have to set DNS and gateway pointing to the main router in the LAN interface:
https://openwrt.org/docs/guide-user/network/wifi/wifiextenders/bridgedap

2 Likes

Yes, I am aware of this, I have also configured the APs in this way and have been using them for 1-2 years. Now I just noticed this behavior in the version OpenWrt 23.05.5 r24106-10cc5fcd00 / LuCI openwrt-23.05 branch git-24.364.71483-75d2b84

The wget error points to a network problem so from the router you can check with e.g:

ping 8.8.8.8
nslookup openwrt.org
nslookup openwrt.org 8.8.8.8
ping openwrt.org

No, everything works perfectly. Then at some point I have a wget error 4, 5 or even 6, which varies.
If I then briefly remove the tick on the LAN interface "Use default gateway" so that it is disable, save, set the tick again and save, everything works as before.
My other OpenWRT devices in the network do not have this problem. My network is fine I think, only the two APs Netgear WAX206 have the problem now.

Now that's a contradiction...

1 Like

When you notice that the issue started:

  1. Check whether each of following commands works on one of your supposedly unaffected devices:
  • ping -4 <main_router_ipv4_address>
  • ping -4 8.8.8.8
  • ping -6 <main_router_ipv6_address>
  • ping -6 2001:4860:4860::8888
  • nslookup -query=A google.com
  • nslookup -query=AAAA google.com
  1. Check and post the output of same commands on one of the affected devices
  2. Post the output of logread on one of the affected devices

Regardless, please post the output of:

  1. cat /etc/config/network
  2. cat /etc/config/dhcp

(on one of the affected devices)

1 Like

Thank you for your answer.....
The next time the problem occurs, I will provide the data.

Make sure the date/time is correct