openwrt / asu

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

auc - updates not possible with SNAPSHOTS #848

Open GoetzGoerisch opened 5 months ago

GoetzGoerisch commented 5 months ago

Related issue: https://github.com/openwrt/openwrt/issues/15619

brada4 commented 5 months ago

Long thread in forums. https://forum.openwrt.org/t/auc-sysupgrade-does-not-work-for-me/196782/34

What happens is that client checks new version, gets back nice "23.05-SNAPSHOT" and release tag. The release tag intended is never posted to server, so server generates best image it can, which can TOCTOU being different than initially suggested. It needs API enhancement to build for particular release tag and client enhancement to actually post release tag intended. Thank you for considering @aparcar

pko76 commented 4 months ago

Is there any roadmap/hope to fix it?

(LuCI Attended Sysupgrade does not work neither) another EXAMPLE:

root@OpenWrt:~# auc -f auc/0.3.2-1 Server: https://sysupgrade.openwrt.org Running: 23.05-SNAPSHOT r23900-d8415fa270 on ipq40xx/generic (zte,mf286d) Available: 23.05-SNAPSHOT r23900-d8415fa270 Requesting package lists... Are you sure you want to continue the upgrade process? [N/y] y Current Target: "ipq40xx/generic" Current Architecture: "arm" Current Revision: "r23898-d0620706f0" Default Packages: (...) Available Profiles: (...) zte_mf286d: ZTE MF286D Packages: kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi hasImageMetadata: 1 SupportedDevices: zte,mf286d Error: Received incorrect version r23898-d0620706f0 (requested r23900-d8415fa270) Bad message (74)

GoetzGoerisch commented 4 months ago

solved with owut, the replacement for auc going forward.

Thank you @efahl ! ❤️

GoetzGoerisch commented 4 months ago

auc is failing on 23.05-SNAPSHOT currently

pko76 commented 4 months ago

Confirmed...

auc/0.3.2-1 Server: https://sysupgrade.openwrt.org Running: 23.05-SNAPSHOT r23987-d53f1caeb0 on ipq40xx/generic (zte,mf286d) WARNING: cannot determing currently running branch. Invalid argument (22)

pko76 commented 1 month ago

Why the r24106 is not available for MF286D?

auc/0.3.2-1 Server: https://sysupgrade.openwrt.org Running: 23.05-SNAPSHOT r24104-a2a67804fc on ipq40xx/generic (zte,mf286d) Available: 23.05-SNAPSHOT r24100-66055df3e0 Requesting package lists...

aparcar commented 1 month ago

Seems to work with the staging firmware-selector, can't test this right now on real devices sorry...

https://firmware-selector.staging.openwrt.org/?version=23.05-SNAPSHOT&target=bmips%2Fbcm6368&id=actiontec_r1000h

pko76 commented 1 month ago

Right, the 23.05.5 is available as 23.05.5 (r24106-10cc5fcd00) and the 23.05-SNAPSHOT is available as 23.05-SNAPSHOT (r24104-a2a67804fc)