Agent version: 2.123.0
Server: Windows Server 2016
Connecting to VSTS
Account: https://bjss-goalgroup.visualstudio.com
Hello
I have a server behind a proxy which is able to talk to permitted sites on the internet with no problem, using internet explorer, powershell etc. However, when I try to register the VSTS build agent, it doesn't even seem to route the request to the proxy. I have been monitoring the proxy logs and can't see any signs that it's receiving the request (ie no access denied errors).
I have the proxy configured using various methods; Netsh, Internet Explorer and through Machine environment variables:
[Environment]::SetEnvironmentVariable("HTTP_PROXY", 'http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", 'https://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
[Environment]::SetEnvironmentVariable("VSTS_HTTP_PROXY", 'internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
I have checked in a command window that these environment variables are set successfully. The diag log appears to show the proxy settings being picked up. I also output to a .proxy file using this code:
$env:VSTS_HTTP_PROXY | Out-File "$agentLocation\.proxy"
The agent downloads through the proxy, installs and unzips correctly using this code:
$agentLocation = "C:\agent"
$buildAgentDownloadLocation = "https://github.com/Microsoft/vsts-agent/releases/download/v2.123.0/vsts-agent-win7-x64-2.123.0.zip"
Write-Host "Creating direction $agentLocation"
New-Item -Path $agentLocation -ItemType Directory -Force
Write-Host "Downloading the build agent from $buildAgentDownloadLocation"
Invoke-WebRequest -Uri $buildAgentDownloadLocation -OutFile $env:TEMP\BuildAgent.zip
Write-Host "Unzipping the build agent from $env:TEMP\BuildAgent.zip to $agentLocation"
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:TEMP\BuildAgent.zip", "$agentLocation")
$vstsServer = "https://bjss-goalgroup.visualstudio.com"
$token = "[REDACTED]"
But the final line fails:
&"$agentLocation\config.cmd" --url $vstsServer --auth pat --token $token --unattended --pool Default --agent Octopus --replace --runAsService
The diag log is reporting that the request timed out:
[2017-10-24 10:27:41Z INFO AgentProcess] Agent is built for Windows - win7-x64.
[2017-10-24 10:27:41Z INFO AgentProcess] RuntimeInformation: Microsoft Windows 10.0.14393 .
[2017-10-24 10:27:41Z INFO AgentProcess] Version: 2.123.0
[2017-10-24 10:27:41Z INFO AgentProcess] Commit: 5d4c44339a9528da662375fed05e46fa642eab4e
[2017-10-24 10:27:41Z INFO AgentProcess] Culture: en-US
[2017-10-24 10:27:41Z INFO AgentProcess] UI Culture: en-US
[2017-10-24 10:27:41Z INFO HostContext] Well known directory 'Bin': 'C:\agent\bin'
[2017-10-24 10:27:41Z INFO HostContext] Well known directory 'Root': 'C:\agent'
[2017-10-24 10:27:41Z INFO AgentProcess] Validating directory permissions for: 'C:\agent'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Generation: '1'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1', value name 'Install': '1'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine', value name 'PowerShellVersion': '2.0'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Unsupported version. Skipping.
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Generation: '3'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3', value name 'Install': '1'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'PowerShellVersion': '5.1.14393.0'
[2017-10-24 10:27:41Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'ApplicationBase': 'C:\Windows\System32\WindowsPowerShell\v1.0'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework', value name 'InstallRoot': 'C:\Windows\Microsoft.NET\Framework64\'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP' contains sub keys:
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 'CDF'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 'v4'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 'v4.0'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' is null.
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name '' is null.
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4' contains sub keys:
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 'Client'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 'Full'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version': '4.7.02053'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install': '1'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release': '460805'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Type is System.Int32
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version': '4.7.02053'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install': '1'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release': '460805'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Type is System.Int32
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' is null.
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name '': 'deprecated'
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Found 2 versions:
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 4.6.2
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] 4.6.2
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.5'
[2017-10-24 10:27:41Z INFO CommandLineParser] Parse
[2017-10-24 10:27:41Z INFO CommandLineParser] Parsing 14 args
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: False
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding Command: configure
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: url
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding option 'url': 'https://bjss-goalgroup.visualstudio.com'
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: auth
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding option 'auth': 'pat'
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: token
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding option 'token': '*'
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: unattended
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: pool
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding flag: unattended
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding option 'pool': 'Default'
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: agent
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding option 'agent': 'Octopus'
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: replace
[2017-10-24 10:27:41Z INFO CommandLineParser] parsing argument
[2017-10-24 10:27:41Z INFO CommandLineParser] HasArgs: True
[2017-10-24 10:27:41Z INFO CommandLineParser] arg: runAsService
[2017-10-24 10:27:41Z INFO CommandLineParser] Adding flag: replace
[2017-10-24 10:27:41Z INFO AgentProcess] Arguments parsed
[2017-10-24 10:27:41Z INFO VstsAgentWebProxy] Config proxy at: internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128.
[2017-10-24 10:27:41Z INFO VstsAgentWebProxy] Config proxy use DefaultNetworkCredentials.
[2017-10-24 10:27:41Z INFO Agent] ExecuteCommand
[2017-10-24 10:27:41Z INFO ConfigurationStore] currentAssemblyLocation: C:\agent\bin\Agent.Listener.dll
[2017-10-24 10:27:41Z INFO HostContext] Well known directory 'Bin': 'C:\agent\bin'
[2017-10-24 10:27:41Z INFO ConfigurationStore] binPath: C:\agent\bin
[2017-10-24 10:27:41Z INFO HostContext] Well known directory 'Bin': 'C:\agent\bin'
[2017-10-24 10:27:41Z INFO HostContext] Well known directory 'Root': 'C:\agent'
[2017-10-24 10:27:41Z INFO ConfigurationStore] RootFolder: C:\agent
[2017-10-24 10:27:41Z INFO ConfigurationStore] ConfigFilePath: C:\agent.agent
[2017-10-24 10:27:41Z INFO ConfigurationStore] CredFilePath: C:\agent.credentials
[2017-10-24 10:27:41Z INFO ConfigurationStore] ServiceConfigFilePath: C:\agent.service
[2017-10-24 10:27:41Z INFO ConfigurationStore] AutoLogonSettingsFilePath: C:\agent.autologon
[2017-10-24 10:27:41Z INFO CommandSettings] Flag 'help': 'False'
[2017-10-24 10:27:41Z INFO CommandSettings] Flag 'version': 'False'
[2017-10-24 10:27:41Z INFO CommandSettings] Flag 'commit': 'False'
[2017-10-24 10:27:41Z INFO CommandSettings] Command 'configure': 'True'
[2017-10-24 10:27:41Z INFO ConfigurationManager] ConfigureAsync
[2017-10-24 10:27:41Z INFO ConfigurationStore] IsConfigured()
[2017-10-24 10:27:41Z INFO ConfigurationStore] IsConfigured: False
[2017-10-24 10:27:41Z INFO ConfigurationManager] Is configured: False
[2017-10-24 10:27:41Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.6'
[2017-10-24 10:27:41Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2017-10-24 10:27:41Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2017-10-24 10:27:41Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2017-10-24 10:27:41Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2017-10-24 10:27:41Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2017-10-24 10:27:42Z INFO Terminal] WRITE LINE:
[2017-10-24 10:27:42Z INFO Terminal] WRITE LINE: >> Connect:
[2017-10-24 10:27:42Z INFO Terminal] WRITE LINE:
[2017-10-24 10:27:42Z INFO CommandSettings] Arg 'url': 'https://bjss-goalgroup.visualstudio.com'
[2017-10-24 10:27:42Z INFO CommandSettings] Remove url from Arg dictionary.
[2017-10-24 10:27:42Z INFO ConfigurationManager] GetCredentialProvider
[2017-10-24 10:27:42Z INFO CommandSettings] Arg 'auth': 'pat'
[2017-10-24 10:27:42Z INFO CommandSettings] Remove auth from Arg dictionary.
[2017-10-24 10:27:42Z INFO ConfigurationManager] Creating credential for auth: pat
[2017-10-24 10:27:42Z INFO CredentialManager] GetCredentialProvider
[2017-10-24 10:27:42Z INFO CredentialManager] Creating type pat
[2017-10-24 10:27:42Z INFO CredentialManager] Creating credential type: pat
[2017-10-24 10:27:42Z INFO PersonalAccessToken] EnsureCredential
[2017-10-24 10:27:42Z INFO CommandSettings] Arg 'token': '*'
[2017-10-24 10:27:42Z INFO CommandSettings] Remove token from Arg dictionary.
[2017-10-24 10:27:42Z INFO PersonalAccessToken] GetVssCredentials
[2017-10-24 10:27:42Z INFO PersonalAccessToken] token retrieved: 52 chars
[2017-10-24 10:27:42Z INFO ConfigurationManager] cred retrieved
[2017-10-24 10:27:42Z INFO Terminal] WRITE LINE: Connecting to server ...
[2017-10-24 10:27:42Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 10:28:03Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.d__4.MoveNext()
[2017-10-24 10:28:03Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 10:28:03Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2017-10-24 10:28:03Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.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.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.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.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() [2017-10-24 10:28:03Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2017-10-24 10:28:45Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 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() [2017-10-24 10:28:45Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2017-10-24 10:28:45Z INFO AgentServer] Catch exception during connect. 3 attemp left. [2017-10-24 10:28:45Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- 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__461.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.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.d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.AgentServer.d__3.MoveNext()
[2017-10-24 10:28:45Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 10:29:28Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.d__4.MoveNext()
[2017-10-24 10:29:28Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 10:29:28Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2017-10-24 10:29:28Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.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.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.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.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() [2017-10-24 10:29:28Z INFO VisualStudioServices] Starting operation Location.GetConnectionData [2017-10-24 10:30:10Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 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() [2017-10-24 10:30:10Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2017-10-24 10:30:10Z INFO AgentServer] Catch exception during connect. 1 attemp left. [2017-10-24 10:30:10Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace --- 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__461.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.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.d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.AgentServer.d__3.MoveNext()
[2017-10-24 10:30:10Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 10:30:52Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.d__4.MoveNext()
[2017-10-24 10:30:52Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 10:30:52Z INFO CommandSettings] Flag 'unattended': 'True'
[2017-10-24 10:30:52Z ERR Agent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.d__105.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.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.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.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.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.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.d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.AgentServer.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.d__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.Agent.Listener.Agent.d__5.MoveNext()
[2017-10-24 10:30:52Z ERR Terminal] WRITE ERROR: An error occurred while sending the request.
And the proxy server logs are reporting no attempted access at all.
If you have any ideas what's going wrong here I'd be grateful to hear them.
Thanks very much
Richard
@moorichardmoo [Environment]::SetEnvironmentVariable("VSTS_HTTP_PROXY", 'internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine') should be http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128
Thanks for your reply @TingluoHuang, well spotted.
I changed the variable as you said:
c:\agent>set
HTTPS_PROXY=http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128
HTTP_PROXY=http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128
VSTS_HTTP_PROXY=http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128
but unfortunately I get the same problem:
C:\agent>config.cmd --url "https://bjss-goalgroup.visualstudio.com" --auth pat --token [REDACTED] --unattended --pool Default --agent Octopus --replace --runAsService
gives me:
[2017-10-24 15:33:10Z INFO AgentProcess] Agent is built for Windows - win7-x64.
[2017-10-24 15:33:10Z INFO AgentProcess] RuntimeInformation: Microsoft Windows 10.0.14393 .
[2017-10-24 15:33:10Z INFO AgentProcess] Version: 2.123.0
[2017-10-24 15:33:10Z INFO AgentProcess] Commit: 5d4c44339a9528da662375fed05e46fa642eab4e
[2017-10-24 15:33:10Z INFO AgentProcess] Culture: en-US
[2017-10-24 15:33:10Z INFO AgentProcess] UI Culture: en-US
[2017-10-24 15:33:10Z INFO HostContext] Well known directory 'Bin': 'c:\agent\bin'
[2017-10-24 15:33:10Z INFO HostContext] Well known directory 'Root': 'c:\agent'
[2017-10-24 15:33:10Z INFO AgentProcess] Validating directory permissions for: 'c:\agent'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Generation: '1'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1', value name 'Install': '1'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine', value name 'PowerShellVersion': '2.0'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Unsupported version. Skipping.
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Generation: '3'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3', value name 'Install': '1'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'PowerShellVersion': '5.1.14393.0'
[2017-10-24 15:33:10Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'ApplicationBase': 'C:\Windows\System32\WindowsPowerShell\v1.0'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework', value name 'InstallRoot': 'C:\Windows\Microsoft.NET\Framework64\'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP' contains sub keys:
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 'CDF'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 'v4'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 'v4.0'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' is null.
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name '' is null.
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4' contains sub keys:
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 'Client'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 'Full'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version': '4.7.02053'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install': '1'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release': '460805'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Type is System.Int32
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version': '4.7.02053'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install': '1'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release': '460805'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Type is System.Int32
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Interpreted version: 4.6.2
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' is null.
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name '': 'deprecated'
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Found 2 versions:
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 4.6.2
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] 4.6.2
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.5'
[2017-10-24 15:33:10Z INFO CommandLineParser] Parse
[2017-10-24 15:33:10Z INFO CommandLineParser] Parsing 14 args
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: False
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding Command: configure
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: url
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding option 'url': 'https://bjss-goalgroup.visualstudio.com'
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: auth
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding option 'auth': 'pat'
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: token
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding option 'token': '*'
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: unattended
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: pool
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding flag: unattended
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding option 'pool': 'Default'
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: agent
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding option 'agent': 'Octopus'
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: replace
[2017-10-24 15:33:10Z INFO CommandLineParser] parsing argument
[2017-10-24 15:33:10Z INFO CommandLineParser] HasArgs: True
[2017-10-24 15:33:10Z INFO CommandLineParser] arg: runAsService
[2017-10-24 15:33:10Z INFO CommandLineParser] Adding flag: replace
[2017-10-24 15:33:10Z INFO AgentProcess] Arguments parsed
[2017-10-24 15:33:10Z INFO VstsAgentWebProxy] Config proxy at: internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128.
[2017-10-24 15:33:10Z INFO VstsAgentWebProxy] Config proxy use DefaultNetworkCredentials.
[2017-10-24 15:33:10Z INFO Agent] ExecuteCommand
[2017-10-24 15:33:10Z INFO ConfigurationStore] currentAssemblyLocation: c:\agent\bin\Agent.Listener.dll
[2017-10-24 15:33:10Z INFO HostContext] Well known directory 'Bin': 'c:\agent\bin'
[2017-10-24 15:33:10Z INFO ConfigurationStore] binPath: c:\agent\bin
[2017-10-24 15:33:10Z INFO HostContext] Well known directory 'Bin': 'c:\agent\bin'
[2017-10-24 15:33:10Z INFO HostContext] Well known directory 'Root': 'c:\agent'
[2017-10-24 15:33:10Z INFO ConfigurationStore] RootFolder: c:\agent
[2017-10-24 15:33:10Z INFO ConfigurationStore] ConfigFilePath: c:\agent.agent
[2017-10-24 15:33:10Z INFO ConfigurationStore] CredFilePath: c:\agent.credentials
[2017-10-24 15:33:10Z INFO ConfigurationStore] ServiceConfigFilePath: c:\agent.service
[2017-10-24 15:33:10Z INFO ConfigurationStore] AutoLogonSettingsFilePath: c:\agent.autologon
[2017-10-24 15:33:10Z INFO CommandSettings] Flag 'help': 'False'
[2017-10-24 15:33:10Z INFO CommandSettings] Flag 'version': 'False'
[2017-10-24 15:33:10Z INFO CommandSettings] Flag 'commit': 'False'
[2017-10-24 15:33:10Z INFO CommandSettings] Command 'configure': 'True'
[2017-10-24 15:33:10Z INFO ConfigurationManager] ConfigureAsync
[2017-10-24 15:33:10Z INFO ConfigurationStore] IsConfigured()
[2017-10-24 15:33:10Z INFO ConfigurationStore] IsConfigured: False
[2017-10-24 15:33:10Z INFO ConfigurationManager] Is configured: False
[2017-10-24 15:33:10Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.6'
[2017-10-24 15:33:10Z INFO CommandSettings] Flag 'machinegroup': 'False'
[2017-10-24 15:33:10Z INFO CommandSettings] Flag 'deploymentgroup': 'False'
[2017-10-24 15:33:10Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Configuration.IConfigurationProvider'
[2017-10-24 15:33:10Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.BuildReleasesAgentConfigProvider, Agent.Listener
[2017-10-24 15:33:10Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Configuration.DeploymentGroupAgentConfigProvider, Agent.Listener
[2017-10-24 15:33:10Z INFO Terminal] WRITE LINE:
[2017-10-24 15:33:10Z INFO Terminal] WRITE LINE: >> Connect:
[2017-10-24 15:33:10Z INFO Terminal] WRITE LINE:
[2017-10-24 15:33:10Z INFO CommandSettings] Arg 'url': 'https://bjss-goalgroup.visualstudio.com'
[2017-10-24 15:33:10Z INFO CommandSettings] Remove url from Arg dictionary.
[2017-10-24 15:33:11Z INFO ConfigurationManager] GetCredentialProvider
[2017-10-24 15:33:11Z INFO CommandSettings] Arg 'auth': 'pat'
[2017-10-24 15:33:11Z INFO CommandSettings] Remove auth from Arg dictionary.
[2017-10-24 15:33:11Z INFO ConfigurationManager] Creating credential for auth: pat
[2017-10-24 15:33:11Z INFO CredentialManager] GetCredentialProvider
[2017-10-24 15:33:11Z INFO CredentialManager] Creating type pat
[2017-10-24 15:33:11Z INFO CredentialManager] Creating credential type: pat
[2017-10-24 15:33:11Z INFO PersonalAccessToken] EnsureCredential
[2017-10-24 15:33:11Z INFO CommandSettings] Arg 'token': '*'
[2017-10-24 15:33:11Z INFO CommandSettings] Remove token from Arg dictionary.
[2017-10-24 15:33:11Z INFO PersonalAccessToken] GetVssCredentials
[2017-10-24 15:33:11Z INFO PersonalAccessToken] token retrieved: 6 chars
[2017-10-24 15:33:11Z INFO ConfigurationManager] cred retrieved
[2017-10-24 15:33:11Z INFO Terminal] WRITE LINE: Connecting to server ...
[2017-10-24 15:33:11Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 15:33:32Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.
--- 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.
[2017-10-24 15:33:32Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 15:33:32Z INFO AgentServer] Catch exception during connect. 4 attemp left.
[2017-10-24 15:33:32Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.
--- 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.
--- 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.
--- 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.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()
[2017-10-24 15:33:32Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 15:34:14Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
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()
[2017-10-24 15:34:14Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 15:34:14Z INFO AgentServer] Catch exception during connect. 3 attemp left.
[2017-10-24 15:34:14Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
--- End of inner exception stack trace ---
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__461.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.
--- 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.
--- 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.
[2017-10-24 15:34:14Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 15:34:57Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.
--- 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.
[2017-10-24 15:34:57Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 15:34:57Z INFO AgentServer] Catch exception during connect. 2 attemp left.
[2017-10-24 15:34:57Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.
--- 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.
--- 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.
--- 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.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()
[2017-10-24 15:34:57Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 15:35:39Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
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()
[2017-10-24 15:35:39Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 15:35:39Z INFO AgentServer] Catch exception during connect. 1 attemp left.
[2017-10-24 15:35:39Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
--- End of inner exception stack trace ---
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__461.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.
--- 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.
--- 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.
[2017-10-24 15:35:39Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2017-10-24 15:36:21Z ERR VisualStudioServices] GET request to https://bjss-goalgroup.visualstudio.com/_apis/connectionData?connectOptions=1&lastChangeId=-1&lastChangeId64=-1 failed. System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.
--- 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.
[2017-10-24 15:36:21Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2017-10-24 15:36:21Z INFO CommandSettings] Flag 'unattended': 'True'
[2017-10-24 15:36:21Z ERR Agent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The operation timed out
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.WinHttpHandler.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.
--- 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.
--- 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.
--- 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.
--- 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.
--- 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.
--- 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.
--- 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.
--- 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.
--- 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.Agent.
[2017-10-24 15:36:21Z ERR Terminal] WRITE ERROR: An error occurred while sending the request.
@moorichardmoo you don't needs to do:
[Environment]::SetEnvironmentVariable("HTTP_PROXY", 'http://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", 'https://internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
[Environment]::SetEnvironmentVariable("VSTS_HTTP_PROXY", 'internal-sec-elb-937750220.us-east-1.elb.amazonaws.com:3128', 'Machine')
Change the .proxy file, make sure the url there is right.
the agent will prefer .proxy file over VSTS_Http_PROXY env variable.
That was it. Thanks so much for your help, @TingluoHuang
@moorichardmoo cool, glad you unblock.
Most helpful comment
@moorichardmoo you don't needs to do:
Change the .proxy file, make sure the url there is right.
the agent will prefer .proxy file over VSTS_Http_PROXY env variable.