-
Notifications
You must be signed in to change notification settings - Fork 530
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
dl-cdn.alpinelinux.org errors #386
Comments
is there any update on this? Im too getting this error |
|
Also getting these errors. |
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz CDN seems to be down again |
+1 Had this issue, but realized that it was a defective docker bridge or something. Restarting the daemon fixed it for me and the troubleshooting process was working back from DNS resolution, routing, etc from the pertinent host. |
adding |
#279 is a similar issue from the past. |
Hello, Is there any fix available for this? I'm getting same error especially in APAC region. Step 1/14 : FROM openjdk:8u151-jdk-alpine3.7 |
@prawen fixed my issue before your $ apk add --no-cache bash |
Had the same error trying to build an alpine-sdk docker using Docker Windows 10. Checked the status of the server, and the server was fine and reachable outside docker. Restarting docker did the trick for me. Looking in the Docker log file it's clear that the DNS configuration was set incorrectly. So when seeing this error in a docker context, try to restart docker first. |
After trying both the workarounds I'm still getting below error. Step 1/15 : FROM openjdk:8u151-jdk-alpine3.7 |
|
It seems to be an issue with wget (or any other tool fetching data) not sending host header when requesting resources. |
I hit the same error. Any more update?
|
Running the echo command and it didn't seem to help. I ended up just restarting my laptop and that seemed to work. |
Any others suggestions on working around this issue? |
Not working for me any updates on this ,, This is annoying |
In my situation was wrong |
It's DNS issue you can solve it by using the following steps:
IP4.DNS[1]: 192.168.0.1
note: replace that ip "192.168.0.1" to your dns ip
|
Seems your docker can not go out of host machine. Maybe this can help:
|
Please use docker run -e OR docker build --build-arg to pass http_proxy env variable required for apk package manager |
@GaudamThiyagarajan solution worked for me |
as pointed out by @azyata its can be a problem with the If you are performing From
if it doesn't work
then perform ping
if it works for you, then
sudo systemctl restart docker ^ This solved the problem for me. |
I am also getting below error: fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz |
I'm behind a proxy and I experienced a similar error: fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory
2 errors; 15 distinct packages available I solved it by creating a sudo nano /etc/docker/daemon.json and inserting: {
"bip": "192.168.1.5/24"
} Restart docker and try again: sudo systemctl daemon-reload
sudo systemctl restart docker If I were to guess I'd say that docker bridge0 clash with the proxy in some way? |
This is works for my Raspberry Pi 4B 1.4 version. Many Thanks! |
same with me, 3.13 DNS lookup error, 3.12 everything fine |
I am using vagrant to provision my virtual machines containing docker. |
Replacing sed -i -e 's/http:/https:/' /etc/apk/repositories |
Here are lots of smart solutions to test. |
same issue on alpine:3.14 and alpine:3.13 |
Got it working only after downgrading to alpine3.12 as @lukaszkowalskifd did. |
Have been using just Downgrading to |
how to downgrade the alpine version |
how to downgrade the alpine version from 3.15 to 3.12 |
Just specify the tag. For example, " $ # Latest Alpine
$ docker run --rm alpine:latest grep '^VERSION' /etc/os-release
VERSION_ID=3.15.3
$ # Alpine 3.15
$ docker run --rm alpine:3.15 grep '^VERSION' /etc/os-release
VERSION_ID=3.15.3
$ # Alpine 3.12
$ docker run --rm alpine:3.12 grep '^VERSION' /etc/os-release
VERSION_ID=3.12.11 To be honest, I don't think the Alpine base image is suitable for beginners; until you are familiar with the basics of Docker, such as the |
Just rebooted my Ubuntu and it solved this issue. |
I had a similar issue, but I have solved it by using args --network=host |
So a local issue.
We do this in the official alpine images nowadays.
So a local issue. I'm closing this. |
this worked best for me, setting it in Dockerfile, importantly with
|
wesome, you are the most correct answer! Thank you very much. I applaud you. |
If you are running the docker container within kubernetes, alpine 3.17 or earlier is known have DNS issues: https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues |
Not sure if it's related but I can't fetch packages from fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz
WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.20/main: temporary error (try again later)
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz
WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.20/community: temporary error (try again later)
ERROR: unable to select packages:
gettext-envsubst (no such package):
required by: world[gettext-envsubst] |
@peltho I'm getting the same error but it might an issue with the kubernetes cluster I'm running the docker container on. I ran this command
however this might not be an issue as coredns/coredns#3600 suggests |
Indeed it seems to be logged by [ERROR] plugin/errors: 2 dl-cdn.alpinelinux.org. A: read udp 10.42.2.168:39805->192.168.1.155:53: read: connection refused │
│ [ERROR] plugin/errors: 2 dl-cdn.alpinelinux.org. A: dial udp [fd0f:ee:b0::1]:53: connect: network is unreachable │
│ [ERROR] plugin/errors: 2 dl-cdn.alpinelinux.org. A: dial udp [fd0f:ee:b0::1]:53: connect: network is unreachable │
│ [ERROR] plugin/errors: 2 dl-cdn.alpinelinux.org. A: dial udp [fd0f:ee:b0::1]:53: connect: network is unreachable │
│ [ERROR] plugin/errors: 2 dl-cdn.alpinelinux.org. AAAA: read udp 10.42.2.168:58617->192.168.1.155:53: i/o timeout
|
@Charles-Johnson just restarting coredns pod appeared to fix it 🤷🏻♂️ |
@peltho thanks for sharing your fix but it didn't work for me. I located the coredns pods I had running with kubectl get pods --namespace=kube-system -l k8s-app=kube-dns There were two, I think because the cluster was running on two nodes. I deleted them one by one and saw that new pods replaced them. I'm running Digital Ocean kubernetes v1.28.14-do.3. Digital Ocean has documentation about how to customise coredns: https://docs.digitalocean.com/products/kubernetes/how-to/customize-coredns/ which I used as the basis to fix my issue I created a file called apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
log.override: |
log
custom.server: |
dl-cdn.alpinelinux.org:8053 {
forward . 8.8.8.8
} and then applied it kubectl -n kube-system apply -f coredns-custom.yaml It waited until the coredns logged showed that the pods had reloaded their configuration e.g. kubectl logs -n kube-system -l k8s-app=kube-dns showed
Then I also found this stackoverflow answer which explained the issues with DNS resolution when running alpine containers on kubernetes |
Been getting this for a few days now.
The text was updated successfully, but these errors were encountered: