-
Notifications
You must be signed in to change notification settings - Fork 531
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
Temporary error (try again later) #334
Comments
This keeps popping up in other threads and I wonder if there might be a change in the way Fastly is doing DNS. To debug this we really need to see the output of something like |
@andyshinn I'll see if I can provide you with the output. However, I believe the issue is in Docker Engine, and possibly in DNS caching. My Host Machine was on the corporate network 1, but when we switched it to corporate network 2, the issue was gone. I checked my docker config and its DNS is set to 8.8.8.8 and 8.8.4.4. From both networks these IPs are reachable. |
I think it is related to #279 which has more history. I think maybe when Fastly changes server IPs they may be redirecting with a 301, which causes |
So I'm having dns issues, but my results are different. My stuff just hangs at getting packages. This is the mirror mine tries to use.
It will just hang here indefinitely in docker (at least for an hour+) and the curl times out. This is from my laptop:
@andyshinn this may be a different issue. But it's DNS related, and works one place but not the other. This is from my system, but if you need it from inside docker, I can provide it. |
Have you tried another mirror? From that debug output, the IP address resolved from Docker and from the laptop are different, so it could definitely be an issue with just that host. Have you actually tried using the same IP on your laptop that Docker resolves to (something like |
Other mirrors do work. I suppose I have to go dig and see if they hard coded a mirror or something. It's odd though that it breaks apk so hard. I suppose I would have thought it to be more resilient Its in general, related to DNS/apk fragility, but I think perhaps a different issue then op: |
I was seeing this error on my Drone build server, running on Kubernetes. By default it users "Docker-in-Docker" (dind) for builds. The error went away after I disabled dind on the Drone server. |
@matkam - Could you detail your solution ? We seem to having the same issue with our drone server. |
@Zest-nikunj sure. My Drone server was deployed by a Helm chart to a Kubernetes cluster: https://github.com/kubernetes/charts/tree/master/incubator/drone |
Thanks @matkam. We are not on Kubernetes and the settings seem correct but we continue to have the issue. We will investigate further. If needed, I shall come back to you. Thanks again. |
same problem ... before i resolved with reboot. Now it is not working |
Same problem, just kept on re-trying, and 3rd time it went thru. seems like there is a bad server which the load balancer hits. |
same error here |
same problem here . I tried many many times ... it is not a bad server ... it seams a bad code line , a bug |
I got same. I tried to change dns on docker with no luck. |
Hit the same problem (again) on Windows + Docker and tried many suggested (in #279) solutions, involving changing apk settings in Dockerfile and such. but nothing helped. What did help finally was to restart Docker and then apk just pulled the APKINDEX like nobody's business. |
I get this as well on my workstation using Docker for Windows. Using a mirror did not help. |
I had this error with Gitlab, i just change docker build command to run with --network host option and it works! |
|
@EvgeniGordeev That solution worked for me too, running Windows 10 host + Ubuntu 18.04 with Vagrant and alpinelinux in a docker container in the Ubuntu. |
@wlechowicz restart docker service solved my issue 👍 |
@andyshinn , RE: #334 (comment) It was a DNS error for me. By setting
and then restarting docker with,
I was able to build images again. |
Just for reference, I got a similar error, but in my case it was a problem with nftables:
Stopping nftables and restarting docker will give the container internet access. |
Since there are times when the bridge is disturbing, it is successful if you execute it as host. |
restarting docker service maybe help you |
Run docker build command to run with --network=host option and it works |
any idea how to add this workaround using docker-compose ? the --network flag is not available there |
I just ran into this, everything had been working fine on: Windows 10 host with Hyper-V Suddenly |
thank you boss, you save my life |
Same issue exists for apline 3.14 and this solution works |
I had the same issue. |
Actual version is 2.5.3-2 For Raspberry Pi, you can upgrade libseccomp2 to a supported version from the Debian Repos eg.
|
I used the host network mode to run alpine and the issue was solved: docker run -it --network host alpine |
this helped me https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#musl_1.2 there are several solutions so I had to download default.json, change one line and pass --security-opt=seccomp=default.json to docker run |
-In Windows
And add this line.
|
it happens to me if I run |
My fix for drone was setting the repository as
|
Similar error happen to me when I try to build docker images from within my kubernetes cluster but my workflow is more complex
I run into the following errors from the jenkins-spawned pod
So I don't really have a sysadmin-like access, my image is being built from a pod connected to docker via a volume mount on the docker socket. It make it hard to run any OS/config patch
|
After struggling for so long with what I though was a kubernetes specific docker-in-docker issue, I ended up adding the |
I have the same issue with "slow" internet connection. Is "slow" for Docker, maybe it have low parameter for "temporary error" |
Still happening... |
I also had this issue randomly building
I added the |
Same issue trying to build
as described in previous comment > #334 (comment) |
Any recommendations to address it ? So far, I have tried
|
where did u add the netwrok =true ? is that in the jenkins agent config command? |
Ignore everything below, it was an IPV6 problem, not related Figured it out what caused it for me. I had enabled IPV6 on my host and that caused the only DNS server in /etc/resolv.conf to also be IPV6. Disabling IPV6 again caused the build to run through. I could pretty much consistently trigger a failed/successful build by switching between an IPV6 DNS server and an IPV4 DNS server. Some more info:
(Replace eth0 with whatever your actual network interface is) As soon as you get the files once it won't reproduce until you clear all the build caches. |
works for me |
In my case, I got this error when
To work around, use HTTP mirror: RUN sed -e 's/https:\/\/dl-cdn.alpinelinux.org/http:\/\/mirrors.aliyun.com/g' \
-i /etc/apk/repositories \
&& apk add --no-cache tzdata |
I used a borrowed retry function to get past this:
|
Another data point for those who stumble upon this thread: my issue was with Tailscale, needed to turn off stateful filtering with |
For me it was the firewall blocking it. Turned it off temporarily with |
I run into this issue when building a docker image on Ubuntu Host.
The Same build on Windows 10 using docker-tools CLI (so technically inside a VirtualBox VM) has no issues and Docker images are built correctly.
I have reinstalled Docker on my Ubuntu completely to have a fresh version just in case.
Any suggestions what else I can do to troubleshoot this issue?
Build command output
My dockerfile
The text was updated successfully, but these errors were encountered: