Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFS Build Agent config failing with TF400813: Resource not available for anonymous access. Client authentication required. #1839

Closed
compilenix opened this issue Sep 20, 2018 · 22 comments

Comments

@compilenix
Copy link

commented Sep 20, 2018

Have you tried trouble shooting?

  • Enable Anonymous Authentication in IIS
  • Generate new PAT Tocken (for TFS Administrator Account) with all permissions
  • #1603 did not work

Agent Version and Platform

Agent Version 2.122.2 (as vsts-agent-ubuntu.16.04-x64-2.122.2.tar.gz from https://go.microsoft.com/fwlink/?linkid=867183)
Linux Ubuntu 16.04

VSTS Type and Version

On-Prem TFS 2018 16.122.27409.2 (Tfs2018.Update1)

What's not working?

[2018-09-20 12:11:14Z INFO AgentProcess] Agent is built for Linux - ubuntu.16.04-x64.
[2018-09-20 12:11:14Z INFO AgentProcess] RuntimeInformation: Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018.
[2018-09-20 12:11:14Z INFO AgentProcess] Version: 2.122.2
[2018-09-20 12:11:14Z INFO AgentProcess] Commit: d6dfa262c95d60addb71822e84bfa78e2e601e5e
[2018-09-20 12:11:14Z INFO AgentProcess] Culture: en-US
[2018-09-20 12:11:14Z INFO AgentProcess] UI Culture: en-US
[2018-09-20 12:11:14Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 12:11:14Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 12:11:14Z INFO AgentProcess] Validating directory permissions for: '/home/tfs_build1/build'
[2018-09-20 12:11:14Z INFO CommandLineParser] Parse
[2018-09-20 12:11:14Z INFO CommandLineParser] Parsing 1 args
[2018-09-20 12:11:14Z INFO CommandLineParser] parsing argument
[2018-09-20 12:11:14Z INFO CommandLineParser] HasArgs: False
[2018-09-20 12:11:14Z INFO CommandLineParser] Adding Command: configure
[2018-09-20 12:11:14Z INFO AgentProcess] Arguments parsed
[2018-09-20 12:11:14Z INFO VstsAgentWebProxy] No proxy setting found.
[2018-09-20 12:11:14Z INFO Agent] ExecuteCommand
[2018-09-20 12:11:14Z INFO ConfigurationStore] currentAssemblyLocation: /home/tfs_build1/build/bin/Agent.Listener.dll
[2018-09-20 12:11:14Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 12:11:14Z INFO ConfigurationStore] binPath: /home/tfs_build1/build/bin
[2018-09-20 12:11:14Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 12:11:14Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 12:11:14Z INFO ConfigurationStore] RootFolder: /home/tfs_build1/build
[2018-09-20 12:11:14Z INFO ConfigurationStore] ConfigFilePath: /home/tfs_build1/build/.agent
[2018-09-20 12:11:14Z INFO ConfigurationStore] CredFilePath: /home/tfs_build1/build/.credentials
[2018-09-20 12:11:14Z INFO ConfigurationStore] ServiceConfigFilePath: /home/tfs_build1/build/.service
[2018-09-20 12:11:14Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /home/tfs_build1/build/.autologon
[2018-09-20 12:11:14Z INFO CommandSettings] Flag 'help': 'False'
[2018-09-20 12:11:14Z INFO CommandSettings] Flag 'version': 'False'
[2018-09-20 12:11:14Z INFO CommandSettings] Flag 'commit': 'False'
[2018-09-20 12:11:14Z INFO CommandSettings] Command 'configure': 'True'
[2018-09-20 12:11:14Z INFO ConfigurationManager] ConfigureAsync
[2018-09-20 12:11:14Z INFO ConfigurationStore] IsConfigured()
[2018-09-20 12:11:14Z INFO ConfigurationStore] IsConfigured: False
[2018-09-20 12:11:14Z INFO ConfigurationManager] Is configured: False
[2018-09-20 12:11:14Z INFO Terminal] WRITE LINE: 
[2018-09-20 12:11:14Z INFO Terminal] WRITE LINE: >> End User License Agreements:
[2018-09-20 12:11:14Z INFO Terminal] WRITE LINE: 
[2018-09-20 12:11:14Z INFO Terminal] WRITE LINE: Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/tfs_build1/build/externals/tee/license.html
[2018-09-20 12:11:14Z INFO Terminal] WRITE LINE: 
[2018-09-20 12:11:14Z INFO CommandSettings] Flag 'acceptteeeula': 'False'
[2018-09-20 12:11:14Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:11:14Z INFO PromptManager] ReadValue
[2018-09-20 12:11:14Z INFO Terminal] WRITE: Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > 
[2018-09-20 12:11:14Z INFO Terminal] READ LINE
[2018-09-20 12:11:33Z INFO Terminal] Read value: 'Y'
[2018-09-20 12:11:33Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2018-09-20 12:11:33Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2018-09-20 12:11:33Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2018-09-20 12:11:33Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2018-09-20 12:11:33Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2018-09-20 12:11:33Z INFO Terminal] WRITE LINE: 
[2018-09-20 12:11:33Z INFO Terminal] WRITE LINE: >> Connect:
[2018-09-20 12:11:33Z INFO Terminal] WRITE LINE: 
[2018-09-20 12:11:33Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 12:11:33Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:11:33Z INFO PromptManager] ReadValue
[2018-09-20 12:11:33Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 12:11:33Z INFO Terminal] READ LINE
[2018-09-20 12:12:02Z INFO Terminal] Read value: 'https://tfs.plan.de/tfs'
[2018-09-20 12:12:02Z INFO ConfigurationManager] GetCredentialProvider
[2018-09-20 12:12:02Z INFO CommandSettings] Arg 'auth': ''
[2018-09-20 12:12:02Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:12:02Z INFO PromptManager] ReadValue
[2018-09-20 12:12:02Z INFO Terminal] WRITE: Enter authentication type (press enter for Negotiate) > 
[2018-09-20 12:12:02Z INFO Terminal] READ LINE
[2018-09-20 12:13:42Z INFO Terminal] Read value: 'PAT'
[2018-09-20 12:13:42Z INFO ConfigurationManager] Creating credential for auth: PAT
[2018-09-20 12:13:42Z INFO CredentialManager] GetCredentialProvider
[2018-09-20 12:13:42Z INFO CredentialManager] Creating type PAT
[2018-09-20 12:13:42Z INFO CredentialManager] Creating credential type: PAT
[2018-09-20 12:13:42Z INFO PersonalAccessToken] EnsureCredential
[2018-09-20 12:13:42Z INFO CommandSettings] Arg 'token': ''
[2018-09-20 12:13:42Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:13:42Z INFO PromptManager] ReadValue
[2018-09-20 12:13:42Z INFO Terminal] WRITE: Enter personal access token > 
[2018-09-20 12:13:42Z INFO Terminal] READ SECRET
[2018-09-20 12:13:47Z INFO Terminal] Read value: '********'
[2018-09-20 12:13:47Z INFO PersonalAccessToken] GetVssCredentials
[2018-09-20 12:13:47Z INFO PersonalAccessToken] token retrieved: 52 chars
[2018-09-20 12:13:47Z INFO ConfigurationManager] cred retrieved
[2018-09-20 12:13:47Z INFO Terminal] WRITE LINE: Connecting to server ...
[2018-09-20 12:13:47Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 12:13:47Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d1d2a-6690-4761-88f5-c25407c9138d
X-TFS-Session: bc00bf6d-8e61-468d-ac3d-c7befe90ee87
X-VSS-E2EID: 792ca11a-dc6c-450f-a3b9-8e132e1fb80a
X-FRAME-OPTIONS: SAMEORIGIN
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 12:15:20 GMT

[2018-09-20 12:13:47Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 12:13:47Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: VS30063: You are not authorized to access https://tfs.plan.de.
[2018-09-20 12:13:47Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 12:13:47Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2018-09-20 12:13:47Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://tfs.plan.de.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 12:13:47Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 12:13:47Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d1d29-6690-4761-88f5-c25407c9138d
X-TFS-Session: bc00bf6d-8e61-468d-ac3d-c7befe90ee87
X-VSS-E2EID: 059110d9-d860-464c-a797-69c0c8edda02
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 12:15:20 GMT

... snipped three retries ...

[2018-09-20 12:13:48Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 12:13:48Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-20 12:13:48Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 12:13:48Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:13:48Z ERR  Terminal] WRITE ERROR (exception):
[2018-09-20 12:13:48Z ERR  Terminal] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>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.<TestConnectionAsync>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.<ConfigureAsync>d__6.MoveNext()
[2018-09-20 12:13:48Z ERR  Terminal] WRITE ERROR: Failed to connect.  Try again or ctrl-c to quit
[2018-09-20 12:13:48Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 12:13:48Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 12:13:48Z INFO PromptManager] ReadValue
[2018-09-20 12:13:48Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 12:13:48Z INFO Terminal] READ LINE
[2018-09-20 12:13:49Z INFO Terminal] WRITE LINE: Exiting...
@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

@compilenix can you check your TFS AT's event log? it might give you more information about why your PAT not working.

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

@TingluoHuang Do you mean the Windows Event Log on the TFS Server?

I've checked that and found nothing which could be related to this.

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

@compilenix make sure you check the TFS/Debug log in event log.
image

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

There are the following messages:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:18.751957500Z" /> 
  <EventRecordID>1358431</EventRecordID> 
  <Correlation ActivityID="{85A88542-9781-484A-8102-33D1AD49BAFB}" /> 
  <Execution ProcessID="4832" ThreadID="4048" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</HostId> 
  <ContextId>0</ContextId> 
  <Application>Ssh</Application> 
  <Command>EldosSshSession.SSHServer_OnAuthPublicKey</Command> 
  <Status>0</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:17.345455700Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>85</ExecutionTime> 
  <TimeToFirstPage>85</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{000007F5-0000-8888-8000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>::ffff:10.16.157.59</IPAddress> 
  <UniqueIdentifier>{BBCBA7DA-FDD2-4B35-AB37-9AD63E8B144B}</UniqueIdentifier> 
  <UserAgent>OpenSSH_7.7</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType /> 
  <ExceptionMessage /> 
  <ActivityId>{BBCBA7DA-FDD2-4B35-AB37-9AD63E8B144B}</ActivityId> 
  <ResponseCode>0</ResponseCode> 
  <AuthenticationMechanism /> 
  <ActivityStatus>0</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{BBCBA7DA-FDD2-4B35-AB37-9AD63E8B144B}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>SSH</Feature> 
  <HostStartTime>2018-08-18T10:45:41.657000000Z</HostStartTime> 
  <HostType>1</HostType> 
  <ParentHostId>{00000000-0000-0000-0000-000000000000}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>0</SqlExecutionTime> 
  <SqlExecutionCount>0</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>157494</CPUCycles> 
  <FinalSqlCommandExecutionTime>0</FinalSqlCommandExecutionTime> 
  <E2EID>{BBCBA7DA-FDD2-4B35-AB37-9AD63E8B144B}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>-1179229108</ApplicationHash> 
  <CommandHash>1603915984</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:18.751965300Z" /> 
  <EventRecordID>1358432</EventRecordID> 
  <Correlation ActivityID="{85A88542-9781-484A-8102-33D1AD49BAFB}" /> 
  <Execution ProcessID="4832" ThreadID="4048" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</HostId> 
  <ContextId>0</ContextId> 
  <Application>Ssh</Application> 
  <Command>SshSessionManager.AcceptSocket</Command> 
  <Status>0</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:17.236111400Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>1175</ExecutionTime> 
  <TimeToFirstPage>1175</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{000007F5-0000-8888-8000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress /> 
  <UniqueIdentifier>{BBCBA7C2-FDD2-4B35-AB37-9AD63E8B144B}</UniqueIdentifier> 
  <UserAgent /> 
  <CommandIdentifier /> 
  <ExceptionType /> 
  <ExceptionMessage /> 
  <ActivityId>{BBCBA7C2-FDD2-4B35-AB37-9AD63E8B144B}</ActivityId> 
  <ResponseCode>0</ResponseCode> 
  <AuthenticationMechanism /> 
  <ActivityStatus>0</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{BBCBA7C2-FDD2-4B35-AB37-9AD63E8B144B}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>SSH</Feature> 
  <HostStartTime>2018-08-18T10:45:41.657000000Z</HostStartTime> 
  <HostType>1</HostType> 
  <ParentHostId>{00000000-0000-0000-0000-000000000000}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>0</SqlExecutionTime> 
  <SqlExecutionCount>0</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>3392115</CPUCycles> 
  <FinalSqlCommandExecutionTime>0</FinalSqlCommandExecutionTime> 
  <E2EID>{BBCBA7C2-FDD2-4B35-AB37-9AD63E8B144B}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>-1179229108</ApplicationHash> 
  <CommandHash>-40137842</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:23.455095500Z" /> 
  <EventRecordID>1358433</EventRecordID> 
  <Correlation ActivityID="{01AB197F-A3F3-4E43-BB7E-A2F05AB168DF}" /> 
  <Execution ProcessID="4832" ThreadID="5228" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{0E2EC7AB-2006-413B-823E-E26874EE7EA3}</HostId> 
  <ContextId>0</ContextId> 
  <Application>Ssh</Application> 
  <Command>git-upload-pack</Command> 
  <Status>0</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:17.470475800Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>37242</ExecutionTime> 
  <TimeToFirstPage>37242</TimeToFirstPage> 
  <IdentityName>DOMAIN\MyUserName</IdentityName> 
  <VSID>{7F3B8F14-A5B3-4C5A-BD98-3395DF2C479A}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>::ffff:10.16.157.59</IPAddress> 
  <UniqueIdentifier>{BBCBA7EF-FDD2-4B35-AB37-9AD63E8B144B}</UniqueIdentifier> 
  <UserAgent>OpenSSH_7.7</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType /> 
  <ExceptionMessage /> 
  <ActivityId>{BBCBA7EF-FDD2-4B35-AB37-9AD63E8B144B}</ActivityId> 
  <ResponseCode>0</ResponseCode> 
  <AuthenticationMechanism>SSH</AuthenticationMechanism> 
  <ActivityStatus>0</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{BBCBA7EF-FDD2-4B35-AB37-9AD63E8B144B}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>SSH</Feature> 
  <HostStartTime>2018-08-18T12:26:32.262575400Z</HostStartTime> 
  <HostType>4</HostType> 
  <ParentHostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>7</SqlExecutionTime> 
  <SqlExecutionCount>5</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>18075759</CPUCycles> 
  <FinalSqlCommandExecutionTime>7</FinalSqlCommandExecutionTime> 
  <E2EID>{BBCBA7EF-FDD2-4B35-AB37-9AD63E8B144B}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>-1179229108</ApplicationHash> 
  <CommandHash>232487318</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:23.455102400Z" /> 
  <EventRecordID>1358434</EventRecordID> 
  <Correlation ActivityID="{01AB197F-A3F3-4E43-BB7E-A2F05AB168DF}" /> 
  <Execution ProcessID="4832" ThreadID="5228" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{0E2EC7AB-2006-413B-823E-E26874EE7EA3}</HostId> 
  <ContextId>0</ContextId> 
  <Application>Ssh</Application> 
  <Command>EldosSshSession.IsPublicKeyValid</Command> 
  <Status>0</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:17.454847900Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>8684</ExecutionTime> 
  <TimeToFirstPage>8684</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{000007F5-0000-8888-8000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>::ffff:10.16.157.59</IPAddress> 
  <UniqueIdentifier>{BBCBA7DD-FDD2-4B35-AB37-9AD63E8B144B}</UniqueIdentifier> 
  <UserAgent>OpenSSH_7.7</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType /> 
  <ExceptionMessage /> 
  <ActivityId>{BBCBA7DD-FDD2-4B35-AB37-9AD63E8B144B}</ActivityId> 
  <ResponseCode>0</ResponseCode> 
  <AuthenticationMechanism>SSH</AuthenticationMechanism> 
  <ActivityStatus>0</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{BBCBA7DD-FDD2-4B35-AB37-9AD63E8B144B}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>Unknown</Feature> 
  <HostStartTime>2018-08-18T12:26:32.262575400Z</HostStartTime> 
  <HostType>4</HostType> 
  <ParentHostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>4</SqlExecutionTime> 
  <SqlExecutionCount>2</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>12061596</CPUCycles> 
  <FinalSqlCommandExecutionTime>4</FinalSqlCommandExecutionTime> 
  <E2EID>{BBCBA7DD-FDD2-4B35-AB37-9AD63E8B144B}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>-1179229108</ApplicationHash> 
  <CommandHash>1538242531</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:26.142668600Z" /> 
  <EventRecordID>1358435</EventRecordID> 
  <Correlation ActivityID="{EBB77B3D-54C4-4FBB-9516-CA15F8BE88CF}" /> 
  <Execution ProcessID="3728" ThreadID="4812" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</HostId> 
  <ContextId>0</ContextId> 
  <Application /> 
  <Command>Module_EndRequest_NoAssociatedMethod</Command> 
  <Status>-1</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:26.001736000Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>2939</ExecutionTime> 
  <TimeToFirstPage>2939</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{00000000-0000-0000-0000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>10.232.69.35</IPAddress> 
  <UniqueIdentifier>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</UniqueIdentifier> 
  <UserAgent>VSServices/15.123.26901.0 (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018) VstsAgentCore-ubuntu.16.04-x64/2.122.2 (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType>UnauthorizedRequestException</ExceptionType> 
  <ExceptionMessage>TF400813: Resource not available for anonymous access. Client authentication required.</ExceptionMessage> 
  <ActivityId>{9D8D0249-6690-4761-88F5-C25407C9138D}</ActivityId> 
  <ResponseCode>401</ResponseCode> 
  <AuthenticationMechanism /> 
  <ActivityStatus>1</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>Unknown</Feature> 
  <HostStartTime>2018-08-18T10:43:46.623000000Z</HostStartTime> 
  <HostType>1</HostType> 
  <ParentHostId>{00000000-0000-0000-0000-000000000000}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>0</SqlExecutionTime> 
  <SqlExecutionCount>0</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>144090</CPUCycles> 
  <FinalSqlCommandExecutionTime>0</FinalSqlCommandExecutionTime> 
  <E2EID>{DD233FDF-2C38-446E-BA85-BE2AA424B1AF}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>371857150</ApplicationHash> 
  <CommandHash>1494298818</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:26.142676100Z" /> 
  <EventRecordID>1358436</EventRecordID> 
  <Correlation ActivityID="{EBB77B3D-54C4-4FBB-9516-CA15F8BE88CF}" /> 
  <Execution ProcessID="3728" ThreadID="4812" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</HostId> 
  <ContextId>0</ContextId> 
  <Application /> 
  <Command>Module_EndRequest_NoAssociatedMethod</Command> 
  <Status>-1</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:25.892368400Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>4214</ExecutionTime> 
  <TimeToFirstPage>4214</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{00000000-0000-0000-0000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>10.232.69.35</IPAddress> 
  <UniqueIdentifier>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</UniqueIdentifier> 
  <UserAgent>VSServices/15.123.26901.0 (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018) VstsAgentCore-ubuntu.16.04-x64/2.122.2 (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType>UnauthorizedRequestException</ExceptionType> 
  <ExceptionMessage>TF400813: Resource not available for anonymous access. Client authentication required.</ExceptionMessage> 
  <ActivityId>{9D8D024A-6690-4761-88F5-C25407C9138D}</ActivityId> 
  <ResponseCode>401</ResponseCode> 
  <AuthenticationMechanism /> 
  <ActivityStatus>1</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>Unknown</Feature> 
  <HostStartTime>2018-08-18T10:43:46.623000000Z</HostStartTime> 
  <HostType>1</HostType> 
  <ParentHostId>{00000000-0000-0000-0000-000000000000}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>0</SqlExecutionTime> 
  <SqlExecutionCount>0</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>169827</CPUCycles> 
  <FinalSqlCommandExecutionTime>0</FinalSqlCommandExecutionTime> 
  <E2EID>{13DEBA43-EBE1-4774-9351-28F3BC86EFA5}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>371857150</ApplicationHash> 
  <CommandHash>1494298818</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
  <EventID>6</EventID> 
  <Version>24</Version> 
  <Level>4</Level> 
  <Task>1</Task> 
  <Opcode>10</Opcode> 
  <Keywords>0x8000000000000001</Keywords> 
  <TimeCreated SystemTime="2018-09-20T13:59:26.142679600Z" /> 
  <EventRecordID>1358437</EventRecordID> 
  <Correlation ActivityID="{EBB77B3D-54C4-4FBB-9516-CA15F8BE88CF}" /> 
  <Execution ProcessID="3728" ThreadID="4812" /> 
  <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
  <Computer>EMDEHAMAPP017.plan.de</Computer> 
  <Security UserID="S-1-5-21-XXX" /> 
  </System>
- <UserData>
- <ActivityLog xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
  <HostId>{60FAD59E-8990-4DAB-8693-241C4E0BA5F9}</HostId> 
  <ContextId>0</ContextId> 
  <Application /> 
  <Command>Module_EndRequest_NoAssociatedMethod</Command> 
  <Status>-1</Status> 
  <ExecutionCount>1</ExecutionCount> 
  <StartTime>2018-09-20T13:59:25.782998400Z</StartTime> 
  <DelayTime>0</DelayTime> 
  <QueueTime>0</QueueTime> 
  <ExecutionTime>2863</ExecutionTime> 
  <TimeToFirstPage>2863</TimeToFirstPage> 
  <IdentityName /> 
  <VSID>{00000000-0000-0000-0000-000000000000}</VSID> 
  <CUID>{00000000-0000-0000-0000-000000000000}</CUID> 
  <TenantId>{00000000-0000-0000-0000-000000000000}</TenantId> 
  <ProviderId>{00000000-0000-0000-0000-000000000000}</ProviderId> 
  <IPAddress>10.232.69.35</IPAddress> 
  <UniqueIdentifier>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</UniqueIdentifier> 
  <UserAgent>VSServices/15.123.26901.0 (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018) VstsAgentCore-ubuntu.16.04-x64/2.122.2 (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)</UserAgent> 
  <CommandIdentifier /> 
  <ExceptionType>UnauthorizedRequestException</ExceptionType> 
  <ExceptionMessage>TF400813: Resource not available for anonymous access. Client authentication required.</ExceptionMessage> 
  <ActivityId>{9D8D024B-6690-4761-88F5-C25407C9138D}</ActivityId> 
  <ResponseCode>401</ResponseCode> 
  <AuthenticationMechanism /> 
  <ActivityStatus>1</ActivityStatus> 
  <ExecutionTimeThreshold>10000000</ExecutionTimeThreshold> 
  <IsExceptionExpected>false</IsExceptionExpected> 
  <RelatedActivityId>{34EF3461-EBE6-4D25-ACF8-0AD61540A93F}</RelatedActivityId> 
  <LogicalReads>0</LogicalReads> 
  <PhysicalReads>0</PhysicalReads> 
  <CPUTime>0</CPUTime> 
  <ElapsedTime>0</ElapsedTime> 
  <Feature>Unknown</Feature> 
  <HostStartTime>2018-08-18T10:43:46.623000000Z</HostStartTime> 
  <HostType>1</HostType> 
  <ParentHostId>{00000000-0000-0000-0000-000000000000}</ParentHostId> 
  <AnonymousIdentifier /> 
  <SqlExecutionTime>0</SqlExecutionTime> 
  <SqlExecutionCount>0</SqlExecutionCount> 
  <RedisExecutionTime>0</RedisExecutionTime> 
  <RedisExecutionCount>0</RedisExecutionCount> 
  <AadExecutionTime>0</AadExecutionTime> 
  <AadExecutionCount>0</AadExecutionCount> 
  <AadGraphExecutionTime>0</AadGraphExecutionTime> 
  <AadGraphExecutionCount>0</AadGraphExecutionCount> 
  <AadTokenExecutionTime>0</AadTokenExecutionTime> 
  <AadTokenExecutionCount>0</AadTokenExecutionCount> 
  <BlobStorageExecutionTime>0</BlobStorageExecutionTime> 
  <BlobStorageExecutionCount>0</BlobStorageExecutionCount> 
  <TableStorageExecutionTime>0</TableStorageExecutionTime> 
  <TableStorageExecutionCount>0</TableStorageExecutionCount> 
  <ServiceBusExecutionTime>0</ServiceBusExecutionTime> 
  <ServiceBusExecutionCount>0</ServiceBusExecutionCount> 
  <VssClientExecutionTime>0</VssClientExecutionTime> 
  <VssClientExecutionCount>0</VssClientExecutionCount> 
  <SqlRetryExecutionTime>0</SqlRetryExecutionTime> 
  <SqlRetryExecutionCount>0</SqlRetryExecutionCount> 
  <SqlReadOnlyExecutionTime>0</SqlReadOnlyExecutionTime> 
  <SqlReadOnlyExecutionCount>0</SqlReadOnlyExecutionCount> 
  <CPUCycles>118101</CPUCycles> 
  <FinalSqlCommandExecutionTime>0</FinalSqlCommandExecutionTime> 
  <E2EID>{82ACF9CC-6DE2-42DD-812F-BC04C0E73CD0}</E2EID> 
  <PersistentSessionId>{00000000-0000-0000-0000-000000000000}</PersistentSessionId> 
  <PendingAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</PendingAuthenticationSessionId> 
  <CurrentAuthenticationSessionId>{00000000-0000-0000-0000-000000000000}</CurrentAuthenticationSessionId> 
  <ApplicationHash>371857150</ApplicationHash> 
  <CommandHash>1494298818</CommandHash> 
  <TSTUs>0</TSTUs> 
  </ActivityLog>
  </UserData>
  </Event>
@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

@compilenix do you have any proxy server inside your network?
try use different auth type, like Negotiate instead of PAT

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

No Proxy or Firewall between the two systems, they are within the same subnet.
Negotiate Does not work, too.

tfs_build1@EMDEHAMTFSAGENT1:~/build$ ./config.sh

>> End User License Agreements:

Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at: /home/tfs_build1/build/externals/tee/license.html

Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > Y

>> Connect:

Enter server URL > https://tfs.plan.de/tfs
Enter authentication type (press enter for Negotiate) >
Enter user name > KWeis.Adm
Enter password > ********
Connecting to server ...
Page not found.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL > Exiting...

and the diag log:

[2018-09-20 17:00:27Z INFO AgentProcess] Agent is built for Linux - ubuntu.16.04-x64.
[2018-09-20 17:00:27Z INFO AgentProcess] RuntimeInformation: Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018.
[2018-09-20 17:00:27Z INFO AgentProcess] Version: 2.122.2
[2018-09-20 17:00:27Z INFO AgentProcess] Commit: d6dfa262c95d60addb71822e84bfa78e2e601e5e
[2018-09-20 17:00:27Z INFO AgentProcess] Culture: en-US
[2018-09-20 17:00:27Z INFO AgentProcess] UI Culture: en-US
[2018-09-20 17:00:27Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:00:27Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 17:00:27Z INFO AgentProcess] Validating directory permissions for: '/home/tfs_build1/build'
[2018-09-20 17:00:27Z INFO CommandLineParser] Parse
[2018-09-20 17:00:27Z INFO CommandLineParser] Parsing 1 args
[2018-09-20 17:00:27Z INFO CommandLineParser] parsing argument
[2018-09-20 17:00:27Z INFO CommandLineParser] HasArgs: False
[2018-09-20 17:00:27Z INFO CommandLineParser] Adding Command: configure
[2018-09-20 17:00:27Z INFO AgentProcess] Arguments parsed
[2018-09-20 17:00:27Z INFO VstsAgentWebProxy] No proxy setting found.
[2018-09-20 17:00:27Z INFO Agent] ExecuteCommand
[2018-09-20 17:00:27Z INFO ConfigurationStore] currentAssemblyLocation: /home/tfs_build1/build/bin/Agent.Listener.dll
[2018-09-20 17:00:27Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:00:27Z INFO ConfigurationStore] binPath: /home/tfs_build1/build/bin
[2018-09-20 17:00:27Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:00:27Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 17:00:27Z INFO ConfigurationStore] RootFolder: /home/tfs_build1/build
[2018-09-20 17:00:27Z INFO ConfigurationStore] ConfigFilePath: /home/tfs_build1/build/.agent
[2018-09-20 17:00:27Z INFO ConfigurationStore] CredFilePath: /home/tfs_build1/build/.credentials
[2018-09-20 17:00:27Z INFO ConfigurationStore] ServiceConfigFilePath: /home/tfs_build1/build/.service
[2018-09-20 17:00:27Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /home/tfs_build1/build/.autologon
[2018-09-20 17:00:27Z INFO CommandSettings] Flag 'help': 'False'
[2018-09-20 17:00:27Z INFO CommandSettings] Flag 'version': 'False'
[2018-09-20 17:00:27Z INFO CommandSettings] Flag 'commit': 'False'
[2018-09-20 17:00:27Z INFO CommandSettings] Command 'configure': 'True'
[2018-09-20 17:00:27Z INFO ConfigurationManager] ConfigureAsync
[2018-09-20 17:00:27Z INFO ConfigurationStore] IsConfigured()
[2018-09-20 17:00:27Z INFO ConfigurationStore] IsConfigured: False
[2018-09-20 17:00:27Z INFO ConfigurationManager] Is configured: False
[2018-09-20 17:00:27Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:00:27Z INFO Terminal] WRITE LINE: >> End User License Agreements:
[2018-09-20 17:00:27Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:00:27Z INFO Terminal] WRITE LINE: Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/tfs_build1/build/externals/tee/license.html
[2018-09-20 17:00:27Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:00:27Z INFO CommandSettings] Flag 'acceptteeeula': 'False'
[2018-09-20 17:00:27Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:27Z INFO PromptManager] ReadValue
[2018-09-20 17:00:27Z INFO Terminal] WRITE: Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > 
[2018-09-20 17:00:27Z INFO Terminal] READ LINE
[2018-09-20 17:00:29Z INFO Terminal] Read value: 'Y'
[2018-09-20 17:00:29Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2018-09-20 17:00:29Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2018-09-20 17:00:29Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2018-09-20 17:00:29Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2018-09-20 17:00:29Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2018-09-20 17:00:29Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:00:29Z INFO Terminal] WRITE LINE: >> Connect:
[2018-09-20 17:00:29Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:00:29Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 17:00:29Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:29Z INFO PromptManager] ReadValue
[2018-09-20 17:00:29Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 17:00:29Z INFO Terminal] READ LINE
[2018-09-20 17:00:32Z INFO Terminal] Read value: 'https://tfs.plan.de/tfs'
[2018-09-20 17:00:32Z INFO ConfigurationManager] GetCredentialProvider
[2018-09-20 17:00:32Z INFO CommandSettings] Arg 'auth': ''
[2018-09-20 17:00:32Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:32Z INFO PromptManager] ReadValue
[2018-09-20 17:00:32Z INFO Terminal] WRITE: Enter authentication type (press enter for Negotiate) > 
[2018-09-20 17:00:32Z INFO Terminal] READ LINE
[2018-09-20 17:00:33Z INFO Terminal] Read value: ''
[2018-09-20 17:00:33Z INFO PromptManager] Falling back to the default: 'Negotiate'
[2018-09-20 17:00:33Z INFO ConfigurationManager] Creating credential for auth: Negotiate
[2018-09-20 17:00:33Z INFO CredentialManager] GetCredentialProvider
[2018-09-20 17:00:33Z INFO CredentialManager] Creating type Negotiate
[2018-09-20 17:00:33Z INFO CredentialManager] Creating credential type: Negotiate
[2018-09-20 17:00:33Z INFO PersonalAccessToken] EnsureCredential
[2018-09-20 17:00:33Z INFO CommandSettings] Arg 'username': ''
[2018-09-20 17:00:33Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:33Z INFO PromptManager] ReadValue
[2018-09-20 17:00:33Z INFO Terminal] WRITE: Enter user name > 
[2018-09-20 17:00:33Z INFO Terminal] READ LINE
[2018-09-20 17:00:46Z INFO Terminal] Read value: 'DOMAIN\MyUserName'
[2018-09-20 17:00:46Z INFO CommandSettings] Arg 'password': ''
[2018-09-20 17:00:46Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:46Z INFO PromptManager] ReadValue
[2018-09-20 17:00:46Z INFO Terminal] WRITE: Enter password > 
[2018-09-20 17:00:46Z INFO Terminal] READ SECRET
[2018-09-20 17:00:49Z INFO Terminal] Read value: '********'
[2018-09-20 17:00:49Z INFO NegotiateCredential] GetVssCredentials
[2018-09-20 17:00:49Z INFO NegotiateCredential] User name retrieved.
[2018-09-20 17:00:49Z INFO NegotiateCredential] Password retrieved.
[2018-09-20 17:00:49Z INFO NegotiateCredential] URL retrieved: https://tfs.plan.de/tfs
[2018-09-20 17:00:49Z INFO ConfigurationManager] cred retrieved
[2018-09-20 17:00:49Z INFO Terminal] WRITE LINE: Connecting to server ...
[2018-09-20 17:00:49Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:00:50Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d73ee-6690-4761-88f5-c25407c9138d
X-TFS-Session: 72093098-9424-4048-833d-66fa8f041c54
X-VSS-E2EID: ef6de427-70b5-4712-91dc-9bb7d0ecdcec
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:00:50 GMT

[2018-09-20 17:00:50Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. HTTP Status: NotFound
[2018-09-20 17:00:50Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:00:50Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2018-09-20 17:00:50Z ERR  AgentServer] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Page not found.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__51.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.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:00:50Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:00:50Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. HTTP Status: NotFound
[2018-09-20 17:00:50Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:00:50Z INFO AgentServer] Catch exception during connect. 3 attemp left.
[2018-09-20 17:00:50Z ERR  AgentServer] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Page not found.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__51.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.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:00:50Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:00:50Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. HTTP Status: NotFound
[2018-09-20 17:00:50Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:00:50Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2018-09-20 17:00:50Z ERR  AgentServer] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Page not found.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__51.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.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:00:50Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:00:50Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. HTTP Status: NotFound
[2018-09-20 17:00:50Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:00:50Z INFO AgentServer] Catch exception during connect. 1 attemp left.
[2018-09-20 17:00:50Z ERR  AgentServer] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Page not found.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__51.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.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:00:50Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:00:50Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. HTTP Status: NotFound
[2018-09-20 17:00:50Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:00:50Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:50Z ERR  Terminal] WRITE ERROR (exception):
[2018-09-20 17:00:50Z ERR  Terminal] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Page not found.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__51.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.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>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.<TestConnectionAsync>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.<ConfigureAsync>d__6.MoveNext()
[2018-09-20 17:00:50Z ERR  Terminal] WRITE ERROR: Failed to connect.  Try again or ctrl-c to quit
[2018-09-20 17:00:50Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 17:00:50Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:00:50Z INFO PromptManager] ReadValue
[2018-09-20 17:00:50Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 17:00:50Z INFO Terminal] READ LINE
[2018-09-20 17:00:57Z INFO Terminal] WRITE LINE: Exiting...
@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

with Negotiate looks like you are hitting http 404 instead of 401, can you try hit https://tfs.plan.de/tfs/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 in browser see whether you can get a valid JSON back?

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

Correct i get a 404 with the browser, too.

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

@compilenix what's your TFS url looks like? a url you use to access your TFS side that actually shows something. :)

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

The normal web IU is at https://tfs.plan.de/ (not accessible via the internet) and works just fine (web ui, git clone, push, pull etc.).
And according to the documentation i should use this url. (https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=vsts)

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

\o/

I just had to remove the /tfs suffix. Now it works using Negotiate (https://tfs.plan.de/).

PAT is still not working with the same error.
@TingluoHuang Do you have an other idea what i can do about PAT's?

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

can you paste the latest log when using PAT?

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

[2018-09-20 17:28:36Z INFO AgentProcess] Agent is built for Linux - ubuntu.16.04-x64.
[2018-09-20 17:28:36Z INFO AgentProcess] RuntimeInformation: Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018.
[2018-09-20 17:28:37Z INFO AgentProcess] Version: 2.122.2
[2018-09-20 17:28:37Z INFO AgentProcess] Commit: d6dfa262c95d60addb71822e84bfa78e2e601e5e
[2018-09-20 17:28:37Z INFO AgentProcess] Culture: en-US
[2018-09-20 17:28:37Z INFO AgentProcess] UI Culture: en-US
[2018-09-20 17:28:37Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:28:37Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 17:28:37Z INFO AgentProcess] Validating directory permissions for: '/home/tfs_build1/build'
[2018-09-20 17:28:37Z INFO CommandLineParser] Parse
[2018-09-20 17:28:37Z INFO CommandLineParser] Parsing 1 args
[2018-09-20 17:28:37Z INFO CommandLineParser] parsing argument
[2018-09-20 17:28:37Z INFO CommandLineParser] HasArgs: False
[2018-09-20 17:28:37Z INFO CommandLineParser] Adding Command: configure
[2018-09-20 17:28:37Z INFO AgentProcess] Arguments parsed
[2018-09-20 17:28:37Z INFO VstsAgentWebProxy] No proxy setting found.
[2018-09-20 17:28:37Z INFO Agent] ExecuteCommand
[2018-09-20 17:28:37Z INFO ConfigurationStore] currentAssemblyLocation: /home/tfs_build1/build/bin/Agent.Listener.dll
[2018-09-20 17:28:37Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:28:37Z INFO ConfigurationStore] binPath: /home/tfs_build1/build/bin
[2018-09-20 17:28:37Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-20 17:28:37Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-20 17:28:37Z INFO ConfigurationStore] RootFolder: /home/tfs_build1/build
[2018-09-20 17:28:37Z INFO ConfigurationStore] ConfigFilePath: /home/tfs_build1/build/.agent
[2018-09-20 17:28:37Z INFO ConfigurationStore] CredFilePath: /home/tfs_build1/build/.credentials
[2018-09-20 17:28:37Z INFO ConfigurationStore] ServiceConfigFilePath: /home/tfs_build1/build/.service
[2018-09-20 17:28:37Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /home/tfs_build1/build/.autologon
[2018-09-20 17:28:37Z INFO CommandSettings] Flag 'help': 'False'
[2018-09-20 17:28:37Z INFO CommandSettings] Flag 'version': 'False'
[2018-09-20 17:28:37Z INFO CommandSettings] Flag 'commit': 'False'
[2018-09-20 17:28:37Z INFO CommandSettings] Command 'configure': 'True'
[2018-09-20 17:28:37Z INFO ConfigurationManager] ConfigureAsync
[2018-09-20 17:28:37Z INFO ConfigurationStore] IsConfigured()
[2018-09-20 17:28:37Z INFO ConfigurationStore] IsConfigured: False
[2018-09-20 17:28:37Z INFO ConfigurationManager] Is configured: False
[2018-09-20 17:28:37Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:28:37Z INFO Terminal] WRITE LINE: >> End User License Agreements:
[2018-09-20 17:28:37Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:28:37Z INFO Terminal] WRITE LINE: Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/tfs_build1/build/externals/tee/license.html
[2018-09-20 17:28:37Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:28:37Z INFO CommandSettings] Flag 'acceptteeeula': 'False'
[2018-09-20 17:28:37Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:28:37Z INFO PromptManager] ReadValue
[2018-09-20 17:28:37Z INFO Terminal] WRITE: Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > 
[2018-09-20 17:28:37Z INFO Terminal] READ LINE
[2018-09-20 17:28:40Z INFO Terminal] Read value: 'Y'
[2018-09-20 17:28:40Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2018-09-20 17:28:40Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2018-09-20 17:28:40Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2018-09-20 17:28:40Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2018-09-20 17:28:40Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2018-09-20 17:28:40Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:28:40Z INFO Terminal] WRITE LINE: >> Connect:
[2018-09-20 17:28:40Z INFO Terminal] WRITE LINE: 
[2018-09-20 17:28:40Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 17:28:40Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:28:40Z INFO PromptManager] ReadValue
[2018-09-20 17:28:40Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 17:28:40Z INFO Terminal] READ LINE
[2018-09-20 17:28:46Z INFO Terminal] Read value: 'https://tfs.plan.de/'
[2018-09-20 17:28:46Z INFO ConfigurationManager] GetCredentialProvider
[2018-09-20 17:28:46Z INFO CommandSettings] Arg 'auth': ''
[2018-09-20 17:28:46Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:28:46Z INFO PromptManager] ReadValue
[2018-09-20 17:28:46Z INFO Terminal] WRITE: Enter authentication type (press enter for Negotiate) > 
[2018-09-20 17:28:46Z INFO Terminal] READ LINE
[2018-09-20 17:28:48Z INFO Terminal] Read value: 'PAT'
[2018-09-20 17:28:48Z INFO ConfigurationManager] Creating credential for auth: PAT
[2018-09-20 17:28:48Z INFO CredentialManager] GetCredentialProvider
[2018-09-20 17:28:48Z INFO CredentialManager] Creating type PAT
[2018-09-20 17:28:48Z INFO CredentialManager] Creating credential type: PAT
[2018-09-20 17:28:48Z INFO PersonalAccessToken] EnsureCredential
[2018-09-20 17:28:48Z INFO CommandSettings] Arg 'token': ''
[2018-09-20 17:28:48Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:28:48Z INFO PromptManager] ReadValue
[2018-09-20 17:28:48Z INFO Terminal] WRITE: Enter personal access token > 
[2018-09-20 17:28:49Z INFO Terminal] READ SECRET
[2018-09-20 17:30:09Z INFO Terminal] Read value: '********'
[2018-09-20 17:30:09Z INFO PersonalAccessToken] GetVssCredentials
[2018-09-20 17:30:09Z INFO PersonalAccessToken] token retrieved: 52 chars
[2018-09-20 17:30:09Z INFO ConfigurationManager] cred retrieved
[2018-09-20 17:30:09Z INFO Terminal] WRITE LINE: Connecting to server ...
[2018-09-20 17:30:09Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:30:09Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d75d1-6690-4761-88f5-c25407c9138d
X-TFS-Session: 9c7391cc-91e0-43bd-86f5-aa3b0671dc7e
X-VSS-E2EID: 79de1b76-f635-4b28-89b2-bf015e70df9b
X-FRAME-OPTIONS: SAMEORIGIN
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:30:09 GMT

[2018-09-20 17:30:09Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 17:30:09Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: VS30063: You are not authorized to access https://tfs.plan.de.
[2018-09-20 17:30:09Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:30:09Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2018-09-20 17:30:09Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://tfs.plan.de.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:30:09Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:30:09Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d75d0-6690-4761-88f5-c25407c9138d
X-TFS-Session: 9c7391cc-91e0-43bd-86f5-aa3b0671dc7e
X-VSS-E2EID: 223cb45f-6bd4-410d-9569-541ebfce86ba
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:30:09 GMT

[2018-09-20 17:30:09Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 17:30:09Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-20 17:30:09Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:30:09Z INFO AgentServer] Catch exception during connect. 3 attemp left.
[2018-09-20 17:30:09Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:30:09Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:30:09Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d75d7-6690-4761-88f5-c25407c9138d
X-TFS-Session: 9c7391cc-91e0-43bd-86f5-aa3b0671dc7e
X-VSS-E2EID: 2395192d-a260-4857-9d45-1b4cd206d14c
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:30:09 GMT

[2018-09-20 17:30:09Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 17:30:09Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-20 17:30:09Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:30:09Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2018-09-20 17:30:09Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:30:09Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:30:09Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d75d6-6690-4761-88f5-c25407c9138d
X-TFS-Session: 9c7391cc-91e0-43bd-86f5-aa3b0671dc7e
X-VSS-E2EID: a892eedb-1f4e-4b73-b2d3-5f5dff4a4688
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:30:09 GMT

[2018-09-20 17:30:09Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 17:30:09Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-20 17:30:09Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:30:09Z INFO AgentServer] Catch exception during connect. 1 attemp left.
[2018-09-20 17:30:09Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-20 17:30:09Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-20 17:30:09Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 25d01a75-5f28-4d5d-9325-b0f220865734
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 9d8d75d5-6690-4761-88f5-c25407c9138d
X-TFS-Session: 9c7391cc-91e0-43bd-86f5-aa3b0671dc7e
X-VSS-E2EID: bfcf11e9-1fb2-43ef-824f-92fdd7eeba92
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="tfs.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Thu, 20 Sep 2018 17:30:09 GMT

[2018-09-20 17:30:09Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-20 17:30:09Z ERR  VisualStudioServices] GET request to https://tfs.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-20 17:30:09Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-20 17:30:09Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:30:09Z ERR  Terminal] WRITE ERROR (exception):
[2018-09-20 17:30:09Z ERR  Terminal] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>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.<TestConnectionAsync>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.<ConfigureAsync>d__6.MoveNext()
[2018-09-20 17:30:09Z ERR  Terminal] WRITE ERROR: Failed to connect.  Try again or ctrl-c to quit
[2018-09-20 17:30:09Z INFO CommandSettings] Arg 'url': ''
[2018-09-20 17:30:09Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-20 17:30:09Z INFO PromptManager] ReadValue
[2018-09-20 17:30:09Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-20 17:30:09Z INFO Terminal] READ LINE
[2018-09-20 17:30:10Z INFO Terminal] WRITE LINE: Exiting...
@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

The PAT is for a TFS Administrator account with full access, i've generated a new PAT for this test.

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

@compilenix is https://tfs.plan.de the AT machine or that's a load balancer?

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

There is no loadbalancer or anything else between the client (agent to deploy) and the tfs server.

It's just TFS 2018 on a Windows Server 2016 powered by IIS 10

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

have you try configure against EMDEHAMAPP017.plan.de?
you can also try to collect Http trace from the agent see whether the agent put the AUTH header on the request.
https://docs.microsoft.com/en-us/azure/devops/pipelines/troubleshooting?view=vsts#http-trace-logs

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 20, 2018

I'll try this tomorrow and many thanks for the help so far !!

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 20, 2018

cool, let me know the result.

@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 21, 2018

Does not work, too.

tfs_build1@EMDEHAMTFSAGENT1:~/build$ ./config.sh 

>> End User License Agreements:

Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/tfs_build1/build/externals/tee/license.html

Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > Y

>> Connect:

Enter server URL > https://EMDEHAMAPP017.plan.de/
Enter authentication type (press enter for Negotiate) > PAT
Enter personal access token > ****************************************************
Connecting to server ...
TF400813: Resource not available for anonymous access. Client authentication required.
Failed to connect.  Try again or ctrl-c to quit
Enter server URL > Exiting...

Here is the diag log:

[2018-09-21 07:57:36Z WARN HostContext] *****************************************************************************************
[2018-09-21 07:57:36Z WARN HostContext] **                                                                                     **
[2018-09-21 07:57:36Z WARN HostContext] ** Http trace is enabled, all your http traffic will be dumped into agent diag log.    **
[2018-09-21 07:57:36Z WARN HostContext] ** DO NOT share the log in public place! The trace may contains secrets in plain text. **
[2018-09-21 07:57:36Z WARN HostContext] **                                                                                     **
[2018-09-21 07:57:36Z WARN HostContext] *****************************************************************************************
[2018-09-21 07:57:36Z INFO AgentProcess] Agent is built for Linux - ubuntu.16.04-x64.
[2018-09-21 07:57:36Z INFO AgentProcess] RuntimeInformation: Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018.
[2018-09-21 07:57:36Z INFO AgentProcess] Version: 2.122.2
[2018-09-21 07:57:36Z INFO AgentProcess] Commit: d6dfa262c95d60addb71822e84bfa78e2e601e5e
[2018-09-21 07:57:36Z INFO AgentProcess] Culture: en-US
[2018-09-21 07:57:36Z INFO AgentProcess] UI Culture: en-US
[2018-09-21 07:57:36Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-21 07:57:36Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-21 07:57:36Z INFO AgentProcess] Validating directory permissions for: '/home/tfs_build1/build'
[2018-09-21 07:57:36Z INFO CommandLineParser] Parse
[2018-09-21 07:57:36Z INFO CommandLineParser] Parsing 1 args
[2018-09-21 07:57:36Z INFO CommandLineParser] parsing argument
[2018-09-21 07:57:36Z INFO CommandLineParser] HasArgs: False
[2018-09-21 07:57:36Z INFO CommandLineParser] Adding Command: configure
[2018-09-21 07:57:36Z INFO AgentProcess] Arguments parsed
[2018-09-21 07:57:36Z INFO VstsAgentWebProxy] No proxy setting found.
[2018-09-21 07:57:36Z INFO Agent] ExecuteCommand
[2018-09-21 07:57:36Z INFO ConfigurationStore] currentAssemblyLocation: /home/tfs_build1/build/bin/Agent.Listener.dll
[2018-09-21 07:57:36Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-21 07:57:36Z INFO ConfigurationStore] binPath: /home/tfs_build1/build/bin
[2018-09-21 07:57:36Z INFO HostContext] Well known directory 'Bin': '/home/tfs_build1/build/bin'
[2018-09-21 07:57:36Z INFO HostContext] Well known directory 'Root': '/home/tfs_build1/build'
[2018-09-21 07:57:36Z INFO ConfigurationStore] RootFolder: /home/tfs_build1/build
[2018-09-21 07:57:36Z INFO ConfigurationStore] ConfigFilePath: /home/tfs_build1/build/.agent
[2018-09-21 07:57:36Z INFO ConfigurationStore] CredFilePath: /home/tfs_build1/build/.credentials
[2018-09-21 07:57:36Z INFO ConfigurationStore] ServiceConfigFilePath: /home/tfs_build1/build/.service
[2018-09-21 07:57:36Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /home/tfs_build1/build/.autologon
[2018-09-21 07:57:36Z INFO CommandSettings] Flag 'help': 'False'
[2018-09-21 07:57:36Z INFO CommandSettings] Flag 'version': 'False'
[2018-09-21 07:57:36Z INFO CommandSettings] Flag 'commit': 'False'
[2018-09-21 07:57:36Z INFO CommandSettings] Command 'configure': 'True'
[2018-09-21 07:57:36Z INFO ConfigurationManager] ConfigureAsync
[2018-09-21 07:57:36Z INFO ConfigurationStore] IsConfigured()
[2018-09-21 07:57:36Z INFO ConfigurationStore] IsConfigured: False
[2018-09-21 07:57:36Z INFO ConfigurationManager] Is configured: False
[2018-09-21 07:57:36Z INFO Terminal] WRITE LINE: 
[2018-09-21 07:57:36Z INFO Terminal] WRITE LINE: >> End User License Agreements:
[2018-09-21 07:57:36Z INFO Terminal] WRITE LINE: 
[2018-09-21 07:57:36Z INFO Terminal] WRITE LINE: Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/tfs_build1/build/externals/tee/license.html
[2018-09-21 07:57:36Z INFO Terminal] WRITE LINE: 
[2018-09-21 07:57:36Z INFO CommandSettings] Flag 'acceptteeeula': 'False'
[2018-09-21 07:57:36Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:57:36Z INFO PromptManager] ReadValue
[2018-09-21 07:57:36Z INFO Terminal] WRITE: Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > 
[2018-09-21 07:57:36Z INFO Terminal] READ LINE
[2018-09-21 07:57:38Z INFO Terminal] Read value: 'Y'
[2018-09-21 07:57:38Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2018-09-21 07:57:38Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2018-09-21 07:57:38Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2018-09-21 07:57:38Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2018-09-21 07:57:38Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2018-09-21 07:57:38Z INFO Terminal] WRITE LINE: 
[2018-09-21 07:57:38Z INFO Terminal] WRITE LINE: >> Connect:
[2018-09-21 07:57:38Z INFO Terminal] WRITE LINE: 
[2018-09-21 07:57:38Z INFO CommandSettings] Arg 'url': ''
[2018-09-21 07:57:38Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:57:38Z INFO PromptManager] ReadValue
[2018-09-21 07:57:38Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-21 07:57:38Z INFO Terminal] READ LINE
[2018-09-21 07:57:42Z INFO Terminal] Read value: 'https://EMDEHAMAPP017.plan.de/'
[2018-09-21 07:57:42Z INFO ConfigurationManager] GetCredentialProvider
[2018-09-21 07:57:42Z INFO CommandSettings] Arg 'auth': ''
[2018-09-21 07:57:42Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:57:42Z INFO PromptManager] ReadValue
[2018-09-21 07:57:42Z INFO Terminal] WRITE: Enter authentication type (press enter for Negotiate) > 
[2018-09-21 07:57:42Z INFO Terminal] READ LINE
[2018-09-21 07:57:45Z INFO Terminal] Read value: 'PAT'
[2018-09-21 07:57:45Z INFO ConfigurationManager] Creating credential for auth: PAT
[2018-09-21 07:57:45Z INFO CredentialManager] GetCredentialProvider
[2018-09-21 07:57:45Z INFO CredentialManager] Creating type PAT
[2018-09-21 07:57:45Z INFO CredentialManager] Creating credential type: PAT
[2018-09-21 07:57:45Z INFO PersonalAccessToken] EnsureCredential
[2018-09-21 07:57:45Z INFO CommandSettings] Arg 'token': ''
[2018-09-21 07:57:45Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:57:45Z INFO PromptManager] ReadValue
[2018-09-21 07:57:45Z INFO Terminal] WRITE: Enter personal access token > 
[2018-09-21 07:57:45Z INFO Terminal] READ SECRET
[2018-09-21 07:58:10Z INFO Terminal] Read value: '********'
[2018-09-21 07:58:10Z INFO PersonalAccessToken] GetVssCredentials
[2018-09-21 07:58:10Z INFO PersonalAccessToken] token retrieved: 52 chars
[2018-09-21 07:58:10Z INFO ConfigurationManager] cred retrieved
[2018-09-21 07:58:10Z INFO Terminal] WRITE LINE: Connecting to server ...
[2018-09-21 07:58:10Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Request event:
{ Request = Method: GET, RequestUri: 'https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.123.26901.0
  User-Agent: (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  User-Agent: VstsAgentCore-ubuntu.16.04-x64/2.122.2
  User-Agent: (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  X-VSS-E2EID: 507d77fa-0d9f-45ef-92cb-54a0c1fc254c
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  Expect: 100-continue
  Authorization: Basic VnN0c0FnZW50Omd3NXd3Mm83a3YzdTdvZWtjajVlaXI3NHViYWJhaDVlN2t1YTZnN2NkZWRvZXV3a2Z0ZmE=
}, LoggingRequestId = dd4f7ffc-1465-424d-b023-38a14c7f2266, Timestamp = 74067704275348 }
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Server: Microsoft-IIS/10.0
  X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  ActivityId: 5bacde76-434c-454c-9da3-04a8a6abedc3
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  X-VSS-E2EID: 507d77fa-0d9f-45ef-92cb-54a0c1fc254c
  X-FRAME-OPTIONS: SAMEORIGIN
  WWW-Authenticate: Bearer
  WWW-Authenticate: Negotiate
  WWW-Authenticate: NTLM
  WWW-Authenticate: Basic realm="emdehamapp017.plan.de"
  X-Powered-By: ASP.NET
  P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
  Lfs-Authenticate: NTLM
  X-Content-Type-Options: nosniff
  Date: Fri, 21 Sep 2018 07:58:10 GMT
  Content-Type: text/html
  Content-Length: 1293
}, LoggingRequestId = dd4f7ffc-1465-424d-b023-38a14c7f2266, TimeStamp = 74067789919917 }
[2018-09-21 07:58:10Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 5bacde76-434c-454c-9da3-04a8a6abedc3
X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
X-VSS-E2EID: 507d77fa-0d9f-45ef-92cb-54a0c1fc254c
X-FRAME-OPTIONS: SAMEORIGIN
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="emdehamapp017.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Fri, 21 Sep 2018 07:58:10 GMT

[2018-09-21 07:58:10Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-21 07:58:10Z ERR  VisualStudioServices] GET request to https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: VS30063: You are not authorized to access https://emdehamapp017.plan.de.
[2018-09-21 07:58:10Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2018-09-21 07:58:10Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://emdehamapp017.plan.de.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-21 07:58:10Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Request event:
{ Request = Method: GET, RequestUri: 'https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.123.26901.0
  User-Agent: (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  User-Agent: VstsAgentCore-ubuntu.16.04-x64/2.122.2
  User-Agent: (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  X-VSS-E2EID: a84a44d2-fd79-4a81-8984-f5f47c6d23d1
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  Expect: 100-continue
}, LoggingRequestId = 5cebabb1-a259-4a45-9d78-3ded491a328e, Timestamp = 74067978055771 }
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Server: Microsoft-IIS/10.0
  X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  ActivityId: 5bacde77-434c-454c-9da3-04a8a6abedc3
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  X-VSS-E2EID: a84a44d2-fd79-4a81-8984-f5f47c6d23d1
  X-FRAME-OPTIONS: SAMEORIGIN
  X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
  X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
  WWW-Authenticate: Bearer
  WWW-Authenticate: Negotiate
  WWW-Authenticate: NTLM
  WWW-Authenticate: Basic realm="emdehamapp017.plan.de"
  X-Powered-By: ASP.NET
  P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
  Lfs-Authenticate: NTLM
  X-Content-Type-Options: nosniff
  Date: Fri, 21 Sep 2018 07:58:10 GMT
  Content-Type: text/html; charset=utf-8
  Content-Length: 20154
}, LoggingRequestId = 5cebabb1-a259-4a45-9d78-3ded491a328e, TimeStamp = 74067982399030 }
[2018-09-21 07:58:10Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 5bacde77-434c-454c-9da3-04a8a6abedc3
X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
X-VSS-E2EID: a84a44d2-fd79-4a81-8984-f5f47c6d23d1
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="emdehamapp017.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Fri, 21 Sep 2018 07:58:10 GMT

[2018-09-21 07:58:10Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-21 07:58:10Z ERR  VisualStudioServices] GET request to https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-21 07:58:10Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO AgentServer] Catch exception during connect. 3 attemp left.
[2018-09-21 07:58:10Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-21 07:58:10Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Request event:
{ Request = Method: GET, RequestUri: 'https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.123.26901.0
  User-Agent: (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  User-Agent: VstsAgentCore-ubuntu.16.04-x64/2.122.2
  User-Agent: (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  X-VSS-E2EID: 3af403eb-0ae3-402e-9aff-034ca7763ff6
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  Expect: 100-continue
}, LoggingRequestId = 31bec23d-8146-47a6-9864-f878ed945eef, Timestamp = 74068090081506 }
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Server: Microsoft-IIS/10.0
  X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  ActivityId: 5bacde74-434c-454c-9da3-04a8a6abedc3
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  X-VSS-E2EID: 3af403eb-0ae3-402e-9aff-034ca7763ff6
  X-FRAME-OPTIONS: SAMEORIGIN
  X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
  X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
  WWW-Authenticate: Bearer
  WWW-Authenticate: Negotiate
  WWW-Authenticate: NTLM
  WWW-Authenticate: Basic realm="emdehamapp017.plan.de"
  X-Powered-By: ASP.NET
  P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
  Lfs-Authenticate: NTLM
  X-Content-Type-Options: nosniff
  Date: Fri, 21 Sep 2018 07:58:10 GMT
  Content-Type: text/html; charset=utf-8
  Content-Length: 20154
}, LoggingRequestId = 31bec23d-8146-47a6-9864-f878ed945eef, TimeStamp = 74068094242883 }
[2018-09-21 07:58:10Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 5bacde74-434c-454c-9da3-04a8a6abedc3
X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
X-VSS-E2EID: 3af403eb-0ae3-402e-9aff-034ca7763ff6
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="emdehamapp017.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Fri, 21 Sep 2018 07:58:10 GMT

[2018-09-21 07:58:10Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-21 07:58:10Z ERR  VisualStudioServices] GET request to https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-21 07:58:10Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2018-09-21 07:58:10Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-21 07:58:10Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Request event:
{ Request = Method: GET, RequestUri: 'https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.123.26901.0
  User-Agent: (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  User-Agent: VstsAgentCore-ubuntu.16.04-x64/2.122.2
  User-Agent: (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  X-VSS-E2EID: 4284e75d-f056-4bf5-9d1a-042179b5e324
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  Expect: 100-continue
}, LoggingRequestId = be062541-ca9e-45d8-aab9-6787e30f001c, Timestamp = 74068197173364 }
[2018-09-21 07:58:10Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Server: Microsoft-IIS/10.0
  X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  ActivityId: 5bacde75-434c-454c-9da3-04a8a6abedc3
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  X-VSS-E2EID: 4284e75d-f056-4bf5-9d1a-042179b5e324
  X-FRAME-OPTIONS: SAMEORIGIN
  X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
  X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
  WWW-Authenticate: Bearer
  WWW-Authenticate: Negotiate
  WWW-Authenticate: NTLM
  WWW-Authenticate: Basic realm="emdehamapp017.plan.de"
  X-Powered-By: ASP.NET
  P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
  Lfs-Authenticate: NTLM
  X-Content-Type-Options: nosniff
  Date: Fri, 21 Sep 2018 07:58:10 GMT
  Content-Type: text/html; charset=utf-8
  Content-Length: 20154
}, LoggingRequestId = be062541-ca9e-45d8-aab9-6787e30f001c, TimeStamp = 74068201589811 }
[2018-09-21 07:58:10Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 5bacde75-434c-454c-9da3-04a8a6abedc3
X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
X-VSS-E2EID: 4284e75d-f056-4bf5-9d1a-042179b5e324
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="emdehamapp017.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Fri, 21 Sep 2018 07:58:10 GMT

[2018-09-21 07:58:10Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-21 07:58:10Z ERR  VisualStudioServices] GET request to https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-21 07:58:10Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-21 07:58:10Z INFO AgentServer] Catch exception during connect. 1 attemp left.
[2018-09-21 07:58:10Z ERR  AgentServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>d__3.MoveNext()
[2018-09-21 07:58:11Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2018-09-21 07:58:11Z INFO HttpTrace] Trace System.Net.Http.Request event:
{ Request = Method: GET, RequestUri: 'https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1', Version: 1.1, Content: <null>, Headers:
{
  User-Agent: VSServices/15.123.26901.0
  User-Agent: (NetStandard; Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  User-Agent: VstsAgentCore-ubuntu.16.04-x64/2.122.2
  User-Agent: (Linux 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 UTC 2018)
  X-VSS-E2EID: 743eb4c1-a66d-49bd-835c-c1a24901228d
  Accept-Language: en-US
  X-TFS-FedAuthRedirect: Suppress
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  Expect: 100-continue
}, LoggingRequestId = 615a21df-8298-44ad-a32a-a3d2df1edf5d, Timestamp = 74068305476323 }
[2018-09-21 07:58:11Z INFO HttpTrace] Trace System.Net.Http.Response event:
{ Response = StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Server: Microsoft-IIS/10.0
  X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  ActivityId: 5bacde72-434c-454c-9da3-04a8a6abedc3
  X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
  X-VSS-E2EID: 743eb4c1-a66d-49bd-835c-c1a24901228d
  X-FRAME-OPTIONS: SAMEORIGIN
  X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
  X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
  WWW-Authenticate: Bearer
  WWW-Authenticate: Negotiate
  WWW-Authenticate: NTLM
  WWW-Authenticate: Basic realm="emdehamapp017.plan.de"
  X-Powered-By: ASP.NET
  P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
  Lfs-Authenticate: NTLM
  X-Content-Type-Options: nosniff
  Date: Fri, 21 Sep 2018 07:58:10 GMT
  Content-Type: text/html; charset=utf-8
  Content-Length: 20154
}, LoggingRequestId = 615a21df-8298-44ad-a32a-a3d2df1edf5d, TimeStamp = 74068309636996 }
[2018-09-21 07:58:11Z WARN VisualStudioServices] Authentication failed with status code 401.
Server: Microsoft-IIS/10.0
X-TFS-ProcessId: 998ce509-78b0-42d0-91ba-e8d3863eabc0
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: 5bacde72-434c-454c-9da3-04a8a6abedc3
X-TFS-Session: 973a2c8a-58b6-47a9-bf0c-b716235417ef
X-VSS-E2EID: 743eb4c1-a66d-49bd-835c-c1a24901228d
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
WWW-Authenticate: Bearer, Negotiate, NTLM, Basic realm="emdehamapp017.plan.de"
X-Powered-By: ASP.NET
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Lfs-Authenticate: NTLM
X-Content-Type-Options: nosniff
Date: Fri, 21 Sep 2018 07:58:10 GMT

[2018-09-21 07:58:11Z WARN VisualStudioServices] Basic issued token provider instance 54024015 requires an interactive prompt which is not allowed by the current settings
[2018-09-21 07:58:11Z ERR  VisualStudioServices] GET request to https://emdehamapp017.plan.de/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 is not authorized. Details: TF400813: Resource not available for anonymous access. Client authentication required.
[2018-09-21 07:58:11Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2018-09-21 07:58:11Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:58:11Z ERR  Terminal] WRITE ERROR (exception):
[2018-09-21 07:58:11Z ERR  Terminal] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource not available for anonymous access. Client authentication required.
   at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>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.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 Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.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.WebApi.VssHttpClientBase.<SendAsync>d__46`1.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.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 Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>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.<ConnectAsync>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.<TestConnectionAsync>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.<ConfigureAsync>d__6.MoveNext()
[2018-09-21 07:58:11Z ERR  Terminal] WRITE ERROR: Failed to connect.  Try again or ctrl-c to quit
[2018-09-21 07:58:11Z INFO CommandSettings] Arg 'url': ''
[2018-09-21 07:58:11Z INFO CommandSettings] Flag 'unattended': 'False'
[2018-09-21 07:58:11Z INFO PromptManager] ReadValue
[2018-09-21 07:58:11Z INFO Terminal] WRITE: Enter server URL > 
[2018-09-21 07:58:11Z INFO Terminal] READ LINE
[2018-09-21 07:58:12Z INFO Terminal] WRITE LINE: Exiting...
[2018-09-21 07:58:12Z INFO HttpTrace] DiagListeners finished transmitting data.
@compilenix

This comment has been minimized.

Copy link
Author

commented Sep 24, 2018

I Disabled "Basic Auth" in IIS for the TFS-Site, now PAT's do work for authenticating new build agents.

@TingluoHuang Thanks for the assistence :)

@compilenix compilenix closed this Sep 24, 2018

@TingluoHuang

This comment has been minimized.

Copy link
Contributor

commented Sep 24, 2018

@compilenix cool, thanks for figuring this out and share what you found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.