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

When operating harbor core with multiple replicas, 401 Unauthorized occurs intermittently during docker login #1205

Closed
derekcha opened this issue May 19, 2022 · 1 comment

Comments

@derekcha
Copy link

hello
When running harbor-core as multiple instead of replica 1, it seems that a 401 Unauthorized error occurs intermittently (1 or 2 out of 10) during docker login.

echo "password" | docker login $REGISTRY_HOST --username $REGISTRY_USER --password-stdin Error response from daemon: login attempt to $REGISTRY_HOST/v2/ failed with status: 401 Unauthorized

harbor-core log
2022-05-19T08:57:54Z [ERROR] [/pkg/token/token.go:66]: parse token error, token is not valid yet

If harbor-core is operated with 1 replica, no error occurs.

Shouldn't the harbor core be operated with multiple replicas? Please answer
I'm using version 1.9.0 and if you have any info I need for debugging please tell me

thanks.

@kkacsh321
Copy link

@derekcha we had this issue also, and what it came down to was time syncs between the nodes that were running core/registry. Once we fixed the NTP time issues problems went away. Key to this error is in the message that the token is not valid yet..... "yet".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants