robsonke / hassio-addons

6 stars 1 forks source link

Failed to install add-on #1

Open josephperry opened 3 years ago

josephperry commented 3 years ago

When trying to install to homeassistant Core version core-2021.8.4, Supervisor version supervisor-2021.06.8 under Operating System Raspbian GNU/Linux 10 (buster) Docker version 19.03.13, I see this message:

The command '/bin/sh -c set -x && apk add --no-cache bash bind-tools curl jq tzdata && mkdir -p /usr/src/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" | tar -xzf - --strip 1 -C /usr/src/bashio && mv /usr/src/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /usr/src/*' returned a non-zero code: 4

From the System log:

21-08-08 14:12:16 ERROR (SyncWorker_5) [supervisor.docker.addon] Can't build c0d67ef2/armv7-addon-amcrest2mqtt:1.0.7: The command '/bin/sh -c set -x && apk add --no-cache bash bind-tools curl jq tzdata && mkdir -p /usr/src/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" | tar -xzf - --strip 1 -C /usr/src/bashio && mv /usr/src/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /usr/src/' returned a non-zero code: 4 21-08-08 14:12:16 ERROR (SyncWorker_5) [supervisor.docker.addon] Build log: Step 1/11 : FROM dchesterton/amcrest2mqtt:1.0.7 ---> 75e785b43537 Step 2/11 : RUN set -x && apk add --no-cache bash bind-tools curl jq tzdata && mkdir -p /usr/src/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" | tar -xzf - --strip 1 -C /usr/src/bashio && mv /usr/src/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /usr/src/ ---> Running in 59f00021d997

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

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

ERROR: unable to select packages:

bash (no such package): required by: world[bash] bind-tools (no such package): required by: world[bind-tools] curl (no such package): required by: world[curl] jq (no such package): required by: world[jq] Removing intermediate container 59f00021d997

Don't know what to try next or other information you need.

robsonke commented 3 years ago

Thanks for reporting it, I'm pretty sure it's due to the fact you're running it on Raspbian. I need to look into the multi platform builds but have no idea how that works when you use your own image instead of the hassio base images.

robsonke commented 3 years ago

I've made some changes and upgraded to the latest version of the original image. Docker should pick the right architecture in this multi arch image.

josephperry commented 3 years ago

Thanks for the quick response, unfortunately the changes for version 1.0.9 didn't correct my problem. I don't know enough about Docker on Raspbian to help with troubleshooting. :-(

From the System log:

21-08-09 11:53:28 INFO (SyncWorker_5) [supervisor.docker.addon] Starting build for c0d67ef2/armv7-addon-amcrest2mqtt:1.0.9 21-08-09 11:53:31 ERROR (SyncWorker_5) [supervisor.docker.addon] Can't build c0d67ef2/armv7-addon-amcrest2mqtt:1.0.9: The command '/bin/sh -c set -x && apk add --no-cache bash bind-tools curl jq tzdata && mkdir -p /usr/src/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" | tar -xzf - --strip 1 -C /usr/src/bashio && mv /usr/src/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /usr/src/' returned a non-zero code: 4 21-08-09 11:53:31 ERROR (SyncWorker_5) [supervisor.docker.addon] Build log: Step 1/16 : ARG BUILD_ARCH Step 2/16 : ARG BUILD_DATE Step 3/16 : ARG BUILD_REF Step 4/16 : ARG BUILD_VERSION Step 5/16 : FROM dchesterton/amcrest2mqtt:1.0.9 ---> 346a085d697e Step 6/16 : LABEL io.hass.name="Amcrest2mqtt" io.hass.description="MQTT bridge between Amcrest and Home Assistant" io.hass.arch="${BUILD_ARCH}" io.hass.type="addon" io.hass.version=${BUILD_VERSION} org.label-schema.description="MQTT bridge between Amcrest and Home Assistant" org.label-schema.build-date=${BUILD_DATE} org.label-schema.name="Amcrest2mqtt" org.label-schema.schema-version="0.1.0" org.label-schema.vcs-ref=${BUILD_REF} org.label-schema.vendor="Community Hass.io Add-ons" ---> Using cache ---> e9b0651056ee Step 7/16 : RUN set -x && apk add --no-cache bash bind-tools curl jq tzdata && mkdir -p /usr/src/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v0.13.1.tar.gz" | tar -xzf - --strip 1 -C /usr/src/bashio && mv /usr/src/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /usr/src/ ---> Running in 9abd74658dee

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

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

ERROR: unable to select packages:

bash (no such package): required by: world[bash] bind-tools (no such package): required by: world[bind-tools] curl (no such package): required by: world[curl] jq (no such package): required by: world[jq] Removing intermediate container 9abd74658dee

robsonke commented 3 years ago

Hmm, strange. Whenever I try to build an armv7 version of the image, it succeeds. I'll dig further or set up a Pi to reproduce it.

josephperry commented 3 years ago

If you make any changes I'll be glad to give you feedback.

robsonke commented 3 years ago

I will but in a few weeks, holiday now. I hope we get some more testers with Pi's, otherwise I'll set one up.

GaryOkie commented 3 years ago

Rob,

Your latest build installed perfectly on my RasPi4, running latest HASS OS and Supervisor. The only config flow change I made, besides adding AD410's IP and PW, was to change default MQTT host from "localhost" to the HASS IP.

Thanks very much for creating this add-on/wrapper!