Harbor Replication Failed by UNAUTHORIZED error
search cancel

Harbor Replication Failed by UNAUTHORIZED error

book

Article ID: 381254

calendar_today

Updated On:

Products

Tanzu Kubernetes Runtime

Issue/Introduction

When the Harbor replication is started, the task fails by this error message.

failed to do the prepare work for pushing/uploading resources: http error: code 401, message {"errors": [{"code":"UNAUTHORIZED","message":"unauthorized"}]}

Environment

VMware Harbor

Cause

Endpoint authentication is failed.

Resolution

Review authentication setting.

  1. Harbor UI --> Administration --> Registries --> EDIT target registry
  2. Set Access ID correctly
  3. Set Access Secret correctly

Additional Information

Access ID and Access Secret are not required fields to support an anonymous access repository.