harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Proxy cache list tags from remote works well but pull image failed

Open chlins opened this issue 2 years ago • 7 comments

What can we help you?

  1. setup registry of dockerhub with personal auth in harbor
  2. push private image to dockerhub
  3. create public proxy cache type project in harbor
  4. curl harbor.dev/v2/proxy/chlins/nginx/tags/list api can list tags successfully
  5. docker pull harbor.dev/proxy/chlins/nginx:1.7 faild
$ docker pull harbor.dev/proxy/chlins/nginx:1.7
Error response from daemon: unknown: artifact proxy/chlins/nginx@sha256:2204e6cc1bbcc3c5587aaada2c59819599847f1dbe5876dc21eba6764aa795ef not found

core.log

2022-02-28T02:29:32Z [WARNING] [/server/middleware/repoproxy/proxy.go:143]: Artifact: proxy/chlins/nginx:1.7, digest: is not found in proxy cache, fetch it from remote repo
2022-02-28T02:29:35Z [ERROR] [/server/middleware/repoproxy/proxy.go:103]: failed to proxy manifest, fallback to local, request uri: /v2/proxy/chlins/nginx/manifests/sha256:2204e6cc1bbcc3c5587aaada2c59819599847f1dbe5876dc21eba6764aa795ef, error: login to dockerhub error: Post "https://hub.docker.com/v2/users/login/": EOF
2022-02-28T02:32:07Z [WARNING] [/server/middleware/repoproxy/proxy.go:143]: Artifact: proxy/chlins/nginx:1.7, digest: is not found in proxy cache, fetch it from remote repo
2022-02-28T02:32:10Z [ERROR] [/server/middleware/repoproxy/proxy.go:103]: failed to proxy manifest, fallback to local, request uri: /v2/proxy/chlins/nginx/manifests/sha256:2204e6cc1bbcc3c5587aaada2c59819599847f1dbe5876dc21eba6764aa795ef, error: login to dockerhub error: Post "https://hub.docker.com/v2/users/login/": EOF
2022-02-28T02:35:15Z [WARNING] [/server/middleware/repoproxy/proxy.go:143]: Artifact: proxy/chlins/nginx:1.7, digest: is not found in proxy cache, fetch it from remote repo
2022-02-28T02:35:17Z [ERROR] [/server/middleware/repoproxy/proxy.go:103]: failed to proxy manifest, fallback to local, request uri: /v2/proxy/chlins/nginx/manifests/sha256:2204e6cc1bbcc3c5587aaada2c59819599847f1dbe5876dc21eba6764aa795ef, error: login to dockerhub error: Post "https://hub.docker.com/v2/users/login/": EOF

chlins avatar Feb 28 '22 02:02 chlins

The issue maybe posed by dockerhub network jitter.

chlins avatar Mar 01 '22 07:03 chlins

Reproduce when reach dockerhub rate limit, should wrap root cause to error log for docker client.

2022-03-09T06:41:32Z [WARNING] [/server/middleware/repoproxy/proxy.go:155]: Proxy to remote failed, fallback to local repo, error: http status code: 429, body: {
  “errors”: [
    {
      “code”: “TOOMANYREQUESTS”,
      “message”: “You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit”
    }
  ]
}

chlins avatar Mar 09 '22 06:03 chlins

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar May 08 '22 09:05 github-actions[bot]

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar Jul 05 '22 09:07 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Aug 05 '22 09:08 github-actions[bot]

I am trying to fix it

stonezdj avatar Sep 09 '22 02:09 stonezdj

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar Nov 09 '22 09:11 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Dec 10 '22 09:12 github-actions[bot]