Open supersebbo opened 1 year ago
Hi, I try to give a hint because I setup this project just few days ago and I can recognise this error:
subprocess.CalledProcessError: Command '['podman', 'network', 'exists', 'public_default']' returned non-zero exit status 125.
It seems to me that you are trying the latest unreleased version of asu.
Checkout the version v0.7.20
for a stable release. (plain or docker based)
It seems you could be running a debian version < 12 and so not the latest podman version (3.0.1 as in the error log you posted).
So the command podman network exists <network_name>
does not yet exist.
$ podman -v
podman version 4.3.1
Thanks. So I checked out the previous version (it took me a while to realise this project is undergoing some major changes). Following the old README, I now have the local server running (non-docker, which is fine for me because this is purely for local use).
I am having some challenges testing because ASU caches requests so if you get a build failure the API responds with the same build failure even once you've fixed the underlying problem. Is there a quick and dirty way to flush the cache?
You have to laugh. I've spent hours doing this because I needed to regularly build custom sized images, only to discover it doesn't work because the imagebuilder code doesn't honor the ROOTFS_PARTSIZE parameter, making some of the code in this tool useless. Namely:
# Check if custom rootfs size is requested
if rootfs_size_mb := req.get("rootfs_size_mb"):
job.meta["build_cmd"].append(f"ROOTFS_PARTSIZE={rootfs_size_mb}")
I noticed @aparcar has committed a change to imagebuilder to support this but looks like it won't be supported until 23.05. https://github.com/openwrt/openwrt/commit/7b7edd25a571568438c886529d3443054e02f55f#diff-d13d0140d2fb172af4d69a97e4ec0f6a227c579ea9023b408e826039ce96bbeb
I also experienced this because It sometimes goes in timeout (after 10 minutes) between pulling the imagebuilder and building..
You can remove the corresponding request_hash
from where the firmware image should be stored e.g. asu-service/public/store/<request_hash>
and from the redis database and request a new build.
rm -rf ./asu-service/public/store/90fd5fd04fc7cb35fbca81a22333ee19/ ;
redis-cli KEYS *90fd5fd04fc7cb35fbca81a22333ee19 | xargs redis-cli DEL
Or, another uglier workaround, using the web interface is to provide a little different set of packages, for example adding iperf3
to the packages list it will generate a different hash.
I noticed @aparcar has committed a change to imagebuilder to support this but looks like it won't be supported until 23.05. https://github.com/openwrt/openwrt/commit/7b7edd25a571568438c886529d3443054e02f55f#diff-d13d0140d2fb172af4d69a97e4ec0f6a227c579ea9023b408e826039ce96bbeb
Ook, and so, there will be :)
Hi,
Does anyone have a resource with some better instructions for hosting the ASU server locally? There are some sparse instructions in the README but they are incomplete and don't work on a fresh Debian host.
Error: