openwrt / openwrt/asu

Error building the firmware image OpenWRT 22.03.3 -> 23.05.06

Open
#1,561 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
450
Forks
111
PR merge metrics
No merged PRs in 30d

Description

Hi guys I just want to try the luci-asu and get the following error message and the request to report.

Request Data:

{
"url": "https://sysupgrade.openwrt.org",
"revision": "r20028-43d71ad93e",
"advanced_mode": "1",
"branch": "22.03",
"efi": null,
"request_hash": "8df30570d2e14583f4517bfed74be957695e45053366dca395db71159334d407",
"profile": "tplink,tl-wdr4300-v1",
"target": "ath79/generic",
"version": "23.05.6",
"packages": [
"adblock",
"attr",
"auc",
"avahi-dbus-daemon",
"base-files",
"block-mount",
"busybox",
"ca-bundle",
"ca-certificates",
"cgi-io",
"dnsmasq-full",
"dropbear",
"e2fsprogs",
"firewall4",
"fstools",
"fwtool",
"gdisk",
"getrandom",
"hd-idle",
"hdparm",
"ip6tables-nft",
"ipset",
"iptables-nft",
"iw",
"iwinfo",
"jansson",
"jshn",
"jsonfilter",
"kernel",
"kmod-ath",
"kmod-ath9k",
"kmod-ath9k-common",
"kmod-cfg80211",
"kmod-crypto-aead",
"kmod-crypto-ccm",
"kmod-crypto-cmac",
"kmod-crypto-crc32c",
"kmod-crypto-ctr",
"kmod-crypto-gcm",
"kmod-crypto-gf128",
"kmod-crypto-ghash",
"kmod-crypto-hash",
"kmod-crypto-hmac",
"kmod-crypto-manager",
"kmod-crypto-null",
"kmod-crypto-rng",
"kmod-crypto-seqiv",
"kmod-crypto-sha256",
"kmod-fs-ext4",
"kmod-fs-vfat",
"kmod-fuse",
"kmod-gpio-button-hotplug",
"kmod-ipt-offload",
"kmod-ipt-raw",
"kmod-lib-crc-ccitt",
"kmod-lib-crc32c",
"kmod-mac80211",
"kmod-nf-conntrack",
"kmod-nf-conntrack6",
"kmod-nf-flow",
"kmod-nf-log",
"kmod-nf-log6",
"kmod-nf-nat",
"kmod-nf-nathelper",
"kmod-nf-nathelper-extra",
"kmod-nf-reject",
"kmod-nf-reject6",
"kmod-nfnetlink",
"kmod-nft-core",
"kmod-nft-fib",
"kmod-nft-nat",
"kmod-nft-offload",
"kmod-ppp",
"kmod-pppoe",
"kmod-pppox",
"kmod-slhc",
"kmod-usb-ledtrig-usbport",
"kmod-usb-storage",
"kmod-usb-storage-uas",
"kmod-usb2",
"kmod-usb3",
"libattr",
"libavahi-client",
"libavahi-dbus-support",
"libblobmsg-json",
"libexpat",
"libffmpeg-mini",
"libiwinfo",
"libiwinfo-data",
"libiwinfo-lua",
"libjpeg-turbo",
"libjson-c",
"libjson-script",
"liblua",
"liblucihttp",
"liblucihttp-lua",
"libmbedtls",
"libmnl",
"libncurses",
"libnftnl",
"libnl-tiny",
"libopenssl",
"libopenssl-conf",
"libpcap",
"libpcre",
"libpython3",
"libsqlite3",
"libtiff",
"libtirpc",
"libubox",
"libubus",
"libubus-lua",
"libuci",
"libuclient",
"libucode",
"libudev-zero",
"libusb-compat",
"libustream-wolfssl",
"libwolfssl",
"logd",
"lua",
"luci",
"luci-app-adblock",
"luci-app-attendedsysupgrade",
"luci-app-firewall",
"luci-app-hd-idle",
"luci-app-minidlna",
"luci-app-opkg",
"luci-app-samba4",
"luci-app-uhttpd",
"luci-base",
"luci-compat",
"luci-i18n-attendedsysupgrade-en",
"luci-i18n-firewall-en",
"luci-i18n-hd-idle-en",
"luci-lib-base",
"luci-lib-ip",
"luci-lib-jsonc",
"luci-lib-nixio",
"luci-mod-admin-full",
"luci-mod-network",
"luci-mod-rpc",
"luci-mod-status",
"luci-mod-system",
"luci-proto-ipv6",
"luci-proto-ppp",
"luci-ssl",
"luci-theme-bootstrap",
"mailsend",
"mtd",
"netifd",
"nftables-json",
"odhcp6c",
"odhcpd-ipv6only",
"openssh-sftp-server",
"openssl-util",
"openwrt-keyring",
"opkg",
"ppp",
"ppp-mod-pppoe",
"ppp-mod-pptp",
"pptpd",
"procd",
"procd-seccomp",
"procd-ujail",
"px5g-wolfssl",
"python3",
"python3-asyncio",
"python3-base",
"python3-bcrypt",
"python3-cffi",
"python3-cgi",
"python3-cgitb",
"python3-codecs",
"python3-ctypes",
"python3-dateutil",
"python3-dbm",
"python3-decimal",
"python3-distutils",
"python3-email",
"python3-light",
"python3-logging",
"python3-lzma",
"python3-multiprocessing",
"python3-ncurses",
"python3-openssl",
"python3-pkg-resources",
"python3-pycparser",
"python3-pydoc",
"python3-readline",
"python3-setuptools",
"python3-sqlite3",
"python3-unittest",
"python3-urllib",
"python3-uuid",
"python3-xml",
"rpcd",
"rpcd-mod-file",
"rpcd-mod-iwinfo",
"rpcd-mod-luci",
"rpcd-mod-rrdns",
"samba4-libs",
"samba4-server",
"sane-canon",
"sane-daemon",
"sane-frontends",
"sane-genesys",
"stubby",
"swconfig",
"tcpdump-mini",
"uboot-envtools",
"ubox",
"ubus",
"ubusd",
"uci",
"uclient-fetch",
"ucode",
"ucode-mod-fs",
"ucode-mod-ubus",
"ucode-mod-uci",
"uhttpd",
"uhttpd-mod-ubus",
"urandom-seed",
"urngd",
"usbids",
"usbutils",
"usign",
"wireless-regdb",
"wpad-basic-wolfssl",
"xinetd"
],
"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 http://downloads.openwrt.org/releases/23.05.6/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_core
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_base
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/ath79/generic/kmods/5.15.189-1-08472e4058c44b683bc720c4c463d58c/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/ath79/generic/kmods/5.15.189-1-08472e4058c44b683bc720c4c463d58c/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_luci
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_packages
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_routing
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /builder/build_dir/target-mips_24kc_musl/root-ath79/../../../../builder/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.
Collected errors:

  • opkg_install_cmd: Cannot install package luci-i18n-attendedsysupgrade-en.
  • opkg_install_cmd: Cannot install package luci-i18n-firewall-en.
  • opkg_install_cmd: Cannot install package luci-i18n-hd-idle-en.
  • check_data_file_clashes: Package libustream-mbedtls20201210 wants to install file /builder/build_dir/target-mips_24kc_musl/root-ath79/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

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/rq/worker.py", line 1659, in perform_job
return_value = job.perform()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1318, in perform
self._result = self._execute()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/rq/job.py", line 1376, in _execute
result = self.func(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/asu/build.py", line 438, in build
result = _build(build_request, job)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/asu/build.py", line 259, in _build
report_error(job, "Impossible package selection")
File "/app/asu/util.py", line 329, in report_error
raise RuntimeError(msg)
RuntimeError: Impossible package selection

Thanks for your help!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the failing build output alongside /app/asu/build.py around build() and _build(), then inspect /app/asu/util.py around report_error(). Reproduce the supplied request for profile tplink,tl-wdr4300-v1 and trace the package-selection failure; done means the cause is addressed and the request has a passing regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.