Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Harbors Copying 401 #20673

Open
hsy-go opened this issue Jun 27, 2024 · 3 comments
Open

Multiple Harbors Copying 401 #20673

hsy-go opened this issue Jun 27, 2024 · 3 comments
Assignees

Comments

@hsy-go
Copy link

hsy-go commented Jun 27, 2024

We have deployed two Harbor clusters based on shared storage

  1. An error occurred when using the copy function from Harbor1 (A, B) to Harbor (C, D)
    error:
    Jun 27 17:59:35 172.22.0.1 jobservice[1035]: 2024-06-27T09:59:35Z [ERROR] [/controller/replication/transfer/image/transfer.go:470]: failed to pull the manifest of artifact yeepay-docker-staging-local/jgs-invoice-server:202406271757_4583886c: http status code: 401, body: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized to access repository: yeepay-docker-staging-local/jgs-invoice-server, action: pull: unauthorized to access repository: yeepay-docker-staging-local/jgs-invoice-server, action: pull"}]}
    Jun 27 17:59:35 172.22.0.1 jobservice[1035]: 2024-06-27T09:59:35Z [ERROR] [/controller/replication/transfer/image/transfer.go:194]: http status code: 401, body: {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized to access repository: yeepay-docker-staging-local/jgs-invoice-server, action: pull: unauthorized to access repository: yeepay-docker-staging-local/jgs-invoice-server, action: pull"}]}
    Jun 27 17:59:35 172.22.0.1 jobservice[1035]: 2024-06-27T09:59:35Z [ERROR] [/controller/replication/transfer/image/transfer.go:200]: got error during the whole transfer period, mark the job failure
    Jun 27 17:59:35 172.22.0.1 jobservice[1035]: 2024-06-27T09:59:35Z [ERROR] [/jobservice/runner/redis.go:123]: Job 'REPLICATION:48ca340393330104ecd48016' exit with error: run error: got error during the whole transfer period, mark the job failure
    Jun 27 17:59:35 172.22.0.1 jobservice[1035]: 2024-06-27T09:59:35Z [ERROR] [/jobservice/hook/hook_agent.go:155]: Retry: sending hook event error: {"errors":[{"code":"NOT_FOUND","message":"task with job ID a12e5b32f8128ed9aee99c32 not found"}]}
@hsy-go
Copy link
Author

hsy-go commented Jun 27, 2024

共享存储的二台harbor,复制任务去另一套harbor失败率太高,jobservice组件报401

@MinerYang
Copy link
Contributor

Please make sure your account has proper permission to pull image from repository yeepay-docker-staging-local/jgs-invoice-server

@stonezdj
Copy link
Contributor

stonezdj commented Jul 8, 2024

Please check the harbor core log in the source Harbor, and make sure there is no such log

log.Warningf("Login failed, locking %s, and sleep for %v", m.Principal, frozenTime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants