openwrt / openwrt/asu

Error after update attempt

Open
#1,535 3 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

A new update was found from the system update dialog, after hitting "Request firmware image" got this error:

{
"url": "https://sysupgrade.openwrt.org",
"revision": "r23389-5deed175a5",
"advanced_mode": "0",
"sha256_unsigned": "",
"branch": "23.05",
"efi": null,
"request_hash": "75a5f1ac80f7ba5db912f1df8210495ca28a341041b627fcefb4756ef17d9132",
"profile": "xiaomi,redmi-router-ax6s",
"target": "mediatek/mt7622",
"version": "23.05.6",
"packages": [
"attendedsysupgrade-common",
"base-files",
"bridger",
"busybox",
"ca-bundle",
"cgi-io",
"curl",
"dnscrypt-proxy2",
"dnsmasq-full",
"dropbear",
"firewall4",
"fstools",
"fwtool",
"getrandom",
"hostapd-common",
"iw",
"iwinfo",
"jansson",
"jshn",
"jsonfilter",
"kernel",
"kmod-cfg80211",
"kmod-crypto-acompress",
"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-kpp",
"kmod-crypto-lib-chacha20",
"kmod-crypto-lib-chacha20poly1305",
"kmod-crypto-lib-curve25519",
"kmod-crypto-lib-poly1305",
"kmod-crypto-manager",
"kmod-crypto-null",
"kmod-crypto-rng",
"kmod-crypto-seqiv",
"kmod-crypto-sha512",
"kmod-gpio-button-hotplug",
"kmod-hwmon-core",
"kmod-leds-gpio",
"kmod-lib-crc-ccitt",
"kmod-lib-crc32c",
"kmod-lib-lzo",
"kmod-mac80211",
"kmod-mt76-connac",
"kmod-mt76-core",
"kmod-mt7615-common",
"kmod-mt7615e",
"kmod-mt7622-firmware",
"kmod-mt7915-firmware",
"kmod-mt7915e",
"kmod-nf-conntrack",
"kmod-nf-conntrack-netlink",
"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-bridge",
"kmod-nft-core",
"kmod-nft-fib",
"kmod-nft-nat",
"kmod-nft-netdev",
"kmod-nft-offload",
"kmod-ppp",
"kmod-pppoe",
"kmod-pppox",
"kmod-sched-act-vlan",
"kmod-sched-bpf",
"kmod-sched-core",
"kmod-sched-flower",
"kmod-slhc",
"kmod-thermal",
"kmod-tun",
"kmod-udptunnel4",
"kmod-udptunnel6",
"kmod-wireguard",
"libblobmsg-json",
"libbpf",
"libc",
"libcurl",
"libelf",
"libgcc",
"libgmp",
"libiwinfo",
"libiwinfo-data",
"libjson-c",
"libjson-script",
"liblua",
"liblucihttp",
"liblucihttp-lua",
"liblucihttp-ucode",
"liblzo",
"libmbedtls",
"libmnl",
"libnetfilter-conntrack",
"libnettle",
"libnfnetlink",
"libnftnl",
"libnghttp2",
"libnl-tiny",
"libopenssl",
"libpcap",
"libpthread",
"libubox",
"libubus",
"libubus-lua",
"libuci",
"libuclient",
"libucode",
"libustream-mbedtls",
"logd",
"lua",
"luci",
"luci-app-attendedsysupgrade",
"luci-app-firewall",
"luci-app-nft-qos",
"luci-app-openvpn",
"luci-app-opkg",
"luci-app-simple-adblock",
"luci-app-watchcat",
"luci-base",
"luci-compat",
"luci-i18n-attendedsysupgrade-ru",
"luci-i18n-attendedsysupgrade-uk",
"luci-i18n-base-ru",
"luci-i18n-base-uk",
"luci-i18n-firewall-ru",
"luci-i18n-firewall-uk",
"luci-i18n-nft-qos-ru",
"luci-i18n-nft-qos-uk",
"luci-i18n-openvpn-ru",
"luci-i18n-openvpn-uk",
"luci-i18n-opkg-ru",
"luci-i18n-opkg-uk",
"luci-i18n-simple-adblock-ru",
"luci-i18n-simple-adblock-uk",
"luci-i18n-watchcat-ru",
"luci-i18n-watchcat-uk",
"luci-lib-base",
"luci-lib-ip",
"luci-lib-jsonc",
"luci-lib-nixio",
"luci-light",
"luci-lua-runtime",
"luci-mod-admin-full",
"luci-mod-network",
"luci-mod-status",
"luci-mod-system",
"luci-proto-ipv6",
"luci-proto-ppp",
"luci-proto-wireguard",
"luci-ssl",
"luci-theme-bootstrap",
"mtd",
"netifd",
"nft-qos",
"nftables-json",
"odhcp6c",
"odhcpd-ipv6only",
"openvpn-openssl",
"openwrt-keyring",
"opkg",
"ppp",
"ppp-mod-pppoe",
"procd",
"procd-seccomp",
"procd-ujail",
"px5g-mbedtls",
"rpcd",
"rpcd-mod-file",
"rpcd-mod-iwinfo",
"rpcd-mod-luci",
"rpcd-mod-rpcsys",
"rpcd-mod-rrdns",
"rpcd-mod-ucode",
"simple-adblock",
"tcpdump",
"ubi-utils",
"uboot-envtools",
"ubox",
"ubus",
"ubusd",
"uci",
"uclient-fetch",
"ucode",
"ucode-mod-fs",
"ucode-mod-html",
"ucode-mod-lua",
"ucode-mod-math",
"ucode-mod-ubus",
"ucode-mod-uci",
"uhttpd",
"uhttpd-mod-ubus",
"urandom-seed",
"urngd",
"usign",
"watchcat",
"wireguard-tools",
"wireless-regdb",
"wpad-mbedtls",
"zlib"
],
"diff_packages": true,
"filesystem": "squashfs",
"client": "luci/git-23.132.65998-fa9fb2f"
}
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/mediatek/mt7622/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_core
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/mediatek/mt7622/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_base
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/mediatek/mt7622/kmods/5.15.189-1-48d4b458121742493bff5d72a7d742b7/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/23.05.6/targets/mediatek/mt7622/kmods/5.15.189-1-48d4b458121742493bff5d72a7d742b7/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_luci
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_packages
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_routing
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/23.05.6/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /builder/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/../../../../builder/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check passed.
Collected errors:

  • opkg_install_cmd: Cannot install package luci-app-simple-adblock.
  • opkg_install_cmd: Cannot install package luci-i18n-simple-adblock-ru.
  • opkg_install_cmd: Cannot install package luci-i18n-simple-adblock-uk.
    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 437, in build
result = _build(build_request, job)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/asu/build.py", line 256, 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

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

Start in /app/asu/build.py at _build and follow the error path through /app/asu/util.py. Reproduce the image request containing luci-app-simple-adblock and its Russian and Ukrainian translation packages, then inspect why package installation fails. Done means the request builds successfully or reports the package-selection failure accurately.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.