Can't install local add-on

Hello

I’m trying to install my local add-on but it fails

Step 4/10 : RUN apk add --no-cache openjdk8-jre
 ---> Running in fa3b0fd62a81
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:

  openjdk8-jre (no such package):
    required by: world[openjdk8-jre]
Removing intermediate container fa3b0fd62a81

This used to work just fine but not anymore. Any ideas what could be wrong? I also tried to put another repo in /etc/apk/repositories but the error was same.

Thanks
thjr

I have the exact same problem. A local addon that used to work/build fine but now hits this error.

I found that it’s not DNS but there is no actual internet connection inside the container. I have no idea what could cause that though.

This comment seems very related: https://github.com/hassio-addons/addon-example/issues/36#issuecomment-765789293

The problem is with Alpine 3.13.

I managed to get my add-on working, putting this in Dockerfile:

FROM hassioaddons/base-armv7:8.0.6

That is the last build that has Alpine 3.12.1

Any ideas how to fix this with the latest version of base? In the long term it’s not viable solution to use old version of base image.

Have you found a lasting solution? I have the same problem.
For now I have alos solved it by putting in the Dockerfile FROM hassioaddons/base-armv7:8.0.6

Thanks