TeamCity代理错误“无法在代理上执行签出。退出代码:128“

时间:2016-10-19 13:12:38

标签: git teamcity

This 链接无法帮助我。

  

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

     

连接测试成功完成

example

我在存储库中看到文件

结帐规则:

+:. => 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 个答案:

答案 0 :(得分:3)

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

答案 1 :(得分:1)

删除位于TeamCity服务器上C:\ TeamCity \ BuildAgent \ system \ git \ git-XXXX.git的文件夹。我删除了与问题首次发生时和之后相对应的文件夹。因为我不想搞砸任何东西,所以我先备份了要删除的所有文件夹,但没有问题。

答案 2 :(得分:0)

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

答案 3 :(得分:-1)

就我而言(teamcity 2020),我不得不替换

    final Intent intent = new Intent( mRichImm.getInputMethodInfoOfThisIme().getSettingsActivity());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
        | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
        | Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
final int currentDisplayId = ((WindowManager) getSystemService(Context.WINDOW_SERVICE))
        .getDefaultDisplay().getDisplayId();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    context.startActivity(intent,
            ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());
  }else{
    context.startActivity(intent);
  }
}else{
  context.startActivity(intent);
}

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

在代理的git配置文件中。

不知道为什么,但是,它解决了问题...