harbor: Replication doesn't work for previous version to v1.9.0

As quota management is introduced from v1.9.0, and the replication request(PUT blob) used in the previous Harbor doesn’t meet the OCI spec of the registry, which is only accepted by quota middlewares now.

Thus, it will break the replication task from an older version Harbor to v1.9.0 Harbor, and you may see the error in the log like:

2019-08-15T02:22:31Z [ERROR] [/replication/transfer/image/transfer.go:143]: http error: code 500, message {"errors":[{"code":"InternalError","message":"Error occurred when to handle request in size quota handler: failed to get content length of blob upload 01cf72d0-2fbf-4722-a0f5-fc91ad48d317, error: redigo: nil returned","detail":"Error occurred when to handle request in size quota handler: failed to get content length of blob upload 01cf72d0-2fbf-4722-a0f5-fc91ad48d317, error: redigo: nil returned"}]}

[Resolve] Upgrade all of the harbor nodes to v1.9.0.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I have the same issue from 1.8.2 (v1.8.2-b24a0e33)–> 1.9.0(Version v1.9.0-d13cf448) …

below is the error message

2019-10-12T07:42:47Z [ERROR] [/replication/transfer/image/transfer.go:249]: failed to pushing the blob sha256:dd59fdb172771f3dc2e4b0d7e3052dce2dea7fce3c35ebf423d6b6d8804e0bba: http error: code 500, message {“errors”:[{“code”:“InternalError”,“message”:“Error occurred when to handle request in size quota handler: failed to get content length of blob upload 5cce90da-005f-48e6-a88c-eee66fea0fe1, error: redigo: nil returned”,“detail”:“Error occurred when to handle request in size quota handler: failed to get content length of blob upload 5cce90da-005f-48e6-a88c-eee66fea0fe1, error: redigo: nil returned”}]} 2019-10-12T07:42:47Z [ERROR] [/replication/transfer/image/transfer.go:143]: http error: code 500, message {“errors”:[{“code”:“InternalError”,“message”:“Error occurred when to handle request in size quota handler: failed to get content length of blob upload 5cce90da-005f-48e6-a88c-eee66fea0fe1, error: redigo: nil returned”,“detail”:“Error occurred when to handle request in size quota handler: failed to get content length of blob upload 5cce90da-005f-48e6-a88c-eee66fea0fe1, error: redigo: nil returned”}]}

any solution ?