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 down #155

Closed
madduci opened this issue Mar 23, 2016 · 49 comments
Closed

Repository down #155

madduci opened this issue Mar 23, 2016 · 49 comments

Comments

@madduci
Copy link

madduci commented Mar 23, 2016

I'm using this image but as soon as I start using the command

RUN apk update && apk upgrade

it throws errors on missing repositories:

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

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.3/main: IO ERROR

WARNING: Ignoring APKINDEX.5a59b88b.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.3/community: IO ERROR

WARNING: Ignoring APKINDEX.7c1f02d6.tar.gz: No such file or directory

2 errors; 11 distinct packages available
`

It looks like the content delivery network is down or it changed

@arjandepooter
Copy link

It seems like the domain is expired...

@oryband
Copy link

oryband commented Mar 23, 2016

what's going on? 8 hours already

@thavel
Copy link

thavel commented Mar 23, 2016

Indexes used by apk in /etc/apk/repositories are unreachable.

Instead of http://dl-cdn.alpinelinux.org/alpine/v3.3/main,
use http://dl-4.alpinelinux.org/alpine/v3.3/main (for now).

See options.

@risq
Copy link

risq commented Mar 23, 2016

I had the same issue, it seems fixed now.

@andyshinn
Copy link
Contributor

The alpinelinux.org domain expired and was renewed. It is taking a while for caches to expire and get the correct IP addresses again. It should start working again today.

@frankunderwood2028
Copy link

I am having this problem now

@waits
Copy link

waits commented May 21, 2016

I'm also seeing it all of a sudden today. Can't resolve dl-cdn.alpinelinux.org. The domain couldn't have expired again so quickly. Anyone involved with Alpine Linux know what's going on?

@waits
Copy link

waits commented May 21, 2016

@andyshinn I'm seeing that it's still registered, but there's no nameservers for alpinelinux.org anymore...

@ncopa
Copy link
Collaborator

ncopa commented May 22, 2016

should be back now

@mrcrgl
Copy link

mrcrgl commented May 22, 2016

If I see that correctly, the domain cannot be resolved because the name server hostnames rely on it.
It is not possible to resolve ns1.alpinelinux.org to get the name server of alpinelinux.org to query *.alpinelinux.org.

Name Server: NS2.ALPINELINUX.ORG
Name Server: NS1.ALPINELINUX.ORG

@ncopa
Copy link
Collaborator

ncopa commented May 22, 2016

glue records are used to solve that problem.

@mrcrgl
Copy link

mrcrgl commented May 22, 2016

@ncopa you're right. Is back online 👍

@nnn-gif
Copy link

nnn-gif commented Jun 14, 2016

Still getting this

@ncopa
Copy link
Collaborator

ncopa commented Jun 14, 2016

@Niktrix exactly what are you getting? IO error? DNS lookup failure? something else?

@nnn-gif
Copy link

nnn-gif commented Jun 14, 2016

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/community: temporary error (try again later)

@nihakue
Copy link

nihakue commented Aug 15, 2016

I'm getting this today whenever I try to apk update or apk add. Specifically:

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)
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
  openssh (missing):
    required by: world[openssh]

@timstoop
Copy link

@nihakue Try restarting Docker, that solved it for me today.

@jansari-navy
Copy link

I've been having a similar issue.

Step 6 : RUN apk add --no-cache --update curl mongodb-tools netcat-openbsd
 ---> Running in f01379bab48c
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)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.4/community: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
ERROR: http://dl-4.alpinelinux.org/alpine/edge/testing: temporary error (try again later)
fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  curl (missing):
    required by: world[curl]
  mongodb-tools (missing):
    required by: world[mongodb-tools]
  netcat-openbsd (missing):
    required by: world[netcat-openbsd]
The command '/bin/sh -c apk add --no-cache --update curl mongodb-tools netcat-openbsd' returned a non-zero code: 3

I can access dl-cdn.alpinelinux.org and dl-4.alpinelinux.org. I can use wget on the host to download APKINDEX.tar.gz files. Tried restarting the docker service and restarting the host vm (centos 6), neither of those seemed to help. Not really sure where to go from here.

@IlyaSemenov
Copy link

IlyaSemenov commented Aug 23, 2016

Use this:

# Use dl-4, as the main repo is down (23.08.2016)
RUN sed -i -e 's/dl-cdn/dl-4/' /etc/apk/repositories && \
    apk add --no-cache \
        bash \
        build-base \
...

@rodolphopivetta
Copy link

The @IlyaSemenov solution works for me. Thanks

@178inaba
Copy link

@IlyaSemenov Thanks!!
I decided to use only when it fails.

RUN apk add --no-cache nodejs || \
    (sed -i -e 's/dl-cdn/dl-4/g' /etc/apk/repositories && apk add --no-cache nodejs)

@prayagupa
Copy link

Well, I retried and it works like MAZIC.

@AlSayedGamal
Copy link

AlSayedGamal commented Mar 16, 2017

@dopatraman
Copy link

running into this again.

fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.5/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.c51f8f92.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.5/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.d09172fd.tar.gz: No such file or directory
2 errors; 49 distinct packages available

@naa0yama
Copy link

repository down?

fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  tzdata (missing):
    required by: world[tzdata]
$ curl -I http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
HTTP/1.1 503 Connection timed out
Server: Varnish
Retry-After: 0
Content-Type: text/html; charset=utf-8
Content-Length: 454
Accept-Ranges: bytes
Date: Thu, 16 Mar 2017 01:57:32 GMT
Via: 1.1 varnish
Connection: close
X-Served-By: cache-nrt6124-NRT
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1489629450.029380,VS0,VE2000

$ curl -I http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
HTTP/1.1 503 backend read error
Server: Varnish
Retry-After: 0
Content-Type: text/html; charset=utf-8
Content-Length: 448
Accept-Ranges: bytes
Date: Thu, 16 Mar 2017 01:57:56 GMT
Via: 1.1 varnish
Connection: close
X-Served-By: cache-nrt6129-NRT
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1489629463.326330,VS0,VE13361

@athrunsun
Copy link

Build fails on hub.docker.com too.

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

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.5/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.c51f8f92.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.5/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.d09172fd.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
  openvpn (missing):
    required by: world[openvpn]

@sardjv
Copy link

sardjv commented Mar 16, 2017

This fixed it for me...

docker exec -it $ID sed -i -e 's/dl-cdn/dl-4/' /etc/apk/repositories
then
docker exec -it $ID apk add --update drill

I'm following Victor Farcic's DevOps 2.1 tutorial / book.

@dopatraman
Copy link

Seems to be resolved.

@colceagus
Copy link

I got the error again today. Has anyone encountered this again ?

@alamzeeshan
Copy link

@danielmihai Try restarting Docker, that solved it for me today.

@colceagus
Copy link

colceagus commented Apr 24, 2017 via email

@Gruek
Copy link

Gruek commented Apr 26, 2017

@danielmihai Did you check that the packages you're trying to install are actually in those repositories?

I've just had an issue where one of the packages moved to /edge/community repository and another one moved to /v3.5/main

@Katiyman
Copy link

@danielmihai were you able to resolve this issue?

@colceagus
Copy link

colceagus commented Apr 26, 2017 via email

@gittycat
Copy link

gittycat commented May 4, 2017

Add Google's DNS to your nameservers list

docker-machine ssh <host>
sudo su
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
exit

@czende
Copy link

czende commented May 5, 2017

Domain alpinelinux.org is down again. Anyone else?

@Katiyman
Copy link

Katiyman commented May 5, 2017

Yes it down for me as well

@niegus
Copy link

niegus commented May 5, 2017

I'm facing the same problem, any idea?

@camsjams
Copy link

Down again today - 503 on http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz

@stephanlindauer
Copy link

for me as well:

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

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>503 Connection timed out</title>
  </head>
  <body>
    <h1>Error 503 Connection timed out</h1>
    <p>Connection timed out</p>
    <h3>Guru Mediation:</h3>
    <p>Details: cache-XXXXXXXX</p>
    <hr>
    <p>Varnish cache server</p>
  </body>
</html>

@camsjams
Copy link

camsjams commented May 11, 2017

So kinda hacky, but if you want to be unblocked, figure out the version you need and add the mirror like so (Dockerfile):
RUN echo "http://dl-5.alpinelinux.org/alpine/v3.4/main/" >> /etc/apk/repositories

Then you can run your apk commands:
RUN apk add --update python make g++

There are other mirror sites, 1-5:
http://dl-1.alpinelinux.org
http://dl-2.alpinelinux.org
http://dl-3.alpinelinux.org
http://dl-4.alpinelinux.org
http://dl-5.alpinelinux.org

But at this moment I am only able to get dl-5 working.

Hope this helps anyone! @stephanlindauer

Or alternatively, you can pass as argument:
RUN apk add python make g++ --repository http://dl-5.alpinelinux.org/alpine/v3.4/main/

@erkolson
Copy link

This has been down for me a lot since Friday (5/12). When I am seeing the issue, adding the dl-1, dl-2, etc mirrors does not help.

@mattatcha
Copy link
Member

dl-1 looks to be down atm. http://dl-cdn.alpinelinux.org/ is up and there has been less than .01% error rate since the 11th.

@erkolson
Copy link

Looks like they gave up on using tls on the dl-[1-5].alpinelinux.org servers?
https://bugs.alpinelinux.org/issues/4982
dl-cdn redirects to dl-[1-5]? Pulling packages without tls is unacceptable for production.

@willtrking
Copy link

Looks like https://dl-3.alpinelinux.org/ is working currently, combine that with @camsjams suggestion and you can properly get TLS for production. Worked in my case

@erkolson
Copy link

Oh wow, thanks. I didn't think to try all of them. dl-3 and only dl-3 has a legit cert. Thanks! I'm doing this for good measure:

ADD https://gist.github.com/erkolson/e9f27061a29953aa23341cb392abd39f/raw /retry.sh
RUN chmod +x /retry.sh && \
    /retry.sh 10 \
    apk add --no-cache \
    tini

@akhomy
Copy link

akhomy commented May 18, 2017

@erkolson seems your solution didn't help me.
Also, I tried dl-3 and dl-5.

@akhomy
Copy link

akhomy commented May 18, 2017

After some debugging and googling I found that problem was inside the container and based on DNS, so the best way in my case was:
create/edit file/etc/docker/daemon.json
And add in it text:
{"dns": ["8.8.8.8", "8.8.8.4"] }

Link to - http://stackoverflow.com/a/42332682

xavi- pushed a commit to Clever/ARCHIVED-ebs-snapshots that referenced this issue May 18, 2017
@ncopa
Copy link
Collaborator

ncopa commented May 19, 2017

This specific issue "Repository down" with IO ERROR form March 2016 was resolved in March 2016.

Please open new issue if you have new issues.

@gliderlabs gliderlabs locked and limited conversation to collaborators May 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests