CUPS addon not installing: error 400
Just try to install CUPS add-on https://github.com/MaxWinterstein/homeassistant-addons/tree/main/cups
My steps:
- Add addon repository "https://github.com/MaxWinterstein/homeassistant-addons/" by Three Dots Menu.
- Click to install button.
- Get "Unknown error, see supervisor logs"
- Get in logs:
2024-03-11 14:42:22.177 ERROR (MainThread) [homeassistant.components.hassio.handler] /addons/1e14b3fb_cups/install return code 400
2024-03-11 14:42:22.178 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/1e14b3fb_cups/install -
- Check for another add-ons from this and other repos --- its installed an working as expect.
Please explain: it is out-of-date code in add-on (due to experimental status, last edit 4 months ago) or my system isn't correct? Or I am installing is wrong?
HA OS 12.0 HA Core: 2024.3.0 Hardware: Raspberry Pi 3, armv7
@MaxWinterstein, as I understand this is because this add-on for armv7 is not a 'public'? So can you please set it?
@kskouzmin good catch! Indeed there seems to be no image built for armv7
Comparing
https://github.com/MaxWinterstein/homeassistant-addons/pkgs/container/homeassistant-addon-cups-amd64
to
https://github.com/MaxWinterstein/homeassistant-addons/pkgs/container/homeassistant-addon-cups-armv7
Will see what happened there, hopefully just some github action hiccup. Currently running low on time 😞
Yes, amd64 and aarch64 is 3.0.3, but armv7 is 2.2.0. And there is tag 'latest' in config.yaml which points to 3.0.3. How it is working? GitHub must automatically generate it?
If I remember correctly, it had issues to build on armv7. Some big addons already decided to ditch it, as it os mostly used on some Raspberry Pi 3, which is not really supported anymore.
In fact, it is a slow machine with only 1GB of memory i think.
Unfortunately, my target is Raspberry Pi 3 B+... and it still satisfies my tasks.
As I see last package is 2.2.0, and there is not this arch in config.yaml file history. @MaxWinterstein, where the package is came from? :)
Btw CUPS is not a big ad-don. It is simple and stable. Maybe try to add armv7 to config?
My two day searches showed that currently there is not a ready-made cups addon for armv7 that is immediately available to the end user.
Today i'm building modified version of this addon. I was just type 'armv7' in config.yaml and build.yaml, pointed my repo for push image and built it with official HA Build Tool.
All is fine: built, pushed, pulled (install by "Add-on Store"), run and working with my Samsung ML-2160 on Raspberry Pi 3 B+. Now it shares this printer to linux, mac, android, ios. Nothing about errors or complex settings, GUI only.
@kskouzmin in fact, it seems to build fine: https://github.com/MaxWinterstein/homeassistant-addons/actions/runs/8269881343/job/22626156568
thanks for the research and pointing out, will release in a few minutes
@kskouzmin I released the armv7 version. Give it a few minuntes to build, and test if possible :)