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

显示username和password错误 #70

Open
userboyboy opened this issue Apr 25, 2021 · 5 comments
Open

显示username和password错误 #70

userboyboy opened this issue Apr 25, 2021 · 5 comments

Comments

@userboyboy
Copy link

我想把企业版cr 同步到本地的harbor里。
报错日志如下,我设置的账号和密码是管理员权限
配置在config.json

{
"auth": {
"xxx-registry.cn-shanghai.cr.aliyuncs.com": {
"username": "sh-container01",
"password": "xxx"
},
"harbor.xxx.cn": {
"username": "admin",
"password": "xxx"
}
},
"images": {
"xxx-registry.cn-shanghai.cr.aliyuncs.com/sh-aliyun-cr": "harbor.xxx.cn/sh-aliyun-cr"
}
}

ERRO[2021-04-25 12:35:15] Generate sync task xxx-registry.cn-shanghai.cr.aliyuncs.com/sh-aliyun-cr to harbor.xxxx.cn/sh-aliyun-cr error: get tags failed from xxx-registry.cn-shanghai.cr.aliyuncs.com/sh-aliyun-cr error: unable to retrieve auth token: invalid username/password: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

@hhyasdf
Copy link
Collaborator

hhyasdf commented Apr 25, 2021

先确定下 unsername 和 password 是不是填对了哈~,可以用 docker 命令试试

@userboyboy
Copy link
Author

先确定下unsername和password是不是填对了哈〜,可以用docker命令试试

image
账号密码是对的哈

@userboyboy
Copy link
Author

同步命令是./image-syncer --config=./config.json --namespace=sh-aliyun-cr

@youngcool2285
Copy link

解决了么?我也遇到这个问题,密码手动登录是对的,但是写到配置文件里去执行一直报错

@imdingtalk
Copy link

使用仓库的token登录试试

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

4 participants