OpenWrt AP no update opkg

I have installed / Upgraded to OpenWrt 22.03 on a TP-Link TL-WR1043ND v1
I followed the instructions from here https://openwrt.org/docs/guide-user/network/wifi/dumbap in the section "Configuration via LuCI, the OpenWrt Web Interface"
All is working fine the client can use the AP and have also internet connection. Also a wired connection to the switch is working fine.
However I can not update the opkd database.

The diagnostics show

PING openwrt.org (139.59.209.225): 56 data bytes

--- openwrt.org ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
traceroute to openwrt.org (139.59.209.225), 20 hops max, 46 byte packets
 1  192.168.1.1  0.658 ms
 2  *
 3  *
 4  *
 5  *
 6  *

NSlookup:

Server:		127.0.0.1
Address:	127.0.0.1:53

Non-authoritative answer:
Name:	openwrt.org
Address: 139.59.209.225

Non-authoritative answer:
Name:	openwrt.org
Address: 2a03:b0c0:3:d0::1af1:1

IN the LAN (br-lan) interface I have set up the DNS and gateway accordingly

the entry for the lan is (/etc/config/network)

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.1.95'
        option gateway '192.168.1.1'
        option force_link '0'
        list dns '192.168.1.1'

What error does opkg produce?

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/22.03.3/targets/ath79/generic/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/targets/ath79/generic/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/base/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/luci/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/routing/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/telephony/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/telephony/Packages.gz

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

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

If you replace the lan config with the above, does it work then?

1 Like

Unfortunately no change

I assume you restarted the device, or network service afterwards?

Had the same problem and solved reading here.

To be more specific, when my AP was configured with "static address", i.e. option proto 'static' as yours, I changed Network → Interfaces → LAN → General Settings: IPv4 gateway 192.168.1.1 and Advanced Settings → Use custom DNS servers: 192.168.1.1.

1 Like

I was about to write the same.
The AP has no DNS server set has it didn't receive it via DHCP as usual.

The traceroute suggests that 192.168.1.1 does not route to the Internet.

Yes, I did a restart

I had the same config, no change

It was in there, check the 1st post.

2 Likes

No, 192.168.1.1 has a route to the Internet. Awirelss client has the same gateway and can access the internet

The traceroute shows a successful DNS then a request to 192.168.1.1 as the gateway, but nothing reached beyond that.

It has only 32 MB RAM which is likely to cause problems with lack of RAM, which may not be immediately obvious.

2 Likes

This is before starting the Update

And this during opkg update

I saw it after. Sorry.

What update?

I just want to get the list of packages ... (In the GUI update lists)

Can you ping other internet addresses from the AP (such as ping 8.8.8.8)?

Just as a sanity check... @herby64 - what is it that you want to install on this device? When running in a dumb AP configuration, there is not really much that is needed in most situations, and given this...

you may be best off just keeping it purely as a dumb AP.

Alternatively, you can create a custom image using the firmware selector page... you could omit things you don't need in an effort to free up some resources, and pre-install any packages you do need so that you don't have to worry about using the opkg system.