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

Cannot pull image #2151

Closed
cesarrodrig opened this issue Oct 9, 2013 · 29 comments
Closed

Cannot pull image #2151

cesarrodrig opened this issue Oct 9, 2013 · 29 comments

Comments

@cesarrodrig
Copy link

I am trying to pull the ubuntu image, and I get this errors:

vagrant@precise64:~$ sudo docker pull ubuntu
Pulling repository ubuntu
b750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2:
gzip: stdin: unexpected end of fileendend layers
tar: Unexpected EOF in archive
b750fe79269d: Error pulling image (quantal) from ubuntu, exit status 2:
gzip: stdin: unexpected end of fileing now
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
2013/10/09 20:53:40 Internal server error: 404 trying to fetch remote history for ubuntu

Also trying to access https://cdn-registry-1.docker.io/v1/ gives a nice 404.

@cesarrodrig
Copy link
Author

Solved.

@samalba
Copy link
Contributor

samalba commented Oct 10, 2013

We got some issues with CloudFlare recently (basically some objects were corrupted in the cache). It causes some similar pull problems, usually visible from only some geographical regions. We have an active discussion with them. May I know what solved the pull?

Also https://cdn-registry-1.docker.io/v1/ returns a 404 since it's not a valid API request (this specific endpoint does not exist).

@okke-formsma
Copy link

I am experiencing the same issue.

Unable to find image 'ubuntu' (tag: latest) locally
Pulling repository ubuntu
8dbd9e392a96: Downloading 557.1 kB/58.34 MB (1%)
b750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: 8414709: Error downloading dependend layers
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
b750fe79269d: Error pulling image (quantal) from ubuntu, exit status 2:
gzip: stdin: unexpected end of fileing now
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

https://cdn-registry-1.docker.io/v1/ gives 404.

If it's due to the CDN; I'm in the Netherlands.

[update]
It seems to have been a transient error; it works now:

okke@ubuntu:~$ sudo docker run -i -t ubuntu /bin/bash
2013/10/20 01:49:11 POST /v1.6/containers/create
[error] api.go:988 Error: No such image: ubuntu (tag: latest)
[error] api.go:75 HTTP Error: statusCode=404 No such image: ubuntu (tag: latest)
Unable to find image 'ubuntu' (tag: latest) locally
2013/10/20 01:49:11 POST /v1.6/images/create?fromImage=ubuntu&tag=
Pulling repository ubuntu
8dbd9e392a96: Download complete
b750fe79269d: Download complete
27cf78414709: Download complete
2013/10/20 01:58:22 POST /v1.6/containers/create
2013/10/20 01:58:22 POST /v1.6/containers/eec68bd527bc/start
2013/10/20 01:58:22 POST /v1.6/containers/eec68bd527bc/resize?h=46&w=115
2013/10/20 01:58:22 POST /v1.6/containers/eec68bd527bc/attach?logs=1&stderr=1&stdin=1&stdout=1&stream=1

@grahame
Copy link

grahame commented Dec 4, 2013

I'm hitting this from Perth, Australia; I guess I'll have to tunnel out to the states via SSH to get a working copy of the quantal image:

vagrant@precise64:~$ sudo docker run -i -t ubuntu /bin/bash
Unable to find image 'ubuntu' (tag: latest) locally
Pulling repository ubuntu
8dbd9e392a96: Downloading 1.114 MB/58.34 MB (2%)
b750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: 
gzip: stdin: unexpected end of fileendent layers
tar: Unexpected EOF in archive
b750fe79269d: Error pulling image (quantal) from ubuntu, exit status 2: 
gzip: stdin: unexpected end of fileing now
8dbd9e392a96: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: xz: (stdin): Unexpected end of input
8dbd9e392a96: Error pulling image (precise) from ubuntu, exit status 2: xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive exiting now
tar: Unexpected EOF in archive exiting now
tar: Error is not recoverable: exiting now
2013/12/04 07:22:26 Server error: 404 trying to fetch remote history for ubuntu

cnd-registry-1.docker.io is resolving to cf-ssl38933-protected-cdn-registry-1.docker.io.cdn.cloudflare.net (108.162.205.174) for me.

@albertogg
Copy link

@cesar0094 how did you solve it?

@ams0
Copy link

ams0 commented Dec 22, 2013

Having similar issues. From my docker instance at Rackspace and DigitalOcean, no problems. A docker pull from our Level3 datacenter (instances in our Openstack cluster) in Amsterdam:

Pulling repository ubuntu
8dbd9e392a96: Error pulling image (precise) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: tar (grandchild): xz: Cannot exec: No such file or directorye
8dbd9e392a96: Error pulling image (precise) from ubuntu, exit status 2: tar (grandchild): xz: Cannot exec: No such file or directory
tar (grandchild): Error is not recoverable: exiting now
tar: Child died with signal 13 exiting now
tar: Error is not recoverable: exiting now
2013/12/22 16:31:47 Could not find repository on any of the indexed registries.

Using Docker version 0.7.2, build 28b162e. Traceroute to 108.162.206.174 and 108.162.205.174 shows no issues .

@tianon
Copy link
Member

tianon commented Dec 24, 2013

@ams0 that's actually a different error: you need to install the xz command (I believe it can be found in xz-utils)

Perhaps we need to add that to our package dependencies.

@arechsteiner
Copy link

Same here on my Xubuntu VM, based in Switzerland:

alex@xubuntudev:~$ sudo docker pull ubuntu
Pulling repository ubuntu

8dbd9e392a96: Error pulling image (precise) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/
8db750fe79269d: Error pulling image (quantal) from ubuntu, endpoint: https://cdn-registry-1.docker.io/v1/, 
Gb750fe79269d: Error pulling image (quantal) from ubuntu, Get https://cdn-registry-1.docker.io/v1/images/
b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc/ancestry: dial tcp: lookup cdn-registry-1.d
2013/12/29 16:05:40 Could not find repository on any of the indexed registries.

@jumanjiman
Copy link

https://xkcd.com/979/

@arechsteiner
Copy link

@jumanjiman I think someone on IRC told me to use docker pull stackbrew/ubuntu instead, and that worked for my purposes.

PS: You are not alone ;)

@jumanjiman
Copy link

our problem started with a restrictive proxy that couldn't properly handle the communication with the cdn.
we ended up adding a proxy bypass config to our network infrastructure to allow two subnets to reach the necessary destinations, plus added a couple entries in /etc/hosts:

54.224.119.89   index.docker.io
198.41.249.135  cdn-registry-1.docker.io.cdn.cloudflare.net cdn-registry-1.docker.io

this lets us selectively mirror images from public to private as well as experiment in an isolated (for us) environment.

@paoloantinori
Copy link

same problem in UK right now

@oxypwn
Copy link
Contributor

oxypwn commented Feb 25, 2014

Cant reach the endpoint from Sweden or Amsterdam.

@samalba
Copy link
Contributor

samalba commented Feb 25, 2014

@pandrew Cloudflare did not declare any issues from Europe today: http://www.cloudflare.com/system-status

Could you give us more info on the error you have?

Also we got some issues with the public registry prod few hours ago, it might be related. It's solved on our side now, let me know if you still have issues, I can file a ticket to cloudflare if I have your public IP and the IP you resolve on cdn-registry-1.docker.io

@oxypwn
Copy link
Contributor

oxypwn commented Feb 26, 2014

@samalba When i encountered the issue it lasted about 5-ten minutes or so. There where others with the same issue on irc. I was trying to contact the registry from 192.81.220.238 (digitalocean). The issue was resolved about 10.41 AM.

@xiaods
Copy link
Contributor

xiaods commented Mar 8, 2014

@samalba in china region, the Cloudflare CDN got many more packet loss. please help us contact with him. I am live in beijing.

@HouCoder
Copy link

@xiaods 我也遇到了这个问题,国内网络直接超时,挂VPN时遇到这个问题,Google如果找不到的话正打算去ruby-china发帖问下呢。。。看来没这个必要了。

@samalba
Copy link
Contributor

samalba commented Mar 23, 2014

Guys, I was in contact with CloudFlare last week and the identified a bug (that impacted push), they going to roll out the fix next week worldwide. In other words, the situation should improve a lot.

@xiaods
Copy link
Contributor

xiaods commented Mar 23, 2014

@samalba Good news.

@HouCoder
Copy link

@samalba sweet

@GavinYin
Copy link

@HouCoder 现在是还是那个样子吗 是Could not find repository on any of the indexed registries?有什么解决方法吗?谢谢!

@HouCoder
Copy link

@GavinYin year, I still can't pull image,even use vpn

@GavinYin
Copy link

@HouCoder thx when i run sudo docker run -i -t ubuntu /bin/bash then will show "Could not find repository on any of the indexed registries."

@GavinYin
Copy link

@xiaods hi are you solve this question about packet loss?thx

@xiaods
Copy link
Contributor

xiaods commented Apr 14, 2014

@GavinYin it's ok for me, Beijing region

@unclejack unclejack mentioned this issue Apr 21, 2014
@GavinYin
Copy link

@xiaods can you tell me how to solve this problem? i am in Beijing but pull ubuntu it still show "Could not find repository on any of the indexed registries." thank you

@xiaods
Copy link
Contributor

xiaods commented Apr 23, 2014

@GavinYin I don't do anymore. I use boot2docker and mac environment. Hope it can give some hints.

@GavinYin
Copy link

@xiaods OK thank you

@rishikeshr
Copy link

I am seeing the same issue now from India.

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

No branches or pull requests