harbor: Cannot push image v1.10.2

Fresh install -

Manual docker login succeeded

docker push <repo_host>/<project>/<image>:tag

Push begins, but eventually gets retries and times out with EOF

I see log entries in harbor-core like this

2020-04-20T21:33:57Z [ERROR] [/core/middlewares/sizequota/builder.go:57]: failed to parse uploaded blob size for upload 7653778b-1d9b-4832-9c18-d1d6d6177cd0, error: range header not found

and in registry-photon:

time="2020-04-20T21:48:51.882513541Z" level=warning msg="error authorizing context: authorization token required" go.version=go1.12.12 http.request.host=harbor.xx.xx.xx http.request.id=8987d93a-9bc8-478d-b764-cf8de856fa54 http.request.method=PATCH http.request.remoteaddr=100.96.1.0 http.request.uri="/v2/<path>/<image>/blobs/uploads/a7356ead-fde1-45eb-8220-0405e13dbfa2?_state=uFEmr8Id40wnnGTpVU1yheePh6vORPIQBe76unx-xIl7Ik5hbWUiOiJicmlnaHRsb29tL2Jvb3RzdHJhcCIsIlVVSUQiOiJhNzM1NmVhZC1mZGUxLTQ1ZWItODIyMC0wNDA1ZTEzZGJmYTIiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMjAtMDQtMjBUMjE6NDg6NTEuNzEwNzUzNzIzWiJ9" http.request.useragent="docker/19.03.5 go/go1.12.12 git-commit/633a0ea kernel/4.19.76-linuxkit os/linux arch/amd64 UpstreamClient(Docker-Client/19.03.5 \(darwin\))" vars.name="<path>/<image>" vars.uuid=a7356ead-fde1-45eb-8220-0405e13dbfa2

About this issue

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

Most upvoted comments

@weisjohn thanks for the suggestion, definitely adding this to docs

Yup, nginx.ingress.kubernetes.io/proxy-request-buffering: "off" does the trick

Tested on our harbor registry running 1.10.2