Skip to content

Migration scripts continue executing despite error while downloading the sysupgrade file #17

Description

@kam821

I tried to migrate EdgeRouter X today and I restored it to factory settings beforehand.
Before running the script I forgot to synchronize the time which caused an HTTPS error while downloading the update, however the script continue anyway, modifed the partition layout and rebooted.
After the system started it had the same software version that was already installed (23.05).
Downloading and running the script again returned the information that "Device already migrated to the new layout".

root@OpenWrt:/tmp# ./ubnt_erx_migrate.sh
WARNING: This script will migrate your OpenWrt system to a new layout as
required for the linux 6.6 kernel. This process will erase all your current settings.
It is recommended to back up your system before proceeding.

Do you want to proceed with the migration? (y/n)y
Downloading https://downloads.openwrt.org/releases/24.10.0/targets/ramips/mt7621//openwrt-24.10.0-ramips-mt7621-ubnt_edgerouter-x-squashfs-sysupgrade.bin
Sat Mar  8 16:21:25 UTC 2025 upgrade: Commencing upgrade. Closing all shell sessions and rebooting.
Command failed: Connection failed

I checked and it looks like the script successfully modified the partition layout anyway:

root@OpenWrt:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00060000 00020000 "u-boot-env"
mtd2: 00060000 00020000 "factory"
mtd3: 00600000 00020000 "kernel"
mtd4: 0f7c0000 00020000 "ubi"

So i decided to to update the firmware to the 24.10 using the sysupgrade via the UI, the system updated and started correctly after that.
Should I be worried or should everything work fine?
Best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions