TeamCity代理错误 "在代理上执行检出失败,退出代码:128"

4

这个链接对我没有帮助。

VCS参数:获取URL:http://***.com:7990/scm/clear/pro.git 默认分支:refs/heads/master 分支规范:+:refs/heads/* 认证方法:密码

连接测试成功完成

例子

我在仓库中看到文件

检出规则:

+:. => pro

构建日志

[15:56:00] :     [Updating sources] VCS Root: pro (1s)
[15:56:00] :         [VCS Root: pro] checkout rules: =>pro; revision: 10e1d06cce989c706b1ca0bfce6376cf47416bb8
[15:56:00] :         [VCS Root: pro] Git version: 2.8.2.0
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe show-ref
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe show-ref refs/heads/master
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe show-ref refs/heads/master
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass8519024404529146114.bat fetch --progress origin +refs/heads/master:refs/heads/master
[15:56:00] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass8519024404529146114.bat fetch --progress origin +refs/heads/master:refs/heads/master] C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat store: C:BuildAgenttempbuildTmpcredHelper211792100691636860.bat: command not found
[15:56:00] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass8519024404529146114.bat fetch --progress origin +refs/heads/master:refs/heads/master] fatal: remote error: Repository does not exist
[15:56:00] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass8519024404529146114.bat fetch --progress origin +refs/heads/master:refs/heads/master] The requested repository does not exist, or you do not have permission to
[15:56:00] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper211792100691636860.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass8519024404529146114.bat fetch --progress origin +refs/heads/master:refs/heads/master] access it.
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe init --bare
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe remote add origin http://user@vm-cint03.unix.com:7990/scm/clear/pro.git
[15:56:00] :         [VCS Root: pro] [C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master
[15:56:01] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master] C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat store: C:BuildAgenttempbuildTmpcredHelper2255037882340038481.bat: command not found
[15:56:01] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master] fatal: remote error: Repository does not exist
[15:56:01] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master] The requested repository does not exist, or you do not have permission to
[15:56:01] :             [[C:\BuildAgent\system\git\git-2EAC5546.git]: git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master] access it.
[15:56:01]E:     [Updating sources] Failed to perform checkout on agent: 'git.exe -c credential.helper=C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat -c core.askpass=C:\BuildAgent\temp\buildTmp\pass7759894979385805778.bat fetch --progress origin +refs/heads/master:refs/heads/master' command failed.
exit code: 128
stderr: C:\BuildAgent\temp\buildTmp\credHelper2255037882340038481.bat store: C:BuildAgenttempbuildTmpcredHelper2255037882340038481.bat: command not found
fatal: remote error: Repository does not exist
The requested repository does not exist, or you do not have permission to
access it.

我有权限并且可以克隆它。

可能的原因是什么,如何修复?

4个回答

3

删除 C:\BuildAgent\system\git\git-2EAC5546.git 对我有帮助。


这对我有用,但之后我又遇到了另一个错误,但我一直尝试在三次尝试中再次运行构建代理,最终它为我工作了...哈哈哈不知道怎么回事。 - Niraj Trivedi

2

在TeamCity服务器上删除位于C:\ TeamCity \ BuildAgent \ system \ git \ git-XXXX.git的文件夹是有效的。我删除了与问题首次发生时间和之后相对应的文件夹。由于我不想搞砸任何事情,因此我首先备份要删除的所有文件夹,但没有出现任何问题。


0
从 C:\BuildAgent\system\git*.git 文件夹中删除解决您问题的文件夹。

-1
在我的情况下(TeamCity 2020),我不得不替换


url = git@github.com:'Projectname'.git

使用

url = https://github.com/'Projectname'.git

在代理的git配置文件中。

不确定为什么,但它解决了这个问题...


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接