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

svn登记代码仓库使用http协议地址在添加代码分支进行扫描任务后,系统默认将svn仓库地址配置为https协议,无法进行扫描任务执行 #1176

Open
icytnt opened this issue Sep 4, 2024 · 4 comments

Comments

@icytnt
Copy link

icytnt commented Sep 4, 2024

仓库登记
lQLPJxhvWkseCK_NAovNBS2wQjbBztA9C-kGwLg-TCi3AA_1325_651
添加代码分支报错
b2a22cee98bb9aff96e0884d653248d
日志记录内容
731876be877996bc7c7f5d7870d2b14

麻烦看一下是什么原因

@nickcdon
Copy link
Collaborator

nickcdon commented Sep 5, 2024

image

@yaoliwei
Copy link

我的问题和这个类似,不过多了一个问题:svn服务器的端口号看上去被tca服务器忽略了。
我们的svn地址是这样的: http://10.20.180.221:3690/repo/Software/PublicShare/Projects/01_dentalProject/02_Code
端口号是3690,并且不支持https。

log是这样的:
tomo@scmdata:/mnt/data/CodeAnalysis/.docker_temp$ tail -30 ./logs/servers/scmproxy/server_stderr.log
svn: E000111: Error running context: Connection refused}
127.0.0.1 - - [15/Oct/2024 10:41:03] "POST /RPC2 HTTP/1.1" 200 -
2024-10-15 10:52:50,879 PID:479 apis.py-line:119 | INFO - method: auth_check, scm_url: http://10.20.180.221:3690/repo/Software/PublicShare/Projects/01_dentalProject, scm_type: svn, username: yaoliwei
2024-10-15 10:52:50,880 PID:479 apis.py-line:70 | INFO - no need to checkout
2024-10-15 10:52:50,906 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: cannot set LC_CTYPE locale
2024-10-15 10:52:50,907 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: environment variable LC_ALL is en_US.UTF-8
2024-10-15 10:52:50,908 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: please check that your locale name is correct
127.0.0.1 - - [15/Oct/2024 10:52:50] "POST /RPC2 HTTP/1.1" 200 -
2024-10-15 10:56:48,098 PID:479 apis.py-line:119 | INFO - method: branch_check, scm_url: https://10.20.180.221/repo/Software/PublicShare/Projects/01_dentalProject/02_Code, scm_type: svn, username: yaoliwei
2024-10-15 10:56:48,099 PID:479 apis.py-line:70 | INFO - no need to checkout
2024-10-15 10:56:48,126 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: cannot set LC_CTYPE locale
2024-10-15 10:56:48,127 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: environment variable LC_ALL is en_US.UTF-8
2024-10-15 10:56:48,127 PID:479 threading.py-line:870 | WARNING - ignore warning/error: svn: warning: please check that your locale name is correct
2024-10-15 10:56:48,201 PID:479 proxyserver.py-line:79 | ERROR - Error info:
Traceback (most recent call last):
File "proxyserver.py", line 74, in _dispatch
response = func(*params)
File "/CodeAnalysis/server/projects/scmproxy/apis.py", line 128, in wrapper
return func(*func_args, **kwargs)
File "/CodeAnalysis/server/projects/scmproxy/apis.py", line 176, in branch_check
scm_client.info_by_remote()
File "src/_cmdsvn.py", line 300, in src._cmdsvn.CmdSvn.info_by_remote
File "src/_cmdsvn.py", line 241, in src._cmdsvn.CmdSvn._base_info
File "src/_cmdsvn.py", line 163, in src._cmdsvn.CmdSvn._cmd_error_check
lib._scmbase.ScmCommandError: svn: E170013: Unable to connect to a repository at URL 'https://10.20.180.221/repo/Software/PublicShare/Projects/01_dentalProject/02_Code'
svn: E000111: Error running context: Connection refused
2024-10-15 10:56:48,202 PID:479 utils.py-line:81 | INFO - handle svn git err msg: svn: E170013: Unable to connect to a repository at URL 'https://10.20.180.221/repo/Software/PublicShare/Projects/01_dentalProject/02_Code'
svn: E000111: Error running context: Connection refused
2024-10-15 10:56:48,202 PID:479 proxyserver.py-line:82 | ERROR - {method: branch_check, error_message: svn: E170013: Unable to connect to a repository at URL 'https://10.20.180.221/repo/Software/PublicShare/Projects/01_dentalProject/02_Code'
svn: E000111: Error running context: Connection refused}
tomo@scmdata:/mnt/data/CodeAnalysis/.docker_temp$

@yaoliwei
Copy link

http/https issue has been resolved after adjustment of the flag HTTPS_CLONE_FLAG, thoug the port issue still there.
Pls help.

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