GithubHelp home page GithubHelp logo

Comments (12)

frenck avatar frenck commented on July 21, 2024

'/bin/ash -o pipefail -c apk add --no-cache coreutils=8.32-r2 wget=1.21.1-r1'

That log is incomplete. please share full logs.

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

21-01-22 18:32:49 INFO (SyncWorker_5) [supervisor.docker.addon] Starting build for ed48e72c/armv7-addon-example:dev
21-01-22 18:32:52 ERROR (SyncWorker_5) [supervisor.docker.addon] Can't build ed48e72c/armv7-addon-example:dev: The command '/bin/ash -o pipefail -c apk add --no-cache coreutils=8.32-r2 wget=1.21.1-r1' returned a non-zero code: 2
21-01-22 18:32:52 ERROR (SyncWorker_5) [supervisor.docker.addon] Build log:
Step 1/18 : ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:9.0.1

Step 2/18 : FROM ${BUILD_FROM}

---> 8b4f1febe3a8

Step 3/18 : COPY rootfs /

---> Using cache

---> d5dd23b938d4

Step 4/18 : RUN apk add --no-cache coreutils=8.32-r2 wget=1.21.1-r1

---> Running in 02f4a0c1203b

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:

coreutils (no such package):
required by: world[coreutils=8.32-r2]
wget (no such package):
required by: world[wget=1.21.1-r1]

Removing intermediate container 02f4a0c1203b

from addon-example.

frenck avatar frenck commented on July 21, 2024

WARNING: Ignoring dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)

That is an external issue not related to the add-on. Make sure you have internet access, otherwise the issue might be the Alpine content delivery network.

Either way, I cannot resolve a "try again later" response from an external resource

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

Now I installed your version:
21-01-22 18:34:17 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/a0d7b954_example
21-01-22 18:34:17 INFO (SyncWorker_3) [supervisor.docker.interface] Downloading docker image ghcr.io/hassio-addons/example/armv7 with tag 4.0.4.
21-01-22 18:34:19 INFO (MainThread) [supervisor.addons] Add-on 'a0d7b954_example' successfully installed

from addon-example.

frenck avatar frenck commented on July 21, 2024

That is a pre-build docker image, it doesn't rely on the resource that is reported in a temporary error.

This project ships everything pre-build for fast installation and good reliability on availability.

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

Okay, thank you.

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

I think I found the issue, when the container gets created it starts with libseccomp defaults, when the container normally starts libseccomp is disabled.
Is there any way to have it also create without libseccomp enabled?
For example, I can take the run command out of the dockerfile on the example and it creates the addon. Now I can attach a bash as root to the container and install all the packages with the command from RUN.

EDIT: I found the real problem. The issue is with libseccomp and the Raspian version: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements
Edit2: removed my first network bridge assumption.

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

Looks like this new behavior may also affect the officially supported Debian versions. So just as a reference here is what I did as a workaround. I created the default.json file in the /etc/docker/ directory as outline here: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements and next, I added the seccomp-profile option to /etc/docker/daemon.json file to use it. Here is the content of my file now:
{
"seccomp-profile": "/etc/docker/default.json",
"log-driver": "journald",
"storage-driver": "overlay2"
}
That pretty much disabled libseccomp as well.

from addon-example.

y0ast avatar y0ast commented on July 21, 2024

I have the same problem, but your suggested seccomp-profile didn't fix it.

Did you place https://github.com/moby/moby/blob/master/profiles/seccomp/default.json in /etc/docker/default.json?

Moving back to an alpine 3.12 based image does fix it! (or workaround it more accurately...)

from addon-example.

alpharesearch avatar alpharesearch commented on July 21, 2024

Did you place https://github.com/moby/moby/blob/master/profiles/seccomp/default.json in /etc/docker/default.json?

Yes, but I believe it's not important. I think as long as you reference the downloaded file in the /etc/docker/daemon.json you should be good.

Edit: I believe you need to restart docker or reboot after changing the settings.

from addon-example.

sinclairpaul avatar sinclairpaul commented on July 21, 2024

Looks like this new behavior may also affect the officially supported Debian versions

Just to clarify on this discussion, the issue on Debian can be rectified by adding the backports repo (and these are some of the challenges in running a Supervised installation).

Other instructions can be found on the Alpine site itself.

from addon-example.

y0ast avatar y0ast commented on July 21, 2024

@alpharesearch Ah, I missed the editing step on the wiki.

Line 2 of default.json is:

	"defaultAction": "SCMP_ACT_ERRNO",

And needs to be edited to:

	"defaultAction": "SCMP_ACT_TRACE",

Then it indeed works fine again :)

When searching around on this issue there's surprisingly little information! I would've expected lots of people to build docker containers with alpine 3.13 on raspbian (or raspberrypi os), also outside of the HA community!

Edit: found the big github issue on this: alpinelinux/docker-alpine#135

from addon-example.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.