Comments (12)
'/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.
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.
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.
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.
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.
Okay, thank you.
from addon-example.
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.
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.
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.
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.
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.
@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)
- Revise/improve all log messages HOT 2
- Update example to use S6 services HOT 4
- Where is the release drafter template (.github/release-drafter.yml) HOT 1
- Installation failure HOT 5
- Mark repository as a template HOT 3
- Dependency Dashboard
- nothing happened HOT 4
- No permission for example add-on HOT 3
- Logging fails in example HOT 3
- Rewrite add-on onto the S6 process supervisor HOT 3
- Docker cache fails to load on tags/releases HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addon-example.