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

Setup self host at linux service #3194

Closed
zottinor opened this issue Dec 18, 2020 · 2 comments
Closed

Setup self host at linux service #3194

zottinor opened this issue Dec 18, 2020 · 2 comments

Comments

@zottinor
Copy link

Agent Version and Platform

Version of your agent? 2.179.0

OS of the machine running the agent? Linux RHET 7

Azure DevOps Type and Version

dev.azure.com (formerly visualstudio.com)

If dev.azure.com, what is your organization name? https://dev.azure.com/BRZOTTINOR/

What's not working?

I can run interactive agent using ./run.sh
But it doesn't work when i setup ./svc.sh install and try to run ./svc.sh start as a service.

This is the results
image

Please include error messages and screenshots.

Agent and Worker's Diagnostic Logs

Logs are located in the agent's _diag folder. The agent logs are prefixed with Agent_ and the worker logs are prefixed with Worker_. All sensitive information should already be masked out, but please double-check before pasting here.
this is the log file

[2020-12-18 18:35:00Z INFO AgentProcess] Agent package linux-x64.
[2020-12-18 18:35:00Z INFO AgentProcess] Running on Linux (X64).
[2020-12-18 18:35:00Z INFO AgentProcess] RuntimeInformation: Linux 3.10.0-1160.6.1.el7.x86_64 #1 SMP Wed Oct 21 13:44:38 EDT 2020.
[2020-12-18 18:35:00Z INFO AgentProcess] Version: 2.179.0
[2020-12-18 18:35:00Z INFO AgentProcess] Commit: bd605d6
[2020-12-18 18:35:00Z INFO AgentProcess] Culture: en-US
[2020-12-18 18:35:00Z INFO AgentProcess] UI Culture: en-US
[2020-12-18 18:35:00Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:00Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:00Z INFO AgentProcess] Validating directory permissions for: '/data/azuredevops-agent'
[2020-12-18 18:35:00Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:00Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO CommandSettings] Run {
"Commit": false,
"Diagnostics": false,
"RunOnce": false,
"StartupType": "service",
"Help": false,
"Version": false
}
[2020-12-18 18:35:01Z INFO AgentProcess] Arguments parsed
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Proxy': '/data/azuredevops-agent/.proxy'
[2020-12-18 18:35:01Z INFO VstsAgentWebProxy] No proxy setting found.
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Certificates': '/data/azuredevops-agent/.certificates'
[2020-12-18 18:35:01Z INFO AgentCertificateManager] No certificate setting found.
[2020-12-18 18:35:01Z INFO Agent] ExecuteCommand
[2020-12-18 18:35:01Z INFO ConfigurationStore] currentAssemblyLocation: /data/azuredevops-agent/bin/Agent.Listener.dll
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO ConfigurationStore] binPath: /data/azuredevops-agent/bin
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO ConfigurationStore] RootFolder: /data/azuredevops-agent
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Agent': '/data/azuredevops-agent/.agent'
[2020-12-18 18:35:01Z INFO ConfigurationStore] ConfigFilePath: /data/azuredevops-agent/.agent
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Credentials': '/data/azuredevops-agent/.credentials'
[2020-12-18 18:35:01Z INFO ConfigurationStore] CredFilePath: /data/azuredevops-agent/.credentials
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Service': '/data/azuredevops-agent/.service'
[2020-12-18 18:35:01Z INFO ConfigurationStore] ServiceConfigFilePath: /data/azuredevops-agent/.service
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Autologon': '/data/azuredevops-agent/.autologon'
[2020-12-18 18:35:01Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /data/azuredevops-agent/.autologon
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'Options': '/data/azuredevops-agent/.options'
[2020-12-18 18:35:01Z INFO ConfigurationStore] RuntimeOptionsFilePath: /data/azuredevops-agent/.options
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'SetupInfo': '/data/azuredevops-agent/.setup_info'
[2020-12-18 18:35:01Z INFO ConfigurationStore] SetupInfoFilePath: /data/azuredevops-agent/.setup_info
[2020-12-18 18:35:01Z INFO ConfigurationManager] LoadSettings
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured()
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured: True
[2020-12-18 18:35:01Z INFO ConfigurationManager] Is configured: True
[2020-12-18 18:35:01Z INFO ConfigurationStore] Read setting file: 223 chars
[2020-12-18 18:35:01Z INFO ConfigurationManager] Settings Loaded
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsServiceConfigured()
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsServiceConfigured: True
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured()
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured: True
[2020-12-18 18:35:01Z INFO ConfigurationManager] Is configured: True
[2020-12-18 18:35:01Z INFO Agent] Set agent startup type - Service
[2020-12-18 18:35:01Z INFO CommandSettings] Flag 'once': 'False'
[2020-12-18 18:35:01Z INFO CommandSettings] Flag 'once': 'False'
[2020-12-18 18:35:01Z INFO Agent] RunAsync
[2020-12-18 18:35:01Z INFO ConfigurationManager] LoadSettings
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured()
[2020-12-18 18:35:01Z INFO ConfigurationStore] IsConfigured: True
[2020-12-18 18:35:01Z INFO ConfigurationManager] Is configured: True
[2020-12-18 18:35:01Z INFO ConfigurationManager] Settings Loaded
[2020-12-18 18:35:01Z INFO MessageListener] {
"AcceptTeeEula": true,
"AgentId": 18,
"AgentName": "agnt-linux-selui4dslcon01",
"PoolId": 17,
"PoolName": "pool-self-prem-sonarqube",
"ServerUrl": "https://dev.azure.com/BRZOTTINOR/",
"WorkFolder": "work"
}
[2020-12-18 18:35:01Z INFO Terminal] WRITE LINE: Scanning for tool capabilities.
[2020-12-18 18:35:01Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Capabilities.ICapabilitiesProvider'
[2020-12-18 18:35:01Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.AgentCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2020-12-18 18:35:01Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.EnvironmentCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2020-12-18 18:35:01Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.NixCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2020-12-18 18:35:01Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.UserCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding '
': './externals/node/bin/node'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'HOME': '/root'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'LANG': 'en_US.UTF-8'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'LOGNAME': 'root'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'PWD': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'SHELL': '/bin/sh'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Skipping: 'SHLVL'
[2020-12-18 18:35:01Z INFO EnvironmentCapabilitiesProvider] Adding 'USER': 'root'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'android'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: 'tools/android'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/root/Library/Developer/Xamarin/android-sdk-macosx/tools/android'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'ant'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'waagent'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'bundle'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'clang'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'cmake'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'curl'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'curl': '/bin/curl'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'docker'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'docker': '/bin/docker'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'dotnet'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'git'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'gulp'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'java'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'java': '/bin/java'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'javac'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'make'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'make': '/bin/make'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'mvn'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'xbuild'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Mono.framework/Commands/xbuild'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'msbuild'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Mono.framework/Commands/msbuild'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'node'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'nodejs'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'npm'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'python'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'python': '/bin/python'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'python3'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'sh'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Adding 'sh': '/bin/sh'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'svn'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'ruby'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'rake'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'svn'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'mdtool'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Applications/Xamarin Studio.app/Contents/MacOS/mdtool'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Applications/Visual Studio.app/Contents/MacOS/vstool'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'generator'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Xamarin.Android.framework/Commands/generator'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Xamarin.Android.framework/Versions/Current/Version'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Which: 'xcode-select'
[2020-12-18 18:35:01Z INFO CapabilitiesBuilder] Not found.
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.Name': 'agnt-linux-selui4dslcon01'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.OS': 'Linux'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.OSArchitecture': 'X64'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'InteractiveSession': 'False'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.Version': '2.179.0'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.ComputerName': 'selui4dslcon02'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO AgentCapabilitiesProvider] Adding 'Agent.HomeDirectory': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO MessageListener] Loading Credentials
[2020-12-18 18:35:01Z INFO ConfigurationStore] HasCredentials()
[2020-12-18 18:35:01Z INFO ConfigurationStore] stored True
[2020-12-18 18:35:01Z INFO CredentialManager] GetCredentialProvider
[2020-12-18 18:35:01Z INFO CredentialManager] Creating type OAuth
[2020-12-18 18:35:01Z INFO CredentialManager] Creating credential type: OAuth
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Bin': '/data/azuredevops-agent/bin'
[2020-12-18 18:35:01Z INFO HostContext] Well known directory 'Root': '/data/azuredevops-agent'
[2020-12-18 18:35:01Z INFO HostContext] Well known config file 'RSACredentials': '/data/azuredevops-agent/.credentials_rsaparams'
[2020-12-18 18:35:01Z INFO RSAFileKeyManager] Loading RSA key parameters from file /data/azuredevops-agent/.credentials_rsaparams
[2020-12-18 18:35:01Z INFO Terminal] WRITE LINE: Connecting to the server.
[2020-12-18 18:35:01Z INFO MessageListener] Attempt to create session.
[2020-12-18 18:35:01Z INFO MessageListener] Connecting to the Agent Server...
[2020-12-18 18:35:01Z INFO AgentServer] Establish connection with 100 seconds timeout.
[2020-12-18 18:35:02Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:36:42Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds.
[2020-12-18 18:36:42Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:36:42Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:38:22Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds.
[2020-12-18 18:38:22Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:38:22Z INFO AgentServer] Catch exception during connect. 4 attempt left.
[2020-12-18 18:38:22Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout) [2020-12-18 18:38:22Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:40:02Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds. [2020-12-18 18:40:02Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:40:02Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:41:42Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds. [2020-12-18 18:41:42Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:41:42Z INFO AgentServer] Catch exception during connect. 3 attempt left. [2020-12-18 18:41:42Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2020-12-18 18:41:42Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:43:22Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds.
[2020-12-18 18:43:22Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:43:22Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:45:02Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 18:45:02Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:45:02Z INFO AgentServer] Catch exception during connect. 2 attempt left.
[2020-12-18 18:45:02Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout) [2020-12-18 18:45:02Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:46:42Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds. [2020-12-18 18:46:42Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:46:42Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:48:22Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds. [2020-12-18 18:48:22Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:48:22Z INFO AgentServer] Catch exception during connect. 1 attempt left. [2020-12-18 18:48:22Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2020-12-18 18:48:22Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:50:02Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 18:50:02Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:50:02Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:51:42Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 18:51:42Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:51:42Z ERR MessageListener] Catch exception during create session.
[2020-12-18 18:51:42Z ERR MessageListener] System.TimeoutException: The HTTP request timed out after 00:01:40.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout) at Microsoft.VisualStudio.Services.Agent.AgentServer.ConnectAsync(Uri serverUrl, VssCredentials credentials) at Microsoft.VisualStudio.Services.Agent.Listener.MessageListener.CreateSessionAsync(CancellationToken token) [2020-12-18 18:51:42Z INFO MessageListener] Retriable exception: The HTTP request timed out after 00:01:40. [2020-12-18 18:51:42Z ERR Terminal] WRITE ERROR: 2020-12-18 18:51:42Z: Agent connect error: The HTTP request timed out after 00:01:40.. Retrying until reconnected. [2020-12-18 18:51:42Z INFO MessageListener] Sleeping for 30 seconds before retrying. [2020-12-18 18:52:12Z INFO MessageListener] Attempt to create session. [2020-12-18 18:52:12Z INFO MessageListener] Connecting to the Agent Server... [2020-12-18 18:52:12Z INFO AgentServer] Establish connection with 100 seconds timeout. [2020-12-18 18:52:12Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:53:52Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds. [2020-12-18 18:53:52Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:53:52Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 18:55:32Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions= timed out after 100 seconds. [2020-12-18 18:55:32Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 18:55:32Z INFO AgentServer] Catch exception during connect. 4 attempt left. [2020-12-18 18:55:32Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2020-12-18 18:55:32Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:57:12Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 18:57:12Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:57:12Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 18:58:52Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 18:58:52Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 18:58:52Z INFO AgentServer] Catch exception during connect. 3 attempt left.
[2020-12-18 18:58:52Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout) [2020-12-18 18:58:53Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 19:00:33Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds. [2020-12-18 19:00:33Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 19:00:33Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2020-12-18 19:02:13Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds. [2020-12-18 19:02:13Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-12-18 19:02:13Z INFO AgentServer] Catch exception during connect. 2 attempt left. [2020-12-18 19:02:13Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2020-12-18 19:02:13Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 19:03:53Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 19:03:53Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 19:03:53Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-12-18 19:05:33Z WARN VisualStudioServices] GET request to https://dev.azure.com/BRZOTTINOR/_apis/connectionData?connectOptions=0&lastChangeId=68943902&lastChangeId64=68943902 timed out after 100 seconds.
[2020-12-18 19:05:33Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-12-18 19:05:33Z INFO AgentServer] Catch exception during connect. 1 attempt left.
[2020-12-18 19:05:33Z ERR AgentServer] System.TimeoutException: The HTTP request timed out after 00:01:40.
---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Agent.AgentServer.EstablishVssConnection(Uri serverUrl, VssCredentials credentials, TimeSpan timeout)
[2020-12-18 19:05:33Z INFO VisualStudioServices] Starting operation Location.GetConnectionData

@anatolybolshakov
Copy link
Contributor

Hi @zottinor could you please try to increase http timeout and retry count using VSTS_HTTP_RETRY and VSTS_HTTP_TIMEOUT agent knobs? (here's you can find default values for these knobs)

@zottinor
Copy link
Author

Thank you @anatolybolshakov.

I found the issue and it was missing environment variable AGENT_ALLOW_RUNASROOT=1 at .env file
After add variable at .env file and redeploy, everything working fine on interactive mode using ./run.sh as well ./svc.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants