Closed DerKnerd closed 7 years ago
@DerKnerd i think so, since you are getting 301 redirect. can you configure the agent against the 'real' TFS url?
@TingluoHuang that helped thank you. Now I am getting a different error, should I make a new issue or add it here?
@DerKnerd add here.
This is the new error I am getting:
[2017-05-26 15:36:04Z INFO JobServerQueue] Try to append 1 batches web console lines, success rate: 1/1.
[2017-05-26 15:36:04Z ERR StepsRunner] Caught exception from step: System.InvalidOperationException: Git submodule update failed with exit code: 1
at Microsoft.VisualStudio.Services.Agent.Worker.Build.GitSourceProvider.<GetSourceAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.Build.BuildJobExtension.<GetSourceAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.JobExtensionRunner.<RunAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.<RunStepAsync>d__1.MoveNext()
[2017-05-26 15:36:04Z INFO StepsRunner] Step result: Failed
The user that performs the build has the needed rights in the repositories.
@DerKnerd what's your build log said? the one you pasted is agent diag log.
Cloning into 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraCategoryNewFlag'...
remote: TF401019: Das Git-Repository mit dem Namen oder Bezeichner Shopware ist nicht vorhanden, oder Sie haben für den gewünschten Vorgang keine Berechtigungen.
fatal: repository 'https://support.ngroup.info/Root/Shopware/_git/CompraCategoryNewFlag/' not found
fatal: clone of 'https://support.ngroup.info/Root/Shopware/_git/CompraCategoryNewFlag' into submodule path 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraCategoryNewFlag' failed
Failed to clone 'custom/plugins/CompraCategoryNewFlag'. Retry scheduled
Cloning into 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraTrademark'...
remote: TF401019: Das Git-Repository mit dem Namen oder Bezeichner Shopware ist nicht vorhanden, oder Sie haben für den gewünschten Vorgang keine Berechtigungen.
fatal: repository 'https://support.ngroup.info/Root/Shopware/_git/CompraTrademark/' not found
fatal: clone of 'https://support.ngroup.info/Root/Shopware/_git/CompraTrademark' into submodule path 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraTrademark' failed
Failed to clone 'custom/plugins/CompraTrademark'. Retry scheduled
Cloning into 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraCategoryNewFlag'...
remote: TF401019: Das Git-Repository mit dem Namen oder Bezeichner Shopware ist nicht vorhanden, oder Sie haben für den gewünschten Vorgang keine Berechtigungen.
fatal: repository 'https://support.ngroup.info/Root/Shopware/_git/CompraCategoryNewFlag/' not found
fatal: clone of 'https://support.ngroup.info/Root/Shopware/_git/CompraCategoryNewFlag' into submodule path 'C:/VSTSAgent/_work/1/s/custom/plugins/CompraCategoryNewFlag' failed
Failed to clone 'custom/plugins/CompraCategoryNewFlag' a second time, aborting
Git submodule update failed with exit code: 1
looks like the git submocule update
command failed with permission error.
or it can't find the submodule repo.
It works without any issue when I try it with the account that runs the build agent. What users do I have to give rights?
the build is always running as service account, not you.
Ok, that helped, I needed to add the Build Users in the security tab. After adding them it worked. Thank you.
cool, i will close this issue.
Our VSTS agent fails on every build try, the log is at the bottom. Can you help me? The TFS has three URLs that map all to the same server, might that be a problem?
Agent version and platform
Version of your agent? 2.116.1
OS of the machine running the agent? Windows
VSTS type and version
On-Prem TFS?
If On-Prem TFS, which release, 15.105.25910.0
What's not working?
Please include error messages and screenshots
Agent and Worker's diag log
Here is the log