harbor: "docker pull" failed with "Retrying in xx second" and "unexpected EOF"

If you are reporting a problem, please make sure the following information are provided: 1)Version of docker engine and docker-compose.

# docker --version
Docker version 17.06.0-ce, build 02c1d87

# docker-compose --version
docker-compose version 1.14.0, build c7bdf9e

2)Config files of harbor, you can get them by packaging “harbor.cfg” and files in the same directory, including subdirectory.

#grep -v "^#" harbor.cfg  | grep -v "^$"

hostname = registry.example.com
ui_url_protocol = https
db_password = xxx
max_job_workers = 3 
customize_crt = off
ssl_cert = /home/xxx/harbor_cert/registry.example.com.cer
ssl_cert_key = /home/xxx/harbor_cert/registry.example.com.key
secretkey_path = /data
admiral_url = NA
clair_db_password = xxxxx
email_identity = 
email_server = smtp.mydomain.com
email_server_port = 25
email_username = sample_admin@mydomain.com
email_password = abc
email_from = admin <sample_admin@mydomain.com>
email_ssl = false
harbor_admin_password = xxxxxx
auth_mode = db_auth
ldap_url = ldaps://ldap.mydomain.com
ldap_basedn = ou=people,dc=mydomain,dc=com
ldap_uid = uid 
ldap_scope = 3 
ldap_timeout = 5
self_registration = off
token_expiration = 30
project_creation_restriction = adminonly
verify_remote_cert = off

3)Log files, you can get them by package the /var/log/harbor/ .

Harbor.error.log_2017-08-16.txt


Issue reproduction steps

1.  on sever A
docker login   
success

2. from server A.  
docker push   
success

3. on server B
docker login 
success

4. docker push on server B
docker pull 
failed as follow:

1.0: Pulling from  xxxxxxxxxxx
9f0706ba7422: Retrying in 1 second 
d3942a742d22: Retrying in 1 second 
2b95a7bc6bf9: Downloading [==================================================>] 243.1 kB/243.1 kB
e4c7597bbbc1: Waiting 
5f5ed4ce77dc: Waiting 
63038208f189: Waiting 
1138b1f02201: Waiting 
f027013454f1: Waiting 
41cf8eaed89c: Waiting 
08038cdd003c: Waiting 
d4afc280bba7: Waiting 
a0416d3a601b: Waiting 
173941a1f6c9: Waiting 
unexpected EOF

This issue can be seen every time when “docker pull”


My docker image size is hundreds of MB or several GB. At last, I found , in the Nginx templates, the proxy_max_temp_file_size is not set and its default value will cause above issue. so I made modification like this:

proxy_max_temp_file_size 0;

Then the issue was gone.

1.0: Pulling from xxxxxx 9f0706ba7422: Pull complete d3942a742d22: Pull complete 2b95a7bc6bf9: Pull complete e4c7597bbbc1: Pull complete 5f5ed4ce77dc: Pull complete 63038208f189: Pull complete 1138b1f02201: Pull complete f027013454f1: Pull complete 41cf8eaed89c: Pull complete 08038cdd003c: Pull complete d4afc280bba7: Pull complete a0416d3a601b: Pull complete 173941a1f6c9: Pull complete Digest: sha256:830d6042fe2f936209efa041d6cbea6d6cfe4a8310d28f0048e8a80ed1b3b955

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 17 (6 by maintainers)

Most upvoted comments

版本harbor1.9 部署在阿里云上的镜像仓库,多台服务器到仓库获取镜像。 有一台pull成功,其他都失败。 1、 image 2、 e7c96db7181b: Downloading [==================================================>] 2.747MB/2.747MB f910a506b6cb: Downloading [==================================================>] 238B/238B b6abafe80f63: Downloading [==================================================>] 54.93MB/54.93MB 9e4407c1757e: Download complete 2a1965e05010: Download complete unexpected EOF

然后多台服务器都不能解决

Just close the current terminal session and execute the pull in new terminal. It works for me!. I think the reason for was too many attempts of incomplete pulls.