Skip to content

[BUG]: MacOSX DevOps agent not working as service #5588

@arp-mbender

Description

@arp-mbender

What happened?

We have an on-prem DevOps Server. Self-hosted Windows and Linux agents are working fine. A Mac OSX agent, however, seems to only work in interactive mode (i.e. via ./run.sh) and while the service registration and startup commands work correctly, it appears the agent has some issues communicating with DevOps under the hood.

Note that ./config.sh was successful!

Looking at the _diag logs shows a lot of issues making connections:

Attempt 1 of GET request to https://devops.internal.url/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in N seconds.

PS. The address of our DevOps server has been anonymized. Otherwise it's a valid HTTPS address with a working certificate. I can open the target URIs via Safari to inspect output (after passing the login challenge).

Versions

Version Azure DevOps Server 2022.2 (AzureDevopsServer_20260204.3)

I have tried two Agent versions:

  • 3.238.0 (downloaded from our DevOps Server itself)
  • 4.273.0 (downloaded from DevOps online services)

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

20260204.3

Operation system

macOS Tahoe 26.5.0

Version controll system

N/A

Relevant log output

[2026-06-02 12:26:37Z VERB ProcessInvokerWrapper] Entering Initialize
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] Starting process:
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   File name: '/usr/bin/xcode-select'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Arguments: '-p'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Working directory: ''
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Require exit code zero: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Encoding web name:  ; code page: ''
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Redirected STDIN: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Persist current code page: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Keep redirected STDIN open: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   High priority process: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   ContinueAfterCancelProcessTreeKillAttempt: 'False'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Sigint timeout: '00:00:07.5000000'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Sigterm timeout: '00:00:02.5000000'
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper]   Try to use graceful shutdown: False
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] OOM score adjustment is Linux-only.
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] Process started, waiting for process exit.
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] Exited process
[2026-06-02 12:26:37Z INFO ProcessInvokerWrapper] Finished process and elapsed time 00:00:00.0369202.
[2026-06-02 12:26:37Z INFO CapabilitiesBuilder] Adding 'xcode': '/Applications/Xcode-26.5.0.app/Contents/Developer'
[2026-06-02 12:26:37Z VERB UserCapabilitiesProvider] Entering GetCapabilitiesAsync
[2026-06-02 12:26:37Z INFO HostContext] Well known directory 'Bin': '/private/var/devopsAgent/bin'
[2026-06-02 12:26:37Z INFO HostContext] Well known directory 'Root': '/private/var/devopsAgent'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.Name': 'DST-MAC-001'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.OS': 'Darwin'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.OSArchitecture': 'ARM64'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.OSVersion': '26.5'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'InteractiveSession': 'False'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.Version': '4.273.0'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.ComputerName': 'DST-MAC-001'
[2026-06-02 12:26:37Z INFO HostContext] Well known directory 'Bin': '/private/var/devopsAgent/bin'
[2026-06-02 12:26:37Z INFO HostContext] Well known directory 'Root': '/private/var/devopsAgent'
[2026-06-02 12:26:37Z INFO AgentCapabilitiesProvider] Adding 'Agent.HomeDirectory': '/private/var/devopsAgent'
[2026-06-02 12:26:37Z INFO MessageListener] Loading Credentials
[2026-06-02 12:26:37Z INFO ConfigurationStore] HasCredentials()
[2026-06-02 12:26:37Z INFO ConfigurationStore] stored True
[2026-06-02 12:26:37Z INFO CredentialManager] GetCredentialProvider
[2026-06-02 12:26:37Z INFO CredentialManager] Creating type OAuth
[2026-06-02 12:26:37Z INFO CredentialManager] Creating credential type: OAuth
[2026-06-02 12:26:37Z VERB CredentialManager] Created credential type
[2026-06-02 12:26:37Z INFO RSAFileKeyManager] Loading RSA key parameters from file /private/var/devopsAgent/.credentials_rsaparams
[2026-06-02 12:26:37Z INFO Terminal] WRITE LINE: Connecting to the server.
[2026-06-02 12:26:37Z INFO MessageListener] Attempt to create session.
[2026-06-02 12:26:37Z INFO MessageListener] Connecting to the Agent Server...
[2026-06-02 12:26:37Z INFO AgentServer] Establish connection with 100 seconds timeout.
[2026-06-02 12:26:37Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2026-06-02 12:26:37Z VERB VisualStudioServices] Started GET request to https://devops.local/_apis/connectionData
[2026-06-02 12:26:37Z VERB VisualStudioServices] Created OAuth issued token provider instance 25086654 (Bearer)
[2026-06-02 12:26:37Z WARN VisualStudioServices] Attempt 1 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 11,1626225 seconds.
[2026-06-02 12:26:48Z WARN VisualStudioServices] Attempt 2 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 13,1655097 seconds.
[2026-06-02 12:27:02Z WARN VisualStudioServices] Attempt 3 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 16,703822 seconds.
[2026-06-02 12:27:18Z ERR  VisualStudioServices] Attempt 4 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The maximum number of attempts has been reached.
[2026-06-02 12:27:18Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2026-06-02 12:27:18Z INFO AgentServer] Catch exception during connect. 4 attempt left.
[2026-06-02 12:27:18Z ERR  AgentServer] System.Net.Http.HttpRequestException: No route to host (devops.local:443)
 ---> System.Net.Sockets.SocketException (65): No route to host
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   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) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 231
[2026-06-02 12:27:19Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2026-06-02 12:27:19Z VERB VisualStudioServices] Started GET request to https://devops.local/_apis/connectionData
[2026-06-02 12:27:19Z WARN VisualStudioServices] Attempt 1 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 11,0294632 seconds.
[2026-06-02 12:27:30Z WARN VisualStudioServices] Attempt 2 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 12,6466336 seconds.
[2026-06-02 12:27:42Z WARN VisualStudioServices] Attempt 3 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 16,067353 seconds.
[2026-06-02 12:27:59Z ERR  VisualStudioServices] Attempt 4 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The maximum number of attempts has been reached.
[2026-06-02 12:27:59Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2026-06-02 12:27:59Z INFO AgentServer] Catch exception during connect. 3 attempt left.
[2026-06-02 12:27:59Z ERR  AgentServer] System.Net.Http.HttpRequestException: No route to host (devops.local:443)
 ---> System.Net.Sockets.SocketException (65): No route to host
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   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) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 231
[2026-06-02 12:27:59Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2026-06-02 12:27:59Z VERB VisualStudioServices] Started GET request to https://devops.local/_apis/connectionData
[2026-06-02 12:27:59Z WARN VisualStudioServices] Attempt 1 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 11,1701644 seconds.
[2026-06-02 12:28:10Z WARN VisualStudioServices] Attempt 2 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 13,0925281 seconds.
[2026-06-02 12:28:24Z WARN VisualStudioServices] Attempt 3 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 16,5204172 seconds.
[2026-06-02 12:28:40Z ERR  VisualStudioServices] Attempt 4 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The maximum number of attempts has been reached.
[2026-06-02 12:28:40Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2026-06-02 12:28:40Z INFO AgentServer] Catch exception during connect. 2 attempt left.
[2026-06-02 12:28:40Z ERR  AgentServer] System.Net.Http.HttpRequestException: No route to host (devops.local:443)
 ---> System.Net.Sockets.SocketException (65): No route to host
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   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) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 231
[2026-06-02 12:28:40Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2026-06-02 12:28:40Z VERB VisualStudioServices] Started GET request to https://devops.local/_apis/connectionData
[2026-06-02 12:28:40Z WARN VisualStudioServices] Attempt 1 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 11,1125098 seconds.
[2026-06-02 12:28:52Z WARN VisualStudioServices] Attempt 2 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 12,6179416 seconds.
[2026-06-02 12:29:04Z WARN VisualStudioServices] Attempt 3 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 16,6394888 seconds.
[2026-06-02 12:29:21Z ERR  VisualStudioServices] Attempt 4 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The maximum number of attempts has been reached.
[2026-06-02 12:29:21Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2026-06-02 12:29:21Z INFO AgentServer] Catch exception during connect. 1 attempt left.
[2026-06-02 12:29:21Z ERR  AgentServer] System.Net.Http.HttpRequestException: No route to host (devops.local:443)
 ---> System.Net.Sockets.SocketException (65): No route to host
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   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) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 231
[2026-06-02 12:29:21Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2026-06-02 12:29:21Z VERB VisualStudioServices] Started GET request to https://devops.local/_apis/connectionData
[2026-06-02 12:29:21Z WARN VisualStudioServices] Attempt 1 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 10,968032 seconds.
[2026-06-02 12:29:32Z WARN VisualStudioServices] Attempt 2 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 12,9906292 seconds.
[2026-06-02 12:29:45Z WARN VisualStudioServices] Attempt 3 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The operation will be retried in 17,754611 seconds.
[2026-06-02 12:30:03Z ERR  VisualStudioServices] Attempt 4 of GET request to https://devops.local/_apis/connectionData failed (Socket Error: HostUnreachable). The maximum number of attempts has been reached.
[2026-06-02 12:30:03Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2026-06-02 12:30:03Z ERR  MessageListener] Catch exception during create session.
[2026-06-02 12:30:03Z ERR  MessageListener] System.Net.Http.HttpRequestException: No route to host (devops.local:443)
 ---> System.Net.Sockets.SocketException (65): No route to host
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   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) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 231
   at Microsoft.VisualStudio.Services.Agent.AgentServer.ConnectAsync(Uri serverUrl, VssCredentials credentials) in /Users/runner/work/1/s/src/Microsoft.VisualStudio.Services.Agent/AgentServer.cs:line 82
   at Microsoft.VisualStudio.Services.Agent.Listener.MessageListener.CreateSessionAsync(CancellationToken token) in /Users/runner/work/1/s/src/Agent.Listener/MessageListener.cs:line 146
[2026-06-02 12:30:03Z INFO MessageListener] Retriable exception: No route to host (devops.local:443)
[2026-06-02 12:30:03Z ERR  Terminal] WRITE ERROR: 2026-06-02 12:30:03Z: Agent connect error: No route to host (devops.local:443). Retrying until reconnected.
[2026-06-02 12:30:03Z INFO MessageListener] Unable to create session in CreateSessionAsync (attempt 1)
[2026-06-02 12:30:03Z INFO MessageListener] Sleeping for 30 seconds before retrying.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions