wlatic / hassio.addons

20 stars 16 forks source link

Cloudflare Argo won't install #17

Open marciogranzotto opened 2 years ago

marciogranzotto commented 2 years ago

When I try to install Cloudflare Argo I get this error:

Failed to install add-on

The command '/bin/bash -o pipefail -c ARCH="${BUILD_ARCH}" && if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi && if [[ "${BUILD_ARCH}" = "amd64" ]]; then ARCH="amd64"; fi && if [[ "${BUILD_ARCH}" = "armhf" ]]; then ARCH="arm"; fi && if [[ "${BUILD_ARCH}" = "armv7" ]]; then ARCH="arm"; fi && if [[ "${BUILD_ARCH}" = "i386" ]]; then ARCH="386"; fi && apk add libc6-compat && if [[ "$ARCH" = "arm64" ]]; then mkdir /etc/cloudflared && curl -L -s -o /opt/cloudflared "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64" && chmod +x /opt/cloudflared; else mkdir /etc/cloudflared && curl -L -s "https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-${ARCH}.tgz" | tar xzf - -C /opt/ && chmod +x /opt/cloudflared; fi' returned a non-zero code: 1

Supervisor logs:

Step 1/17 : ARG BUILD_FROM=hassioaddons/base:8.0.6
Step 2/17 : FROM $BUILD_FROM
 ---> 13cf499200eb
Step 3/17 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ---> Using cache
 ---> 834bfeb389e8
Step 4/17 : ARG BUILD_ARCH=amd64
 ---> Using cache
 ---> 8916d7ceab9b
Step 5/17 : RUN  ARCH="${BUILD_ARCH}"  && if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi     && if [[ "${BUILD_ARCH}" = "amd64" ]]; then ARCH="amd64"; fi     && if [[ "${BUILD_ARCH}" = "armhf" ]]; then ARCH="arm"; fi     && if [[ "${BUILD_ARCH}" = "armv7" ]]; then ARCH="arm"; fi     && if [[ "${BUILD_ARCH}" = "i386" ]]; then ARCH="386"; fi && apk add libc6-compat && if [[ "$ARCH" = "arm64" ]]; then mkdir /etc/cloudflared && curl -L -s -o /opt/cloudflared "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64" && chmod +x /opt/cloudflared; else mkdir /etc/cloudflared && curl -L -s "https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-${ARCH}.tgz" | tar xzf - -C /opt/ && chmod +x /opt/cloudflared;  fi
 ---> Running in 0194201b7fa0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(1/1) Installing libc6-compat (1.1.24-r10)
OK: 14 MiB in 26 packages
tar: invalid magic

tar: short read

Removing intermediate container 0194201b7fa0
wlatic commented 2 years ago

What OS / Platform are you running on?

marciogranzotto commented 2 years ago

@wlatic Home Assistant OS installed directly on an Intel NUC image

marciogranzotto commented 2 years ago

That's probably because the .tgz file is being downloaded from Equinox, which shutdown in September 30th 2021: https://equinox.io/blog/shutting-down

wlatic commented 2 years ago

Was excatly that, I've tried a quick fix and if that doesn't work will put more time on it tomorrow.