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 Firmware upgrade issue #778

Open
AUT-TOM opened this issue Mar 28, 2024 · 5 comments
Open

Attended Sysupgrade Firmware upgrade issue #778

AUT-TOM opened this issue Mar 28, 2024 · 5 comments

Comments

@AUT-TOM
Copy link

AUT-TOM commented Mar 28, 2024

Request Data:

{
    "url": "https://sysupgrade.openwrt.org",
    "revision": "r20134-5f15225c1e",
    "advanced_mode": "1",
    "branch": "22.03",
    "efi": {
        "path": "/sys/firmware/efi",
        "type": "directory",
        "size": 0,
        "mode": 16877,
        "atime": 1711612098,
        "mtime": 1711612098,
        "ctime": 1711612098,
        "inode": 9049,
        "uid": 0,
        "gid": 0
    },
    "request_hash": "c5dd72842a9dcc9530259a45468f2c5c",
    "profile": "default-string-default-string",
    "target": "x86/64",
    "version": "23.05.3",
    "packages": [
        "auc",
        "base-files",
        "busybox",
        "ca-bundle",
        "ca-certificates",
        "cgi-io",
        "collectd-mod-ping",
        "ddns-scripts",
        "dnsmasq",
        "dropbear",
        "e2fsprogs",
        "fdisk",
        "firewall4",
        "fstools",
        "fwtool",
        "getrandom",
        "grub2",
        "grub2-bios-setup",
        "grub2-efi",
        "htop",
        "iptables-nft",
        "irqbalance",
        "jansson",
        "jshn",
        "jsonfilter",
        "kernel",
        "kmod-amazon-ena",
        "kmod-amd-xgbe",
        "kmod-bnx2",
        "kmod-button-hotplug",
        "kmod-crypto-crc32c",
        "kmod-crypto-hash",
        "kmod-e1000",
        "kmod-e1000e",
        "kmod-forcedeth",
        "kmod-fs-vfat",
        "kmod-igb",
        "kmod-igc",
        "kmod-input-core",
        "kmod-ixgbe",
        "kmod-lib-crc-ccitt",
        "kmod-lib-crc32c",
        "kmod-nf-conntrack",
        "kmod-nf-conntrack6",
        "kmod-nf-flow",
        "kmod-nf-log",
        "kmod-nf-log6",
        "kmod-nf-nat",
        "kmod-nf-reject",
        "kmod-nf-reject6",
        "kmod-nfnetlink",
        "kmod-nft-core",
        "kmod-nft-fib",
        "kmod-nft-nat",
        "kmod-nft-offload",
        "kmod-nls-base",
        "kmod-nls-cp437",
        "kmod-nls-iso8859-1",
        "kmod-nls-utf8",
        "kmod-ppp",
        "kmod-pppoe",
        "kmod-pppox",
        "kmod-r8169",
        "kmod-sched-cake",
        "kmod-slhc",
        "kmod-tcp-bbr",
        "kmod-tg3",
        "kmod-tun",
        "kmod-veth",
        "libblkid",
        "libblobmsg-json",
        "libc",
        "libcomerr",
        "libext2fs",
        "libf2fs",
        "libiwinfo",
        "libiwinfo-data",
        "libiwinfo-lua",
        "libjson-c",
        "libjson-script",
        "liblua",
        "liblucihttp",
        "liblucihttp-lua",
        "libmnl",
        "libnftnl",
        "libnl-tiny",
        "libsmartcols",
        "libss",
        "libubox",
        "libubus",
        "libubus-lua",
        "libuci",
        "libuclient",
        "libucode",
        "libustream-wolfssl",
        "libuuid",
        "libwolfssl",
        "logd",
        "losetup",
        "lsblk",
        "lua",
        "luci",
        "luci-app-attendedsysupgrade",
        "luci-app-ddns",
        "luci-app-firewall",
        "luci-app-nlbwmon",
        "luci-app-opkg",
        "luci-app-statistics",
        "luci-app-wireguard",
        "luci-base",
        "luci-lib-base",
        "luci-lib-ip",
        "luci-lib-jsonc",
        "luci-lib-nixio",
        "luci-mod-admin-full",
        "luci-mod-network",
        "luci-mod-status",
        "luci-mod-system",
        "luci-proto-ipv6",
        "luci-proto-ppp",
        "luci-ssl",
        "luci-theme-bootstrap",
        "mkf2fs",
        "mtd",
        "netifd",
        "nftables-json",
        "odhcp6c",
        "odhcpd-ipv6only",
        "openwrt-keyring",
        "opkg",
        "partx-utils",
        "powertop",
        "ppp",
        "ppp-mod-pppoe",
        "procd",
        "procd-seccomp",
        "procd-ujail",
        "px5g-wolfssl",
        "qrencode",
        "resize2fs",
        "rpcd",
        "rpcd-mod-file",
        "rpcd-mod-iwinfo",
        "rpcd-mod-luci",
        "rpcd-mod-rrdns",
        "tailscale",
        "tc-tiny",
        "ubox",
        "ubus",
        "ubusd",
        "uci",
        "uclient-fetch",
        "ucode",
        "ucode-mod-fs",
        "ucode-mod-ubus",
        "ucode-mod-uci",
        "uhttpd",
        "uhttpd-mod-ubus",
        "urandom-seed",
        "urngd",
        "usign"
    ],
    "diff_packages": true,
    "filesystem": "squashfs",
    "client": "luci/git-23.093.42303-58b861d"
}

STDERR:

Generate local signing keys...
Generate local certificate...
Package list missing or not up-to-date, generating it.

Building package index...
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/x86/64/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/base/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/luci/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/routing/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/telephony/Packages.gz
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/x86_64/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /builder/build_dir/target-x86_64_musl/root-x86/../../../../builder/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.
Collected errors:
 * check_data_file_clashes: Package libustream-mbedtls20201210 wants to install file /builder/build_dir/target-x86_64_musl/root-x86/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

thanks in advance <3

@dannil
Copy link

dannil commented Apr 2, 2024

#782 (comment)

@AUT-TOM
Copy link
Author

AUT-TOM commented Apr 3, 2024

hmm, is there a way to see the dependencies on the deprecated wolfssl ? maybe I can kick the packages out, so the upgrade works again

@dangowrt
Copy link
Member

dangowrt commented Apr 3, 2024

Can you try to update auc using opkg update ; opkg install auc and retry? Support for client-side automatic package replacements (such as libustream-wolfssl -> libustream-mbedtls) was added a while ago, but maybe your version of auc doesn't support that yet. If auc is up-to-date (please share version info of auc as well) and it happens anyway, lets look into it more.

Edit: just realized you are using the LuCI app, there I can't help. @aparcar ?

@AUT-TOM
Copy link
Author

AUT-TOM commented Apr 4, 2024

Package auc (0.3.1-1) installed in root is up to date.

I also found the commands for checking dependencies:

root@OpenWrt:~# opkg whatdepends libwolfssl5.6.3.ee39414e
Root set:
  libwolfssl5.6.3.ee39414e
What depends on root set
        libustream-wolfssl20201210 2022-12-08-9217ab46-2        depends on libwolfssl5.6.3.ee39414e
        px5g-wolfssl 6.2        depends on libwolfssl5.6.3.ee39414e
        luci-ssl git-20.244.36115-e10f954       depends on libustream-wolfssl20201210
root@OpenWrt:~# opkg whatdepends libustream-wolfssl20201210
Root set:
  libustream-wolfssl20201210
What depends on root set
        luci-ssl git-20.244.36115-e10f954       depends on libustream-wolfssl20201210

So luci-ssl git-20.244.36115-e10f954 is the troublemaker, that keeps me from upgrading... right now I am using luci with http access.

Any suggestions how to proceed here without breaking stuff?

@AUT-TOM
Copy link
Author

AUT-TOM commented Apr 4, 2024

What I tried:

  • install mbedtls-util package
  • uninstall wolfssl packages (libwolfssl5.6.3.ee39414e & libustream-wolfssl20201210 & px5g-wolfssl)
  • Erorr message:
[...] 
No packages removed.
Collected errors:
 * pkg_run_script: Internal error: libwolfssl5.6.3.ee39414e has a NULL tmp_unpack_dir.
 * opkg_remove_pkg: not removing package "libwolfssl5.6.3.ee39414e", prerm script failed
The opkg remove command failed with code 255.

...but the packages have been uninstalled anyway

  • Attended sysupgrade
    But then it hangs with the "Installing the sysupgrade. Do not unpower device!" message

In the syslogs I can only see:

Thu Apr  4 10:13:49 2024 user.info upgrade: Image metadata not present
Thu Apr  4 10:13:49 2024 user.info upgrade: Unable to determine upgrade device

That's where I am stuck right now :(

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

3 participants