openwrt / asu

An image on demand server for OpenWrt based distributions
https://sysupgrade.openwrt.org
GNU General Public License v2.0
321 stars 80 forks source link

Cannot determine currently running branch/invalid argument (22) #800

Closed benhedrington closed 4 months ago

benhedrington commented 5 months ago

Unsure how to resolve this issue.

root@openwrt:~# auc
auc/0.3.2-1
Server:    https://sysupgrade.openwrt.org
Running:   23.05.2 r23630-842932a63d on x86/64 (generic)
WARNING: cannot determing currently running branch.
Invalid argument (22)
Danacus commented 5 months ago

After some digging, I think I figured it out. This may be a regression of https://github.com/openwrt/asu/commit/85392c0e44e05916a16d437940639ce819f409c3.

@aparcar You removed path_packages from the branches API, as it is supposedly never really used. However, if I understood correctly, auc will not process any branches that lack this field, as it is considered mandatory: https://github.com/openwrt/packages/blob/master/utils/auc/src/auc.c#L1203-L1207.

Side-note: you added the latest releases in https://github.com/openwrt/asu/commit/6ce5023d32410c82752e043ed2e126eee03b9422, but this does not seem to be live on https://sysupgrade.openwrt.org/json/v1/branches.json yet.

sumerland commented 5 months ago

Thank you for digging, @Danacus . That probably explains why I could upgrade to 23.05.2 but not to 23.05.3.

benhedrington commented 5 months ago

@Danacus thank you for helping progress on this bug.

Are you aware of anything I can do on my side to help auc understand my current branch like some sort of argument or setting?

Danacus commented 5 months ago

I don't think there's anything we can do, since auc will not process any of the branches from the sysupgrade server.

I think the only options are:

opty77 commented 4 months ago

Still a thing:

root@tplink:~# auc
auc/0.3.2-1
Server:    https://sysupgrade.openwrt.org
Running:   23.05.2 r23630-842932a63d on ath79/generic (tplink,tl-wdr3600-v1)
WARNING: cannot determing currently running branch.
Invalid argument (22)
aparcar commented 4 months ago

Sorry will try to take care of it soonish

aparcar commented 4 months ago

I think this fixed it, now I just have to deploy the fresh docker containers which takes a bit since the CI is bloated again https://github.com/openwrt/asu/commit/c0104cd849bf5f8d13edc1b7175665615e89d58e

aparcar commented 4 months ago

Should be fixed, please try again and close this issue if successful.

Danacus commented 4 months ago

This solved the issue for me. Thanks a lot!

woeisme commented 2 months ago

I'm still getting this error

# auc -r
auc/0.3.1-1
Server:    https://sysupgrade.openwrt.org
Running:   21.02.1 r16325-88151b8303 on x86/64 (generic)
WARNING: cannot determing currently running branch.
Invalid argument (22)