Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attended sysupgrade doesn't upgrade to latest OpenWrt version #162

Closed
cortadocodes opened this issue Nov 4, 2023 · 14 comments
Closed

Attended sysupgrade doesn't upgrade to latest OpenWrt version #162

cortadocodes opened this issue Nov 4, 2023 · 14 comments

Comments

@cortadocodes
Copy link

I followed the instructions here to upgrade to the latest OpenWrt version but was only upgraded by a couple of patch versions to 22.03.5. I can see though there's a newer version in your releases with the latest OpenWrt version of 23.05.0. Should I be upgrading a different way or do the docs need updating? Or maybe 23.05.0 just isn't available on the update server yet?

@cortadocodes
Copy link
Author

Update: I found you can choose 23.05.0 by enabling the advanced option but trying to update to this version causes these errors:

Server response: Error: Impossible package selection
Collected errors:
 * check_data_file_clashes: Package libustream-mbedtls20201210 wants to install file /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/lib/libustream-ssl.so
	But that file is already provided by package  * libustream-wolfssl20201210
 * opkg_install_cmd: Cannot install package luci-ssl.
make[2]: *** [Makefile:189: package_install] Error 255
make[1]: *** [Makefile:154: _call_manifest] Error 2
make: *** [Makefile:274: manifest] Error 2

@lectrical
Copy link
Contributor

lectrical commented Nov 5, 2023

You just install this from the LuCi web interface Backup/Flash firmware.

https://downloads.openwrt.org/releases/23.05.0/targets/mediatek/mt7622/openwrt-23.05.0-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

It is the same file as this one

https://github.com/dangowrt/owrt-ubi-installer/releases/download/v1.0.3/openwrt-23.05.0-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

I followed guide for release v1.0.2 then installed that image from web ui and it's been running fine on 23.05.0 ever since. Your approach seems overly complicated.

@cortadocodes
Copy link
Author

Thank you I'll try that. Could you update the readme so its instructions for upgrading reflect the recommended approach?

@lectrical
Copy link
Contributor

I've not used the luci-app-attendedsysupgrade so perhaps it's there for a reason. I think i'll add it and see how it works so i understand it better though I can't replicate your issue as i'm already on 23.05.0.

https://fabianlee.org/2023/01/09/openwrt-more-convenient-sysupgrade-using-attended-sysupgrade/

The method above via the webui should also preserve (most) settings anyway and you can backup settings/list but i'm not 100% sure. If you need to preserve certain things maybe hold off until you know for sure?

@cortadocodes
Copy link
Author

That would be useful thanks! I'll read a bit more into it and then see if I can get attended upgrade working

@lectrical
Copy link
Contributor

lectrical commented Nov 6, 2023

So TIL auc is the command line tool and luci-app-attendedsysupgrade is the webui tool and auc kind of behaves like the web tool with advanced options on by default.

https://openwrt.org/docs/guide-user/installation/attended.sysupgrade

Have you tried the command line version?

root@rt3200:~# auc --help
auc/0.3.2-1
auc: Attended sysUpgrade CLI client
Usage: auc [-b <branch>] [-B <ver>] [-c] [-f] [-h] [-r] [-y]
 -b <branch>    use specific release branch
 -B <ver>       use specific release version
 -c             only check if system is up-to-date
 -f             use force
 -h             output help
 -n             dry-run (don't download or upgrade)
 -r             check only for release upgrades
 -F <fstype>    override filesystem type
 -y             don't wait for user confirmation

Please report issues to improve the server:

@huyz
Copy link

huyz commented Nov 20, 2023

I'm running into the exact same issues.

Running the command line tool auc -b 23.05.2 -y did in fact upgrade, unlike Attended Sysupgrade in the LuCI web.

However, for me, right off the bat, my 5GHz radio isn't coming up. Not knowing how to fix this off the top of my head, I'll downgrade back to 22.03.5

@tomazin
Copy link

tomazin commented Nov 20, 2023

you need run auc -b 23.05 -B 23.05.2
two days ago I have upgraded my device, and have same problem on 5Ghz radio. I don't know why but I needed to install kmod-mt7915e

@huyz
Copy link

huyz commented Nov 21, 2023

you need run auc -b 23.05 -B 23.05.2

That made no difference in my case.

two days ago I have upgraded my device, and have same problem on 5Ghz radio. I don't know why but I needed to install kmod-mt7915e

Hmm, for me, that module is already included (as I can judge from the output of auc…)


What worked finally was to skip ASU and auc and just to do what lectrical said:

  1. go to to the Firmware Selector at https://firmware-selector.openwrt.org/?version=23.05.2&target=mediatek%2Fmt7622&id=linksys_e8450-ubi
  2. download https://downloads.openwrt.org/releases/23.05.2/targets/mediatek/mt7622/openwrt-23.05.2-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
  3. In LuCI, go to System > Backup / Flash Firmware > Flash new firmware image and upload that file

@OatmealMu
Copy link

you need run auc -b 23.05 -B 23.05.2

That made no difference in my case.

two days ago I have upgraded my device, and have same problem on 5Ghz radio. I don't know why but I needed to install kmod-mt7915e

Hmm, for me, that module is already included (as I can judge from the output of auc…)

What worked finally was to skip ASU and auc and just to do what lectrical said:

1. go to to the Firmware Selector at https://firmware-selector.openwrt.org/?version=23.05.2&target=mediatek%2Fmt7622&id=linksys_e8450-ubi

2. download https://downloads.openwrt.org/releases/23.05.2/targets/mediatek/mt7622/openwrt-23.05.2-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb

3. In LuCI, go to `System` > `Backup / Flash Firmware` > `Flash new firmware image` and upload that file

This worked for me, too. Was finally able to up the channel width from 40 to 80 MHz without 5 GHz dying on me.

@cortadocodes
Copy link
Author

In LuCI, go to System > Backup / Flash Firmware > Flash new firmware image and upload that file

When you did this, were your settings preserved? If not, do you know if we're able to restore backups after a firmware upgrade by this method without reverting the firmware version?

@huyz
Copy link

huyz commented Nov 22, 2023

Yes my settings were preserved

@lectrical
Copy link
Contributor

As far as I understand, basic settings are preserved but you will lose certain things, like installed apps or other settings or configurations. It should be explained here, the site is down so i used this link:

https://web.archive.org/web/20231118222602/https://openwrt.org/docs/guide-user/installation/generic.sysupgrade#upgrade_steps

These methods are supposed to resolve this but it appears to not be working for you in this case.

@cortadocodes
Copy link
Author

SOLUTION: Upgrading to 23.05.x works if you remove luci-ssl from the packages included in the upgrade/build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants