I'm running Archer C7 v2 - so, 16MB to flash
I've just done sysupgrade from 22.03.4 to 23.05.4 - primarily because trying to install tailscale I ran out of space - so, this was a base sysupgrade not ASU because I wanted to be rid of the crud I've accumulated - the system came back up configured as before minus some no longer needed stuff. So far, so good.
First thing:
root@archerc7v2:~# opkg update
...
root@archerc7v2:~# opkg install tailscale
Installing tailscale (1.58.2-1) to root...
...
linuxfw: clear iptables: exec: "iptables": executable file not found in $PATH
linuxfw: clear ip6tables: exec: "ip6tables": executable file not found in $PATH
flushing log.
logger closing down
root@archerc7v2:~#
That looked like the iptables-nft issue - even if I read somewhere it'd been fixed - so, anyway:
root@archerc7v2:~# opkg install iptables-nft
Installing iptables-nft (1.8.8-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/ath79/generic/packages/iptables-nft_1.8.8-2_mips_24kc.ipk
Installing kmod-nf-ipt (5.15.150-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/ath79/generic/packages/kmod-nf-ipt_5.15.150-1_mips_24kc.ipk
Installing kmod-ipt-core (5.15.150-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/ath79/generic/packages/kmod-ipt-core_5.15.150-1_mips_24kc.ipk
Configuring kmod-nf-ipt.
Collected errors:
* wfopen: /lib/modules/5.15.150/xt_TCPMSS.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_comment.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_limit.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_mac.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_mark.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_multiport.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_tcpudp.ko: No space left on device.
* wfopen: /lib/modules/5.15.150/xt_time.ko: No space left on device.
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/kmod-ipt-core.list: No space left on device.
* opkg_install_pkg: Failed to extract data files for kmod-ipt-core. Package debris may remain!
* opkg_install_cmd: Cannot install package iptables-nft.
* opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.
root@archerc7v2:~#
Then, I banged my head against a wall for far too long chasing the iptables-nft issue - before noticing how that last install ended - running out of space, again!
If you used auc before, you profited from squashfs having a massively better compression ratio that jffs2 on the overlay, that may make enough of a difference here.
I don't know what you installed and how large tailscale (and its depdencies!) is, but the OpenWrt release image weighs ~7.2 MB - and you have ~9.8 MB in-use on the overlay, so that does mean the flash is full. You can check on /overlay/upper what files are on there, but I wouldn't really expect there to be anything you haven't (tried to) install before.
Thanks, @brada4
you say iptables-nft needs to be pre-installed for tailscale? So, there isn't a fix for the iptables-nft issue? With the result I got from opkg install tailscale that's what I figured, but when I realised the install of iptables-nft was broken for space, then I wondered if that was the case of the install of tailscale also...
Wireguard would much smaller than tailscale - so if you don't depend on tailscale's unique features (connecting to a system behind (cg-)NAT), that would be the natural choice.
The lazy way out would be moving to a router with more flash.
In the mean time, have a go with imagebuilder and check your options - as mentioned, anything that's not on the overlay, but inside the squashfs portion compresses a lot better.
I think I'll factory install 22.05.04 again, reinstall the back up, see if I can fit tailscale on it with that bare system - perhaps see if I can make it go - and then use auc to move to 23 with everything in squashfs
Thanks @slh and @brada4, following this I realised there was no need to go backwards and I could take hammer and chisel to what I had - which I guess is what @brada4 was hinting at - so, onwards and upwards: