Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image not building or working on Raspbian stable, Amazon Linux 1 or 2, CentOS 7 or 8, Debian stable, Ubuntu 14.04 or earlier #755

Closed
peimansh opened this issue Feb 14, 2021 · 8 comments
Labels
scope/arm Issue / PR related to arm architectures

Comments

@peimansh
Copy link

peimansh commented Feb 14, 2021

When trying to build the image, the build fails with this error:
Step 3/16 : RUN apk add --no-cache --virtual .build-deps curl gcc git make musl-dev && go get github.com/jwilder/docker-gen && cd /go/src/github.com/jwilder/docker-gen && git -c advice.detachedHead=false checkout $DOCKER_GEN_VERSION && make get-deps && make all && go clean -cache && mv docker-gen /usr/local/bin/ && rm -rf /go/src && apk del .build-deps ---> Running in c83e21a5883b 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 curl (no such package): required by: .build-deps-19700101.000000[curl] gcc (no such package): required by: .build-deps-19700101.000000[gcc] git (no such package): required by: .build-deps-19700101.000000[git] make (no such package): required by: .build-deps-19700101.000000[make] musl-dev (no such package): required by: .build-deps-19700101.000000[musl-dev] WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later) ERROR: unable to select packages: The command '/bin/sh -c apk add --no-cache --virtual .build-deps curl gcc git make musl-dev && go get github.com/jwilder/docker-gen && cd /go/src/github.com/jwilder/docker-gen && git -c advice.detachedHead=false checkout $DOCKER_GEN_VERSION && make get-deps && make all && go clean -cache && mv docker-gen /usr/local/bin/ && rm -rf /go/src && apk del .build-deps' returned a non-zero code: 6 ERROR: Service 'nginx-proxy-letsencrypt' failed to build

I even tried to use the previous 1.x version with "simple.sh" but seems to still fail:

Step 3/15 : RUN apk add --update curl gcc git make musl-dev ---> Running in 5e45349e844a fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/armv7/APKINDEX.tar.gz ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/armv7/APKINDEX.tar.gz ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory ERROR: unable to select packages: curl (no such package): required by: world[curl] gcc (no such package): required by: world[gcc] git (no such package): required by: world[git] make (no such package): required by: world[make] musl-dev (no such package): required by: world[musl-dev] The command '/bin/sh -c apk add --update curl gcc git make musl-dev' returned a non-zero code: 5 ERROR: Service 'nginx-proxy-letsencrypt' failed to build

The image has been already built and worked on my RPi 2 months ago, but I cleared Docker cache to save some space. But now without making any changes to the Dockerfile or the code, I'm getting these errors.

@peimansh peimansh changed the title Image building fails with "temporary error (try again later)" Image building fails with "WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)" Feb 14, 2021
@peimansh
Copy link
Author

peimansh commented Feb 15, 2021

It's related to a network issue with alpine 3.13 :
alpinelinux/docker-alpine#135

@buchdag
Copy link
Member

buchdag commented Feb 19, 2021

Hi. Could you please follow the repository's bug template ?

Bug description

A clear and concise description of what the bug is.

letsencrypt-nginx-proxy-companion image version

Please provide the container version that should be printed to the first line of log at container startup:

[you@yourhost]: $ docker logs companion-container-name
Info: running letsencrypt-nginx-proxy-companion version v2.0.0
[...]

If this first log line isn't present you are using a v1 image: please provide the tagged version you are using. If you are using latest, please try again with a tagged release before opening an issue (the last v1 tagged release is v1.13.1).

nginx-proxy-companion configuration

Please provide the configuration (either command line, compose file, or other) of your nginx-proxy stack and your proxied container(s).

You can obfuscate information you want to keep private (and should obfuscate configuration secrets) such as domain(s) and/or email adress(es), but other than that please provide the full configurations and not the just snippets of the parts that seem relevants to you.

Containers logs

Please provide the logs of:

  • your letsencrypt-nginx-proxy-companion container
  • your nginx-proxy container (or nginx and docker-gen container in a three containers setup)

docker logs name-of-the-container

Docker host

  • OS: [e.g. Ubuntu 20.04]
  • Docker version: output of docker version

@buchdag
Copy link
Member

buchdag commented Mar 2, 2021

@peimansh is this still an issue ?

@peimansh
Copy link
Author

peimansh commented Mar 4, 2021

@buchdag Yes.
The workaround at the moment was to downgrade and force use alpine-3.12 and the problem was fixed but it still doesn't work on alpine-3.13 on armv71 or armhf

@buchdag
Copy link
Member

buchdag commented Mar 7, 2021

I'll be honest, I don't entirely get the issue at hand here, our arm/v7 images still build fine on GitHub Actions with Docker buildx and are pushed to Dockerhub. Does this happen only when you try to build the image locally on a an arm/v7 host ?

@buchdag
Copy link
Member

buchdag commented Mar 12, 2021

That does not seem to be something that will be fixed on Alpine's end :

Therefore, the following platforms are not suitable as Docker hosts for 32-bit Alpine Linux 3.13.0, due to containing out-of-date libseccomp: Amazon Linux 1 or 2, CentOS 7 or 8, Debian stable without debian-backports, Raspbian stable, Ubuntu 14.04 or earlier, and Windows. This applies regardless of whether the Linux distribution Docker packages or separate Docker package repositories are used.

https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements

I'm not sure there is anything we can / should do on this project end. I certainly won't downgrade the Alpine version used to fix builds on OSes that use an outdated libseccomp.

@buchdag buchdag changed the title Image building fails with "WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)" Image not building or working on Raspbian stable, Amazon Linux 1 or 2, CentOS 7 or 8, Debian stable, Ubuntu 14.04 or earlier Mar 13, 2021
@buchdag
Copy link
Member

buchdag commented Mar 13, 2021

@peimansh I took the liberty of changing your issue title to something more generic for people hitting the same problem on other distros that use an outdated libseccomp.

The recommended workaround for now would be either :

I'm closing this issue as there isn't a lot more we'll be able to do.

@buchdag buchdag closed this as completed Mar 13, 2021
@buchdag buchdag added the scope/arm Issue / PR related to arm architectures label Apr 4, 2021
@buchdag
Copy link
Member

buchdag commented Apr 5, 2021

@nickwest has a manual solution to this in the alpinelinux/docker-alpine's issue : alpinelinux/docker-alpine#135 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/arm Issue / PR related to arm architectures
Projects
None yet
Development

No branches or pull requests

2 participants