-
Notifications
You must be signed in to change notification settings - Fork 476
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
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: Permission denied #402
Comments
Might be something to do with a proxy? But I can't reproduce $ docker run -it --rm openjdk:8-jre-alpine sh
/ # apk --update add bash
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/5) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(2/5) Installing ncurses-terminfo (6.1_p20190105-r0)
(3/5) Installing ncurses-libs (6.1_p20190105-r0)
(4/5) Installing readline (7.0.003-r1)
(5/5) Installing bash (4.4.19-r1)
Executing bash-4.4.19-r1.post-install
Executing busybox-1.29.3-r10.trigger
OK: 93 MiB in 58 packages Also we don't maintain Alpine variants of OpenJDK anymore #272
You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum |
As I said, it just suddenly stopped to work. I'm not under a proxy. |
Had the same issue with another alpine based container I guess the CDN is currently unstable so this issue isn't related to openjdk |
Please report this over on Alpine's gitlab (https://gitlab.alpinelinux.org/alpine/aports) if you want support from the Alpine side. Please also mention what country you reside in since the CDN queries different servers depending on where in the world you are located. |
It was a DNS issue. It worked again after changing my DNS. |
I've just been experience this issue and it's thanks to this thread that I identified that it was a proxy issue, so thank you for that! If anyone else has this issue and would like a one-liner to solve the issue, use this: It'll replace 'https' with 'http' in the repo list and should work with proxies. |
@robemmerson From the security perspective, I wouldn't recommend a downgrade to http. Maybe setting the HTTPS_PROXY Env Var would also solve this issue (see https://stackoverflow.com/a/50756105 for a solution during a build) |
@mrmstn I would normally agree, but in this case it was only in a development environment that had a self signed certificate and a local McAfee client proxy on the host, so there's nothing I can set for HTTPS_PROXY to make it work AFAIK. When I build the container using GH Actions, it all works flawlessly without the downgrade to HTTP. Probably should have added: I do not recommend this approach for production! |
A few hours ago, I was able to build an image based on
openjdk:8-jre-alpine
. Now, this step of the build:Step 2/13 : RUN ["apk", "--update", "add", "bash"]
gives me an error:
I build my image using sbt-native-packager plugin.
The text was updated successfully, but these errors were encountered: