Azure-pipelines-agent: VS30063: You are not authorized to access on computer "B"

Created on 11 Dec 2018  路  13Comments  路  Source: microsoft/azure-pipelines-agent

Have you tried trouble shooting?

Yes

Agent Version and Platform

Version: 2.117.2

OS of the machine running the agent? OSX/Windows/Linux/...
Windows Server 2012 R2(where TFS is installed) and Windows 10(Where I try to add agent build)

VSTS Type and Version

TFS 2017 update 2

What's not working?

I麓m working with TFS 2017 update 2(Installed on computer "A") and I need to add an agent build(on computer "B"), I downloaded the agent in computer B and when when I'm setting it up I enter the tfs url and authentication integrated this message is showed:

Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) >
Connecting to server ...
VS30063: You are not authorized to access http://servertfs:8080.
Failed to connect.  Try again or ctrl-c to quit

if I do the same on computer "A" this work without problems, but I need the agent on computer "B", I tried with PAT and alt authentication types but I can麓t add the agent build this is an example:

Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) > PAT
Enter personal access token > *************************************************************
Connecting to server ...
Basic authentication requires a secure connection to the server.
Failed to connect.  Try again or ctrl-c to quit

Any suggestion on how to solve this?... thanks in advance.

Agent and Worker's Diagnostic Logs

[2018-12-11 17:45:19Z INFO AgentProcess] Agent is built for Windows - win7-x64.
[2018-12-11 17:45:19Z INFO AgentProcess] RuntimeInformation: Microsoft Windows 10.0.17134 .
[2018-12-11 17:45:19Z INFO AgentProcess] Version: 2.117.2
[2018-12-11 17:45:19Z INFO AgentProcess] Commit: 38c028a22fde25ec5deff999b2518392ba750446
[2018-12-11 17:45:19Z INFO AgentProcess] Culture: en-US
[2018-12-11 17:45:19Z INFO AgentProcess] UI Culture: en-US
[2018-12-11 17:45:19Z INFO HostContext] Well known directory 'Bin': 'C:\agent\bin'
[2018-12-11 17:45:19Z INFO HostContext] Well known directory 'Root': 'C:\agent'
[2018-12-11 17:45:19Z INFO AgentProcess] Validating directory permissions for: 'C:\agent'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Generation: '1'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine', value name 'PowerShellVersion': '2.0'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Unsupported version. Skipping.
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Generation: '3'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'PowerShellVersion': '5.1.17134.1'
[2018-12-11 17:45:19Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'ApplicationBase': 'C:\Windows\System32\WindowsPowerShell\v1.0'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework', value name 'InstallRoot': 'C:\Windows\Microsoft.NET\Framework64\'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP' contains sub keys:
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'CDF'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'v2.0.50727'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'v3.0'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'v3.5'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'v4'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'v4.0'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727', value name 'Version': '2.0.50727.4927'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Testing directory: 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Found version: 2.0.50727
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0', value name 'Version': '3.0.30729.4926'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Testing directory: 'C:\Windows\Microsoft.NET\Framework64\v3.0'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Found version: 3.0
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5', value name 'Version': '3.5.30729.4926'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Testing directory: 'C:\Windows\Microsoft.NET\Framework64\v3.5'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Found version: 3.5
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' is null.
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name '' is null.
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4' contains sub keys:
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'Client'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 'Full'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version': '4.7.03056'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release': '461808'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Type is System.Int32
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version': '4.7.03056'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install': '1'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release': '461808'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Type is System.Int32
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' is null.
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name '': 'deprecated'
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Found 5 versions:
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 2.0.50727
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 3.0
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 3.5
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 4.6.2
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] 4.6.2
[2018-12-11 17:45:19Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.5'
[2018-12-11 17:45:19Z INFO CommandLineParser] Parse
[2018-12-11 17:45:19Z INFO CommandLineParser] Parsing 1 args
[2018-12-11 17:45:19Z INFO CommandLineParser] parsing argument
[2018-12-11 17:45:19Z INFO CommandLineParser] HasArgs: False
[2018-12-11 17:45:19Z INFO CommandLineParser] Adding Command: configure
[2018-12-11 17:45:20Z INFO AgentProcess] Arguments parsed
[2018-12-11 17:45:20Z INFO VstsAgentWebProxy] No proxy setting found.
[2018-12-11 17:45:20Z INFO Agent] ExecuteCommand
[2018-12-11 17:45:20Z INFO ConfigurationStore] currentAssemblyLocation: C:\agent\bin\Agent.Listener.dll
[2018-12-11 17:45:20Z INFO ConfigurationStore] binPath: C:\agent\bin
[2018-12-11 17:45:20Z INFO ConfigurationStore] RootFolder: C:\agent
[2018-12-11 17:45:20Z INFO ConfigurationStore] ConfigFilePath: C:\agent.agent
[2018-12-11 17:45:20Z INFO ConfigurationStore] CredFilePath: C:\agent.credentials
[2018-12-11 17:45:20Z INFO ConfigurationStore] ServiceConfigFilePath: C:\agent.service
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'help': 'False'
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'version': 'False'
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'commit': 'False'
[2018-12-11 17:45:20Z INFO CommandSettings] Command 'configure': 'True'
[2018-12-11 17:45:20Z INFO ConfigurationManager] ConfigureAsync
[2018-12-11 17:45:20Z INFO ConfigurationStore] IsConfigured()
[2018-12-11 17:45:20Z INFO ConfigurationStore] IsConfigured: False
[2018-12-11 17:45:20Z INFO ConfigurationManager] Is configured: False
[2018-12-11 17:45:20Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.6'
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2018-12-11 17:45:20Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2018-12-11 17:45:20Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2018-12-11 17:45:20Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2018-12-11 17:45:20Z INFO Terminal] WRITE LINE:
[2018-12-11 17:45:20Z INFO Terminal] WRITE LINE: >> Connect:
[2018-12-11 17:45:20Z INFO Terminal] WRITE LINE:
[2018-12-11 17:45:20Z INFO CommandSettings] Arg 'url': ''
[2018-12-11 17:45:20Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-12-11 17:45:20Z INFO PromptManager] ReadValue
[2018-12-11 17:45:20Z INFO Terminal] WRITE: Enter server URL >
[2018-12-11 17:45:20Z INFO Terminal] READ LINE
[2018-12-11 17:45:33Z INFO Terminal] Read value: 'http://servertfs:8080/tfs'
[2018-12-11 17:45:33Z INFO ConfigurationManager] GetCredentialProvider
[2018-12-11 17:45:33Z INFO CommandSettings] Arg 'auth': ''
[2018-12-11 17:45:33Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-12-11 17:45:33Z INFO PromptManager] ReadValue
[2018-12-11 17:45:33Z INFO Terminal] WRITE: Enter authentication type (press enter for Integrated) >
[2018-12-11 17:45:33Z INFO Terminal] READ LINE
[2018-12-11 17:45:50Z INFO Terminal] Read value: ''
[2018-12-11 17:45:50Z INFO PromptManager] Falling back to the default: 'Integrated'
[2018-12-11 17:45:50Z INFO ConfigurationManager] Creating credential for auth: Integrated
[2018-12-11 17:45:50Z INFO CredentialManager] GetCredentialProvider
[2018-12-11 17:45:50Z INFO CredentialManager] Creating type Integrated
[2018-12-11 17:45:50Z INFO CredentialManager] Creating credential type: Integrated
[2018-12-11 17:45:50Z INFO IntegratedCredential] GetVssCredentials
[2018-12-11 17:45:50Z INFO ConfigurationManager] cred retrieved
[2018-12-11 17:45:50Z INFO Terminal] WRITE LINE: Connecting to server ...
[2018-12-11 17:45:50Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2018-12-11 17:45:50Z ERR AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://servertfs:8080.
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.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 System.Net.Http.HttpClient.<FinishSendAsync>d__58.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__48.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__451.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.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.AgentServer.d__3.MoveNext()
[2018-12-11 17:45:51Z INFO AgentServer] Catch exception during connect. 3 attemp left.
[2018-12-11 17:45:51Z ERR AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://servertfs:8080.
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.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 System.Net.Http.HttpClient.<FinishSendAsync>d__58.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__48.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__451.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.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.AgentServer.d__3.MoveNext()
[2018-12-11 17:45:51Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2018-12-11 17:45:51Z ERR AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://servertfs:8080.
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.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 System.Net.Http.HttpClient.<FinishSendAsync>d__58.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__48.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__451.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.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.AgentServer.d__3.MoveNext()
[2018-12-11 17:45:51Z INFO AgentServer] Catch exception during connect. 1 attemp left.
[2018-12-11 17:45:51Z ERR AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://servertfs:8080.
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.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 System.Net.Http.HttpClient.<FinishSendAsync>d__58.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__48.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__451.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.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.AgentServer.d__3.MoveNext()
[2018-12-11 17:45:51Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-12-11 17:45:51Z ERR Terminal] WRITE ERROR (exception):
[2018-12-11 17:45:51Z ERR Terminal] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access http://servertfs:8080.
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d__4.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 System.Net.Http.HttpClient.<FinishSendAsync>d__58.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__48.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__451.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d__41.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.AgentServer.d__3.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.Listener.Configuration.BuildReleasesAgentConfigProvider.d__14.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.Listener.Configuration.ConfigurationManager.d__7.MoveNext()
[2018-12-11 17:45:51Z ERR Terminal] WRITE ERROR: Failed to connect. Try again or ctrl-c to quit
[2018-12-11 17:45:51Z INFO CommandSettings] Arg 'url': ''
[2018-12-11 17:45:51Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-12-11 17:45:51Z INFO PromptManager] ReadValue
[2018-12-11 17:45:51Z INFO Terminal] WRITE: Enter server URL >
[2018-12-11 17:45:51Z INFO Terminal] READ LINE

All 13 comments

@FerAguilarR93 what's the network between A and B? are they in same domain? Integrate auth only work for machine within trusted domain.

Thank you for your quick reply, the computers are in the same domain I can make a ping and I can access by web tfs site from computer B (where I try to add the agent build)

@FerAguilarR93 do you have proxy in your network? IE will follow the system's proxy setting by default, and the agent won't. The proxy server might did something for the integrate auth.
it might not worth to debug the integrate auth problem, if you want to use PAT to configure the agent.
run set VSS_ALLOW_UNSAFE_BASICAUTH=true before run the ./config.cmd, that will suppress the Basic auth error

I don麓t have a proxy and I tried to use PAT but still doesn't work, this is the output:

PS C:\agent> set VSS_ALLOW_UNSAFE_BASICAUTH=true
PS C:\agent> ./config.cmd

>> Connect:

Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) > PAT
Enter personal access token > *************************************************************
Connecting to server ...
Basic authentication requires a secure connection to the server.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL >

@FerAguilarR93 sorry, your agent version is really old, do you might try grab the latest version here: https://github.com/Microsoft/azure-pipelines-agent/releases/tag/v2.142.1

Thank you for your help, I will try, but when I download de agent there are some stepts to install an configure but I need more documentation about this, can you give me some documentation for configure an agent build please?... and thank you very much.

I tried with the agent v2.142.1 but still doesn麓t work this is the ouput:

PS C:\> cd C:\agent
cd : Cannot find path 'C:\agent' because it does not exist.
At line:1 char:1
+ cd C:\agent
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\agent:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:\> mkdir agent


    Directory: C:\


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        11-Dec-18  12:59 PM                agent


PS C:\> cd C:\agent
PS C:\agent> Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirecto
ry("$HOME\Downloads\vsts-agent-win-x64-2.142.1.zip", "$PWD")
PS C:\agent> set VSS_ALLOW_UNSAFE_BASICAUTH=true
PS C:\agent> ./config.cmd

>> Connect:

Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) >
VS30063: You are not authorized to access http://servertfs:8080.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) > PAT
Enter personal access token > *************************************************************
Basic authentication requires a secure connection to the server.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL >

@FerAguilarR93 since you are in powershell, you need to $env:VSS_ALLOW_UNSAFE_BASICAUTH = "true"

I applied the change but now I receive this message:

PS C:\agent> $env:VSS_ALLOW_UNSAFE_BASICAUTH = "true"
PS C:\agent> ./config.cmd

>> Connect:

Enter server URL > http://servertfs:8080/tfs
Enter authentication type (press enter for Integrated) > PAT
Enter personal access token > *************************************************************
TF400813: Recurso no disponible para el acceso an贸nimo. Se requiere autenticaci贸n del cliente.
Failed to connect.  Try again or ctrl-c to quit

But is so strange because I'm really really sure that in mi IIS Anonymous authentication is enabled https://lh3.googleusercontent.com/-rce5UleK_Mc/XBAMnYT_hUI/AAAAAAAABHI/chSAZlLmjO4xOGOmC62Ke_8P6gOP7XGdQCL0BGAYYCw/h168/2018-12-11.png, the same for TeamFoundationServer https://lh3.googleusercontent.com/-xa4-5RzWvV4/XBAM-A974vI/AAAAAAAABHQ/Wf2vr0WOdm4lx01MviHZNmsxBcdw0kJfACL0BGAYYCw/h241/2018-12-11.png

@FerAguilarR93 when you generate the PAT token, what permission/scope did you give to the token? make sure you give Pool management permission to it.

When I created the token, I gave it read and manage permissions, but I created a new one with all the permissions and now it works, thank you very much for your help

@FerAguilarR93 cool, glad you unblock, you can revoke the PAT token after configuration, the agent won't use it during normal execution.

Was this page helpful?
0 / 5 - 0 ratings