Supervisor can't install add-ons

I try to install Cybele add-on and have the following in Supervisor logs

21-04-22 01:24:50 ERROR (SyncWorker_7) [supervisor.docker.addon] Can't build b2fc9258/armv7-addon-cybele:1.0.1: The command '/bin/ash -o pipefail -c apk add --no-cache git' returned a non-zero code: 1
21-04-22 01:24:50 ERROR (SyncWorker_7) [supervisor.docker.addon] Build log: 
Step 1/28 : ARG BUILD_FROM
Step 2/28 : FROM $BUILD_FROM AS build-env
 ---> 32848b90eab5
Step 3/28 : ENV LANG C.UTF-8
 ---> Using cache
 ---> b415f49515c3
Step 4/28 : WORKDIR /app
 ---> Using cache
 ---> 8655b9a5ed38
Step 5/28 : RUN apk --no-cache update
 ---> Using cache
 ---> 75c37af4c588
Step 6/28 : RUN apk add --no-cache git
 ---> Running in 12d03f5961ff
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/armv7/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)

fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/armv7/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later)

ERROR: unable to select packages:

  git (no such package):
    required by: world[git]
Removing intermediate container 12d03f5961ff

I googled this problem and some workaround look like works but I dunno how to configure it
Run docker with host network mode. How to set up it? I use Supervised HA installation
Maybe something else could help?

bump please

What is that Add-On about? I cant find it at the HA Add-on Store and Google shows me things like this or this :crazy_face:

Did you retry later?

If it’s a “custom” addon, it might need to be updated for alpine, not sure.
Where is it from?

yes, i tried before writing post

@Tamsy @koying addon’s page hassio/README.md at main · ArtistAOP/hassio · GitHub

All requirements are fulfilled?

Requirements

  • Since Cybele uses BlueZ, you will need some GNU+Linux distribution.
  • You will also need a recent version of nodejs. Development was done using Node 11.
  • The BlueZ Version needs to be rather new as well. Debian Busters BlueZ 5.50 is sufficient.

Also please tell us more about your HA installation method.

As i understand these requirements actual for Cybele installation as Linux app
But i want to install Docker container (HA Addon) with Cybele from this repo hassio/README.md at main · ArtistAOP/hassio · GitHub
i stuck 4th step of instruction

Please also answer the above.

This ? He did not say if it is debian or not.

I mentioned in the first post that I use Supervised HA installation, this is actual
Supervised Ha runs on Raspbian (I guess last version or close)

Actually, i use like 20 addons and it installs without problem, but this one doesn’t
I googled the error and as I understand this image works on Alpine Linux and there are some problems with getting Alpine Linux image

It shouldn’t matter as the container for the addon will/should have alpine… that’s the point of docker… the container contains and complies with the requirements

Probably you’re right
I just described what I found

So is there any way to install container ?

The addon IS a container. The addon may not be available for your hardware?

image

i guess this is not matter of hardware

There is some confusion, here, apparently.
The addon is building its own docker image, and this is the step where it’s failing.

OP, I assume the host is a RPI in 32bits.
There is a known issue in this setup as of alpine 3.13. HA currently uses 3.14.

To fix, you have to update libseccomp2 on the RPI host, to a version which is not available in the standard repos. You have to:

# Get signing keys to verify the new packages, otherwise they will not install
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138

# Add the Buster backport repository to apt sources.list
$ echo 'deb http://httpredir.debian.org/debian buster-backports main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/debian-backports.list

$ sudo apt update
$ sudo apt install libseccomp2 -t buster-backports

Then retry the addon installation

2 Likes

Thanks, bro! I it works and I’ve installed add on

Hey Chris,

I’m facing the same issue, but running hass.io (haos). So I can’t use commands like “apt”. Do you or somebody else have an idea of how I can update libseccomp2 on hass.io?

Mmm… it shouldn’t happen on HassOS.
Maybe you have a very old version? I don’t actually know how OS upgrades are done on HassOS.

Actually, I’m on the most recent OS version. The OS is on version “core-2021.8.1” and the supervisor is on “supervisor-2021.06.8” using Docker 20.10.6.

I can install add-ons but when I want to install an add-on, that is manually added (concretely “weather station mqtt”) I get following error-log:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:109
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 14:57:48 (2 occurrences)
Last logged: 21:12:38

Failed to to call /addons/local_weather_station_mqtt/install - The command '/bin/ash -o pipefail -c apk add --no-cache nodejs-npm' returned a non-zero code: 1

There is a similar issue described in the add-ons git repo that was fixed updating libseccomp2.

That isn’t the OS. If you run ha os it will be 6.2 for the latest version.