Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUPS addon not installing: error 400 #243

Open
kskouzmin opened this issue Mar 11, 2024 · 8 comments
Open

CUPS addon not installing: error 400 #243

kskouzmin opened this issue Mar 11, 2024 · 8 comments

Comments

@kskouzmin
Copy link

kskouzmin commented Mar 11, 2024

Just try to install CUPS add-on https://github.com/MaxWinterstein/homeassistant-addons/tree/main/cups

My steps:

  1. Add addon repository "https://github.com/MaxWinterstein/homeassistant-addons/" by Three Dots Menu.
  2. Click to install button.
  3. Get "Unknown error, see supervisor logs"
  4. 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 - 
  1. 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

@kskouzmin kskouzmin changed the title CUPS addon not intalling: error 400 CUPS addon not installing: error 400 Mar 11, 2024
@kskouzmin
Copy link
Author

@MaxWinterstein, as I understand this is because this add-on for armv7 is not a 'public'? So can you please set it?

@MaxWinterstein
Copy link
Owner

@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 😞

@kskouzmin
Copy link
Author

kskouzmin commented Mar 12, 2024

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?

@MaxWinterstein
Copy link
Owner

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.

@kskouzmin
Copy link
Author

kskouzmin commented Mar 12, 2024

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?

@kskouzmin
Copy link
Author

kskouzmin commented Mar 13, 2024

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.

@MaxWinterstein
Copy link
Owner

@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

@MaxWinterstein
Copy link
Owner

@kskouzmin I released the armv7 version. Give it a few minuntes to build, and test if possible :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants