Native Git can't authenticate with On-Premise BitBucket
Hi, I've been testing enabling native git operations on my TeamCity server, however it can't authenticate with our BitBucket server. All VCS roots are using HTTPS with username/password authentication. I can clone repos no problem by running git commands on the server itself, with the username and password in the git credential manager. The git installation on the server uses the native Windows Secure Channel library instead of OpenSSL which I was suspicious of, however disabling sslVerify doesn't fix the problem so I'm not sure. Does anyone know what is going on here?
TeamCity Server version: 2023.05.3
Git version: 2.42.0.windows.2
Server OS: Windows Server 2019 10.0.17763
BitBucket Server: v7.6.7
Example from teamcity-vcs.log:
[2023-09-07 16:25:57,300] WARN [nio-443-exec-19] - jetbrains.buildServer.VCS - Failed to run operation within 1 attempt: jetbrains.buildServer.vcs.VcsException: git -c core.askpass=D:\Apps\TeamCity\temp\pass13630992766756242737.bat -c credential.helper= ls-remote origin command failed.
exit code: 128
stderr: fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. (enable debug to see stacktrace)
Please sign in to leave a comment.