GL-MT6000 Invalid argument (22) when upgrading to 23.05.5

trying to upgrade my GL.iNet GL-MT6000 router does not work. If I use the luci part it just closes the window after it has downloaded the file. In an ssh session I can see that I get Invalid argument (22) but I have no further clue as to what it means in this case.

Any idea on what the problem is or how I can troubleshoot it further?

Upgrading from what ?

Oh from 23.05.4

Web version workks; command line not

web version? you mean lucy attendedsysupgrade? If so as I stated in the first post it just seems to close and return to main page after uploading file to router, it does not flash it either (I assume it gets the same invalid argument error)

You can try pasting output of

opkg list-installed | cut -d ' ' -f 1

Into firmware-selector, just carefully observe build output, near the end - any size warning means image is likely too big to flash.

You can always flash it from scratch, using the web recovery, but it'll wipe all your settings (which can be exported).

https://openwrt.org/toh/gl.inet/gl-mt6000#oem_recovery

Could this be caused by me installing packages after the initial flash last time and me wanting to sysupgrade with them? In this case I added adguardhome.

I have config backup so if there is a way to flash and having to restore thats all fine. I downloaded the files from firmware selector manually (with the packages I have installed currently) and tried to upload that and then get this warning:

Image check failed:

Thu Sep 26 17:29:12 CEST 2024 upgrade: The device is supported, but the config is incompatible to the new image (1.1->1.0). Please upgrade without keeping config (sysupgrade -n). verifying sysupgrade tar file integrity Image check failed.

Which I wonder why that would be reported going backwards?

I flashed through that warning, throwing away configuration and then restored a backup of configurations. So now back with old settings on 23.05.5 but I still dont know what the errors came from.