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

Repository problem? #279

Closed
Skorpyon opened this issue May 11, 2017 · 127 comments
Closed

Repository problem? #279

Skorpyon opened this issue May 11, 2017 · 127 comments
Labels

Comments

@Skorpyon
Copy link

http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz

Error 503 Connection timed out
Connection timed out
Guru Mediation:
Details: cache-hhn1533-HHN 1494522331 3223824506
Varnish cache server

@JWinkler05
Copy link

JWinkler05 commented May 11, 2017

I am getting the same thing.

Also, to note. This is happening on more than just v3.4. I tried on 3.5 and 3.3 and there was a 503 response from each.

@pkhxcp
Copy link

pkhxcp commented May 11, 2017

Also having this issue

@QSonx
Copy link

QSonx commented May 11, 2017

Also having this problem. Right when I was tweaking my ci pipeline.

@borourke
Copy link

+1 on having this issue

fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/main: temporary error (try again later)

@Zebradil
Copy link

Zebradil commented May 11, 2017

Use one of the mirrors:

http://dl-cdn.alpinelinux.org/alpine/
http://nl.alpinelinux.org/alpine/
http://dl-2.alpinelinux.org/alpine/
http://dl-3.alpinelinux.org/alpine/
http://dl-4.alpinelinux.org/alpine/
http://dl-5.alpinelinux.org/alpine/
http://dl-6.alpinelinux.org/alpine/
http://dl-8.alpinelinux.org/alpine/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/
http://mirror.yandex.ru/mirrors/alpine/
http://mirrors.gigenet.com/alpinelinux/
http://repos.lax-noc.com/alpine/
http://repos.dfw.lax-noc.com/alpine/
http://repos.mia.lax-noc.com/alpine/
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/
http://liskamm.alpinelinux.uk/
http://mirrors.2f30.org/alpine/
http://mirror.leaseweb.com/alpine/
http://repository.fit.cvut.cz/mirrors/alpine/
http://alpine.mirror.far.fi/
http://lasca.ic.unicamp.br/pub/alpine/
http://alpinelinux.c3sl.ufpr.br/

I mean, you could modify your Dockerfile with something like this:

RUN echo http://mirror.yandex.ru/mirrors/alpine/v3.5/main > /etc/apk/repositories; \
    echo http://mirror.yandex.ru/mirrors/alpine/v3.5/community >> /etc/apk/repositories

RUN apk update \
 && apk add --no-cache \
...

@mattatcha
Copy link
Member

@andyshinn and I are looking into this.

@mbelang
Copy link

mbelang commented May 11, 2017

Getting the same issue here as well.

@Zebradil You should not have to change mirror like that because one is down...

@Zebradil
Copy link

@mbelang What should I do then? Just wait?)
It's effective solution while the main mirror is down.

@mbelang
Copy link

mbelang commented May 11, 2017

Well it depends if it is an urgency I guess, but for me it is one commit that will automatically be deployed and another commit to revert that duct tape that will also be deployed. All of that for no change..

@andyshinn
Copy link
Contributor

The upstream mirror is down. I am updating the configuration to another one. It should be back in the next 5 minutes.

@mbelang
Copy link

mbelang commented May 11, 2017

I confirm it is back online. Thanks a lot

@Zebradil
Copy link

@mbelang I agree.

@Skorpyon
Copy link
Author

@Zebradil
Thank you, man! You save my ass )))

@QSonx
Copy link

QSonx commented May 11, 2017

All good here too. Thanks for the quick response to this.

@Kapoor-uh
Copy link

Hi I am trying to build up container using alpine:3.5, however,i am not able to move forward after these steps
Sending build context to Docker daemon 3.588GB
Step 1/17 : FROM alpine:3.5
---> 074d602a59d7
Step 2/17 : MAINTAINER blabla
---> Using cache
---> e8bafda9c208
Step 3/17 : ENV http_proxy http://10.144.1.10:8080/
---> Using cache
---> b02224fcf625
Step 4/17 : ENV https_proxy http://10.144.1.10:8080/
---> Using cache
---> 6f7ebd10ff06
Step 5/17 : RUN apk add --update git py-virtualenv python-dev py-pip openjdk7-jre-base && pip install Flask && pip install gevent && pip install greenlet && pip install numpy && pip install requests RUN apk --update add gcc make g++ zlib-dev
---> Running in 5230e54c83ae
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz

The URL which docker build is trying to access (http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz) is up. I have tried it couple of times and nothing moves after fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz, even i don't get any error.

@scarothers
Copy link

scarothers commented Jul 28, 2017

I know this issue is closed, but I'm seeing the same error now:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)

When I open the URL in my browser, I see this:

Error 503 Backend is unhealthy

Backend is unhealthy

Guru Mediation:

Details: cache-dca17737-DCA 1501279301 2934117002

Varnish cache server

Our build is failing and we can't push out a change that needs to go out :(

@andyshinn
Copy link
Contributor

That is an error from Fastly, the CDN. Can you provide the curl output including the headers?

$ curl -v -s -o /dev/null http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
*   Trying 151.101.48.249...
* TCP_NODELAY set
* Connected to dl-cdn.alpinelinux.org (151.101.48.249) port 80 (#0)
> GET /alpine/v3.6/community/x86_64/APKINDEX.tar.gz HTTP/1.1
> Host: dl-cdn.alpinelinux.org
> User-Agent: curl/7.51.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: nginx
< Content-Type: application/octet-stream
< Last-Modified: Fri, 14 Jul 2017 22:20:57 GMT
< ETag: "596943c9-5b68a"
< Accept-Ranges: bytes
< Content-Length: 374410
< Accept-Ranges: bytes
< Date: Fri, 28 Jul 2017 22:40:58 GMT
< Via: 1.1 varnish
< Connection: keep-alive
< X-Served-By: cache-dfw1837-DFW
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1501281658.867729,VS0,VE296

@btgoodwin
Copy link

I'm getting the same error right now for v3.6. I was able to get one update through my CI pipeline a few minutes ago, and now it's dead again.

$ curl -v -s -o /dev/null http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
* About to connect() to dl-cdn.alpinelinux.org port 80 (#0)
*   Trying 151.101.200.249...
* Connected to dl-cdn.alpinelinux.org (151.101.200.249) port 80 (#0)
> GET /alpine/v3.6/community/x86_64/APKINDEX.tar.gz HTTP/1.1
> User-Agent: curl/7.29.0
> Host: dl-cdn.alpinelinux.org
> Accept: */*
> 
< HTTP/1.1 503 Backend is unhealthy
< Server: Varnish
< Retry-After: 0
< Content-Type: text/html; charset=utf-8
< Content-Length: 455
< Accept-Ranges: bytes
< Date: Wed, 02 Aug 2017 16:03:29 GMT
< Via: 1.1 varnish
< Connection: close
< X-Served-By: cache-dca17733-DCA
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1501689810.553383,VS0,VE1
< 
{ [data not shown]
* Closing connection 0

@dineshauti
Copy link

Its still down. Any updates?

@andyshinn
Copy link
Contributor

Can you also provide the headers output so we can try and correlate what might be going on here? So far, the last couple failures were all in the DCA region. I wonder if Fastly DCA is having some issues. I'll open up a thread with them if that seems to be the common denominator.

@bob798
Copy link

bob798 commented Aug 11, 2017

I'm also getting the same error now for v3.6 .

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz: remote server returned error (try 'apk update')
ERROR: unsatisfiable constraints:

@thomas-oo
Copy link

thomas-oo commented Aug 15, 2017

Still getting the same error when I do RUN apk add --update curl
[INFO] fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
[INFO] http://dl-cdn.alpinelinux.org/alpine/v3.6/main: temporary error (try again later)
[INFO] WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory

I'm also getting a 301 moved permanently when I curl to http://dl-cdn.alpinelinux.org/alpine/v3.6/main

@aquacode
Copy link

Receiving same exact error output as of this moment:

fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/main: temporary error (try again later) WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/community: temporary error (try again later) WARNING: Ignoring APKINDEX.24d64ab1.tar.gz: No such file or directory OK: 4 MiB in 11 packages fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/main: temporary error (try again later) WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory

@MarkTiedemann
Copy link

Same error here.

fetch http://mirror.yandex.ru/mirrors/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
ERROR: http://mirror.yandex.ru/mirrors/alpine/v3.6/main: temporary error (try again later)
fetch http://mirror.yandex.ru/mirrors/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://mirror.yandex.ru/mirrors/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://mirror.yandex.ru/mirrors/alpine/v3.6/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: http://mirror.yandex.ru/mirrors/alpine/v3.6/community: temporary error (try again later)
fetch http://mirror.yandex.ru/mirrors/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://mirror.yandex.ru/mirrors/alpine/v3.6/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)

@codevbus
Copy link

Getting this as well:

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)

What's strange is that I can do a wget from the host node and it downloads the APKINDEX.tar.gz file perfectly fine.

@cpettifer
Copy link

cpettifer commented Aug 29, 2017

Same / similar problems here. I've tried updating repositories to use explicit mirror too and tried several that all show the same problem such as:

fetch http://repository.fit.cvut.cz/mirrors/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
+ apk update
    fetch http://repository.fit.cvut.cz/mirrors/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
ERROR: http://repository.fit.cvut.cz/mirrors/alpine/v3.6/main/: temporary error (try again later)
WARNING: Ignoring APKINDEX.33685f67.tar.gz: No such file or directory
    ERROR: http://repository.fit.cvut.cz/mirrors/alpine/v3.6/community/: temporary error (try again later)
WARNING: Ignoring APKINDEX.3aec0ff2.tar.gz: No such file or directory`

I can download the files directly on my host computer (running windows) and browse the directories fine in a browser.

Any clues? This is blocking me building and updating containers that are based on Alpine.

@cpettifer
Copy link

OK, oddly I was looking through similar issues and issue #155 suggested restarting Docker to resolve the issue. I didn't believe it, but tried it anyway.

It resolved my issue!

@ahawkins
Copy link

I'm having this problem on OSX. The only solution was to change the mirror. Also, this problem seems to be network specific since images built fine on CI but not my local machine.

git:fix/docker-build* >> docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:21:31 2018
 OS/Arch:           darwin/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:29:02 2018
  OS/Arch:          linux/amd64
  Experimental:     false

@johndatserakis
Copy link

Had this issue on one machine but not the other.

The one that worked was using the cloudflare 1.1.1.1 DNS. I set the non-working one to also use the cloudflare DNS, and it started working too.

Try having your computer use that DNS if you have this type of issue.

@montao
Copy link

montao commented Oct 26, 2018

I had a similar error running docker-alpine from Ubuntu 18.04 (in a Vagrant box). After running the following command in the Ubuntu 18.04, things started to work:

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

@Pterosaur
Copy link

Pterosaur commented Oct 29, 2018

I had a similar error running docker-alpine from Ubuntu 18.04 (in a Vagrant box). After running the following command in the Ubuntu 18.04, things started to work:

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

@montao Thanks for your answer, it solve my problem at Ubuntu 18.04.

@syedsaadqamar
Copy link

It's DNS issue you can solve it by using the following steps:

  1. Find your DNS ip using below command
    nmcli dev show | grep 'IP4.DNS'

IP4.DNS[1]: 192.168.0.1

  1. Create a file in the desktop which name is deamon.json and file has below data:
    {
    "dns": ["192.168.0.1", "8.8.8.8"]
    }

note: replace that ip "192.168.0.1" to your DNS ip

  1. Go that directory /etc/docker/ in your system and paste file deamon.json that you just created

  2. Then restart your docker/your system, it will solve your issue.

@HasanAhmadQ7
Copy link

running networksetup -getdnsservers returned that I have no dns IPs (using mac).

I ran networksetup -setdnsservers Wi-Fi 8.8.8.8

and included it in the daemon json file. it did not work.

@ncopa
Copy link
Collaborator

ncopa commented Nov 26, 2018

This issue is closed. Please open a new issue if there is is a problem with alpine docker image.

@tekintian
Copy link

DNS问题, 重新设置一下宿主机的DNS为 8.8.8.8 8.8.4.4 , 然后重启docker 解决问题

@bbaassssiiee
Copy link

I run docker 1.13 on centos7 in a VirtualBox on Mac. No DNS problems on the Mac, no DNS problems on the centos7 guest, but running 'apk update' in a container in the guest showd this problem. I get a DNS from DHCP, but the network setup of docker in the guest was the cause

After removing /etc/docker/daemon.json the build works again.

@tekintian
Copy link

setup dns with static , 8.8.8.8 8.8.4.4

@Mihailoff
Copy link

Well explained solution that worked for me https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/

@cmaliwal
Copy link

cmaliwal commented Mar 6, 2019

facing the same issue :

Step 3/11 : RUN apk update
 ---> Running in 7a001721b812
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz

@jamestenglish
Copy link

Getting the same issue, I am running in Jenkins on an EKS cluster that I don't have the ability to change the DNS on

@sepastian
Copy link

sepastian commented Mar 28, 2019

I could also download APKINDEX.tar.gz on the host, but not when building the image.

In my case, the problem was a VPN connection, which modified /etc/resolv.conf, which somehow prevented Docker from updating apk. Closing the VPN connection solved the issue.

@JostCrow
Copy link

JostCrow commented May 6, 2019

For me a restart of docker fixed the problem.

sudo systemctl restart docker

@caoyj1991
Copy link

solution 1: check your environment
docker ->dns (/etc/default/docker)
solution 2: update the repository URL

@NuKESec
Copy link

NuKESec commented Oct 31, 2019

I'm getting this issue in 3.10. like what the actual fuck devs? not just broken mirrors (all of term are broken 100% of the time), but broken EVERYTHING. Alpine had hopes of being great, but turned into shit. the devs don't know what they're doing apparently

@sea-erkin
Copy link

sea-erkin commented Jan 10, 2020

If you're using custom iptables, you may run into this issue and have to adjust your rules to allow this traffic to route.

@MyZeD
Copy link

MyZeD commented Feb 19, 2020

I had this problem, sometime and how you tell with combination on alpine.
The main-problem here is, that ipv6 is prefer activated (before ipv4) and dl-cdn.alpinelinux.org
# dig dl-cdn.alpinelinux.org
has no AAAA-Record. So it cant resolve the request.
You need to force IPv4 to download all ressources.

// Or Sometimes the Client (with) Docker cant connect through Ipv6

Had the same problem with some SMTP-Server.

@marceloavf
Copy link

@MyZeD How to force IPv4?

@MyZeD
Copy link

MyZeD commented Apr 23, 2020

@zhiting-tech
Copy link

It's DNS issue you can solve it by using the following steps:

  1. Find your DNS ip using below command
    nmcli dev show | grep 'IP4.DNS'

IP4.DNS[1]: 192.168.0.1

  1. Create a file in the desktop which name is deamon.json and file has below data:
    {
    "dns": ["192.168.0.1", "8.8.8.8"]
    }

note: replace that ip "192.168.0.1" to your DNS ip

  1. Go that directory /etc/docker/ in your system and paste file deamon.json that you just created
  2. Then restart your docker/your system, it will solve your issue.

That worked for me.

@iNviNho
Copy link

iNviNho commented Feb 14, 2022

  1. nmcli dev show | grep 'IP4.DNS'

worked for me 💚

@zhoub
Copy link

zhoub commented Jan 16, 2023

Caught same problem on Linux for 3.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests