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

扫描失败,提示SCM鉴权失败 账号密码错误 #1057

Open
uniquewdl opened this issue Apr 17, 2024 · 3 comments
Open

扫描失败,提示SCM鉴权失败 账号密码错误 #1057

uniquewdl opened this issue Apr 17, 2024 · 3 comments

Comments

@uniquewdl
Copy link

No description provided.

@Lingghh
Copy link
Collaborator

Lingghh commented Apr 18, 2024

可以检查下 scmproxy 服务的日志输出,确认下错误原因
参考链接:faq

@uniquewdl
Copy link
Author

可以检查下 scmproxy 服务的日志输出,确认下错误原因 参考链接:faq

2024-04-22 10:37:26,724 PID:1 apis.py-line:119 | INFO - method: latest_revision, scm_url: [email protected]:xxx/xx#master, scm_type: ssh+git, username: None
2024-04-22 10:37:26,725 PID:1 apis.py-line:72 | INFO - start to checkout or update: /var/www/django/codedog/sourcedirs/8743971f98269f534e0f2fb975cae36ab424433d
2024-04-22 10:37:26,826 PID:1 proxyserver.py-line:79 | ERROR - Error info:
Traceback (most recent call last):
File "proxyserver.py", line 74, in _dispatch
response = func(*params)
File "/var/www/django/codedog/apis.py", line 125, in wrapper
coding_project_id=scm_info.get("coding_project_id"))
File "/var/www/django/codedog/apis.py", line 105, in __get_client_by_scm_type
self.__checkout_sourdir(scm_client, source_dir)
File "/var/www/django/codedog/apis.py", line 82, in __checkout_sourdir
scm_client.checkout(enable_submodules=False, enable_lfs=False)
File "src/_cmdgit.py", line 1585, in src._cmdgit.CmdGit.checkout
File "src/_cmdgit.py", line 1426, in src._cmdgit.CmdGit._clone
File "src/_cmdgit.py", line 224, in src._cmdgit.CmdGit._cmd_error_check
lib._scmbase.ScmCommandError: fatal: Could not read from remote repository.
2024-04-22 10:37:26,826 PID:1 utils.py-line:49 | INFO - handle git err msg: fatal: Could not read from remote repository.
2024-04-22 10:37:26,826 PID:1 proxyserver.py-line:82 | ERROR - {method: latest_revision, error_message: fatal: Could not read from remote repository.}

@Lingghh
Copy link
Collaborator

Lingghh commented Apr 29, 2024

看起来可能是凭证失效,无法获取代码库信息

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

2 participants