Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GIT(TFS)错误:HTTPS请求的身份验证失败_Git_Tfs_Azure Devops_Azure Pipelines - Fatal编程技术网

GIT(TFS)错误:HTTPS请求的身份验证失败

GIT(TFS)错误:HTTPS请求的身份验证失败,git,tfs,azure-devops,azure-pipelines,Git,Tfs,Azure Devops,Azure Pipelines,我们的TFS构建突然停止工作。比如:他们以前工作过,而我并没有有意识地改变任何事情 罪魁祸首似乎是TFS结帐。如果现在失败,则出现以下错误: 2020-02-17T15:05:01.9018180Z ##[section]Starting: Checkout 2020-02-17T15:05:01.9191650Z ============================================================================== 2020-02-17T1

我们的TFS构建突然停止工作。比如:他们以前工作过,而我并没有有意识地改变任何事情

罪魁祸首似乎是TFS结帐。如果现在失败,则出现以下错误:

2020-02-17T15:05:01.9018180Z ##[section]Starting: Checkout
2020-02-17T15:05:01.9191650Z ==============================================================================
2020-02-17T15:05:01.9191750Z Task         : Get sources
2020-02-17T15:05:01.9191800Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-17T15:05:01.9191850Z Version      : 1.0.0
2020-02-17T15:05:01.9191900Z Author       : Microsoft
2020-02-17T15:05:01.9191950Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-17T15:05:01.9192010Z ==============================================================================
2020-02-17T15:05:02.3029550Z Syncing repository: repository (ExternalGit)
2020-02-17T15:05:02.3233340Z ##[command]git version
2020-02-17T15:05:02.3484980Z git version 2.21.1 (Apple Git-122.3)
2020-02-17T15:05:02.3701610Z ##[command]git config --get remote.origin.url
2020-02-17T15:05:02.3836900Z ##[command]git config gc.auto 0
2020-02-17T15:05:02.3951910Z ##[command]git config --get-all http.http://tfs.***.org:8080/DefaultCollection/***/_git/***.***.extraheader
2020-02-17T15:05:02.4038750Z ##[command]git config --get-all http.proxy
2020-02-17T15:05:02.4135610Z ##[command]git remote set-url origin http://***:***@tfs.***.org:8080/DefaultCollection/***/_git/***.***
2020-02-17T15:05:02.4241840Z ##[command]git remote set-url --push origin http://***:***@tfs.***.org:8080/DefaultCollection/***/_git/***.***
2020-02-17T15:05:02.4389440Z ##[command]git fetch --tags --prune --progress --no-recurse-submodules origin
2020-02-17T15:05:02.6933770Z fatal: Authentication failed for 'http://***:***@tfs.***.org:8080/DefaultCollection/***/_git/***.***/'
2020-02-17T15:05:02.6995380Z ##[warning]Git fetch failed with exit code 128, back off 2.49 seconds before retry.
2020-02-17T15:05:05.2443140Z ##[command]git fetch --tags --prune --progress --no-recurse-submodules origin
2020-02-17T15:05:05.4436380Z fatal: Authentication failed for 'http://***:***@tfs.***.org:8080/DefaultCollection/***/_git/***.***/'
2020-02-17T15:05:05.4445710Z ##[warning]Git fetch failed with exit code 128, back off 8.374 seconds before retry.
2020-02-17T15:05:13.8303720Z ##[command]git fetch --tags --prune --progress --no-recurse-submodules origin
2020-02-17T15:05:14.0495590Z fatal: Authentication failed for 'http://***:***@tfs.***.org:8080/DefaultCollection/***/_git/***.***/'
2020-02-17T15:05:14.0521190Z ##[error]Git fetch failed with exit code: 128
2020-02-17T15:05:14.0719800Z ##[section]Finishing: Checkout
切换到源目录并手动调用
git pull
works。所以网络、用户id和密码都可以


有什么想法吗?

您正在使用哪个版本的TFS?如何配置管道?如果您创建一个新管道来获取相同的源,结果如何?您最近是否更改了生成代理的密码?您是否尝试以生成代理身份登录?它可能在Windows凭据管理器中使用旧密码缓存了密码,但现在无法连接。它确实在您的日志中显示身份验证错误。