openwrt / openwrt/asu

LuCi Attended Sysupgrade Fails When Building Image

Open
#957 0 comments 1 reaction 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

The attended sysupgrade service allows to easily upgrade vanilla and custom firmware images.

This is done by building a new firmware on demand via an online service.

Currently running: 22.03.2 - r19803-9a599fee93

New firmware upgrade available

Currently running: 22.03.2 - r19803-9a599fee93
Use defaults for the safest update

Select firmware version 22.03.7

Error building the firmware image

Server response: Unsupported profile: linksys,wrt1900acs
Please report the error message and request

Request Data:
{
"url": "https://sysupgrade.openwrt.org",
"revision": "r19803-9a599fee93",
"advanced_mode": "0",
"branch": "22.03",
"efi": null,
"profile": "linksys,wrt1900acs",
"target": "mvebu/cortexa9",
"version": "22.03.7",
"packages": [
"adblock",
"base-files",
"blkid",
"block-mount",
"busybox",
"ca-bundle",
"cgi-io",
"collectd-mod-cpu",
"collectd-mod-df",
"collectd-mod-dhcpleases",
"collectd-mod-disk",
"collectd-mod-dns",
"collectd-mod-ethstat",
"collectd-mod-ipstatistics",
"collectd-mod-irq",
"collectd-mod-load",
"collectd-mod-memory",
"collectd-mod-network",
"collectd-mod-ping",
"collectd-mod-powerdns",
"collectd-mod-sqm",
"collectd-mod-thermal",
"collectd-mod-wireless",
"curl",
"dnsmasq",
"dropbear",
"e2fsprogs",
"fdisk",
"firewall4",
"fstools",
"fwtool",
"getrandom",
"iwinfo",
"jansson",
"jshn",
"jsonfilter",
"kernel",
"kmod-crypto-crc32c",
"kmod-crypto-hash",
"kmod-fs-ext4",
"kmod-gpio-button-hotplug",
"kmod-lib-crc-ccitt",
"kmod-lib-crc32c",
"kmod-mwlwifi",
"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-ppp",
"kmod-pppoe",
"kmod-pppox",
"kmod-slhc",
"kmod-usb-storage",
"libblobmsg-json",
"libiwinfo",
"libiwinfo-data",
"libiwinfo-lua",
"libjson-c",
"libjson-script",
"liblua",
"liblucihttp",
"liblucihttp-lua",
"libmnl",
"libnftnl",
"libnl-tiny",
"libubox",
"libubus",
"libubus-lua",
"libuci",
"libuclient",
"libucode",
"libustream-wolfssl",
"libwolfssl",
"logd",
"lua",
"luci",
"luci-app-adblock",
"luci-app-attendedsysupgrade",
"luci-app-firewall",
"luci-app-opkg",
"luci-app-statistics",
"luci-app-uhttpd",
"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",
"mount-utils",
"msmtp",
"mtd",
"mwlwifi-firmware-88w8864",
"netifd",
"nftables-json",
"odhcp6c",
"odhcpd-ipv6only",
"openssl-util",
"openwrt-keyring",
"opkg",
"ppp",
"ppp-mod-pppoe",
"procd",
"procd-seccomp",
"procd-ujail",
"px5g-wolfssl",
"rpcd",
"rpcd-mod-file",
"rpcd-mod-iwinfo",
"rpcd-mod-luci",
"rpcd-mod-rrdns",
"stubby",
"tcpdump-mini",
"ubi-utils",
"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",
"usbutils",
"usign",
"wireless-regdb",
"wpad-basic-wolfssl"
],
"diff_packages": true,
"filesystem": "squashfs",
"client": "luci/git-22.210.54153-69231a7"
}

Response data:

XHRPOST
https://sysupgrade.openwrt.org/api/v1/build?1724971030761
[HTTP/2 400 180ms]

detail "Unsupported profile: linksys,wrt1900acs"
status 400

Any thought or suggestions would be welcome!

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 by reproducing the reported POST request against https://sysupgrade.openwrt.org/api/v1/build and inspect how the service handles the linksys,wrt1900acs profile for the mvebu/cortexa9 target. Done means the reported profile is accepted for a valid 22.03 build request and the firmware image is produced without the unsupported-profile error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.