Closed jeffsugden closed 1 month ago
Hi @jeffsugden, thank you for your report! Could you please confirm that the issue also happens on the last stable version - https://github.com/microsoft/azure-pipelines-agent/releases/tag/v3.240.1 ? According to the error message the issue seems related to some network/endpoint issues.
Hi @jeffsugden, could you please confirm that the issue reoccurs on the stable agent version?
Hi @jeffsugden closing this one as external - feel free to ask any other questions or let us know if it's still relevant for you.
We're experiencing the same issue. Versions tried: v3.243.0, v3.242.1, v3.241.0, v3.240.1 , v3.240.0 , v3.239.1, v3.236.1
This is running on Ubuntu 22.04 on a fresh install to run only the agent. The agent seems to come online after installation, but fails when accepting a job and the job is never started.
[2024-08-16 13:19:20Z INFO AgentProcess] Agent package linux-x64.
[2024-08-16 13:19:20Z INFO AgentProcess] Running on Linux (X64).
[2024-08-16 13:19:20Z INFO AgentProcess] RuntimeInformation: Linux 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024.
[2024-08-16 13:19:20Z INFO AgentProcess] Version: 3.236.1
[2024-08-16 13:19:20Z INFO AgentProcess] Commit: 1d7a476fbdc985547d49878a1ad90d000989046b
[2024-08-16 13:19:20Z INFO AgentProcess] Culture: en-US
[2024-08-16 13:19:20Z INFO AgentProcess] UI Culture: en-US
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO AgentProcess] Validating directory permissions for: '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO CommandSettings] Run {
"Commit": false,
"Diagnostics": false,
"RunOnce": false,
"StartupType": null,
"Help": false,
"Version": false
}
[2024-08-16 13:19:20Z INFO AgentProcess] Arguments parsed
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Proxy': '/home/vstsagent/myagent/.proxy'
[2024-08-16 13:19:20Z INFO VstsAgentWebProxy] No proxy setting found.
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Certificates': '/home/vstsagent/myagent/.certificates'
[2024-08-16 13:19:20Z INFO AgentCertificateManager] No certificate setting found.
[2024-08-16 13:19:20Z INFO Agent] ExecuteCommand
[2024-08-16 13:19:20Z INFO ConfigurationStore] currentAssemblyLocation: /home/vstsagent/myagent/bin/Agent.Listener.dll
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO ConfigurationStore] binPath: /home/vstsagent/myagent/bin
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO ConfigurationStore] RootFolder: /home/vstsagent/myagent
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Agent': '/home/vstsagent/myagent/.agent'
[2024-08-16 13:19:20Z INFO ConfigurationStore] ConfigFilePath: /home/vstsagent/myagent/.agent
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Credentials': '/home/vstsagent/myagent/.credentials'
[2024-08-16 13:19:20Z INFO ConfigurationStore] CredFilePath: /home/vstsagent/myagent/.credentials
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Service': '/home/vstsagent/myagent/.service'
[2024-08-16 13:19:20Z INFO ConfigurationStore] ServiceConfigFilePath: /home/vstsagent/myagent/.service
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Autologon': '/home/vstsagent/myagent/.autologon'
[2024-08-16 13:19:20Z INFO ConfigurationStore] AutoLogonSettingsFilePath: /home/vstsagent/myagent/.autologon
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'Options': '/home/vstsagent/myagent/.options'
[2024-08-16 13:19:20Z INFO ConfigurationStore] RuntimeOptionsFilePath: /home/vstsagent/myagent/.options
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'SetupInfo': '/home/vstsagent/myagent/.setup_info'
[2024-08-16 13:19:20Z INFO ConfigurationStore] SetupInfoFilePath: /home/vstsagent/myagent/.setup_info
[2024-08-16 13:19:20Z INFO ConfigurationManager] LoadSettings
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured()
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured: True
[2024-08-16 13:19:20Z INFO ConfigurationManager] Is configured: True
[2024-08-16 13:19:20Z INFO ConfigurationStore] Read setting file: 194 chars
[2024-08-16 13:19:20Z INFO ConfigurationManager] Settings Loaded
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsServiceConfigured()
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsServiceConfigured: False
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured()
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured: True
[2024-08-16 13:19:20Z INFO ConfigurationManager] Is configured: True
[2024-08-16 13:19:20Z INFO Agent] Could not parse the argument value '' for StartupType. Defaulting to Manual
[2024-08-16 13:19:20Z INFO Agent] Set agent startup type - Manual
[2024-08-16 13:19:20Z INFO ConfigurationStore] HasCredentials()
[2024-08-16 13:19:20Z INFO ConfigurationStore] stored True
[2024-08-16 13:19:20Z INFO CredentialManager] GetCredentialProvider
[2024-08-16 13:19:20Z INFO CredentialManager] Creating type OAuth
[2024-08-16 13:19:20Z INFO CredentialManager] Creating credential type: OAuth
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:20Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:20Z INFO HostContext] Well known config file 'RSACredentials': '/home/vstsagent/myagent/.credentials_rsaparams'
[2024-08-16 13:19:20Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:20Z INFO ConfigurationManager] LoadSettings
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured()
[2024-08-16 13:19:20Z INFO ConfigurationStore] IsConfigured: True
[2024-08-16 13:19:20Z INFO ConfigurationManager] Is configured: True
[2024-08-16 13:19:20Z INFO ConfigurationManager] Settings Loaded
[2024-08-16 13:19:21Z WARN VisualStudioServices] Authentication failed with status code 401.
Cache-Control: no-cache
Pragma: no-cache
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
WWW-Authenticate: Basic realm="https://tfsprodweu2.app.visualstudio.com/", Bearer, TFS-Federated
X-TFS-ProcessId: ****
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: ****
X-TFS-Session: ****
X-VSS-E2EID: ****
X-VSS-SenderDeploymentId: ****
X-Frame-Options: SAMEORIGIN
X-TFS-FedAuthRealm: https://tfsprodweu2.app.visualstudio.com/
X-TFS-FedAuthIssuer: https://****.visualstudio.com/
X-VSS-AuthorizationEndpoint: https://****.vssps.visualstudio.com/
X-VSS-ResourceTenant: ****
X-VSS-S2STargetService: ****/visualstudio.com
X-TFS-FedAuthRedirect: https://spsprodweu2.vssps.visualstudio.com/_signin?realm=****.visualstudio.com&reply_to=https%3A%2F%2F****.visualstudio.com%2F_apis%2FCustomerIntelligence%2FEvents&redirect=1&hid=bd8aae17-2456-4997-8fc8-03d3b5a6b6aa&context=eyJodCI6MiwiaGlkIjoiZTcwNzg5MmUtYzdjNi00YWQ1LTgxZGYtMTE3YWQ2ZTM5MWIxIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2
Request-Context: appId=cid-v1:a32646d4-6542-4ff0-b4b1-416ef6b2d466
Access-Control-Expose-Headers: Request-Context
X-Content-Type-Options: nosniff
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: F760A00BFD0E473592AD2EB88D90C256 Ref B: SVG20EDGE0212 Ref C: 2024-08-16T13:19:21Z
Date: Fri, 16 Aug 2024 13:19:20 GMT
[2024-08-16 13:19:21Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:21Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:22Z INFO VisualStudioServices] AAD Correlation ID for this token request: Unknown
[2024-08-16 13:19:22Z INFO CommandSettings] Flag 'once': 'False'
[2024-08-16 13:19:22Z INFO CommandSettings] Flag 'once': 'False'
[2024-08-16 13:19:22Z INFO Agent] RunAsync
[2024-08-16 13:19:22Z INFO ConfigurationManager] LoadSettings
[2024-08-16 13:19:22Z INFO ConfigurationStore] IsConfigured()
[2024-08-16 13:19:22Z INFO ConfigurationStore] IsConfigured: True
[2024-08-16 13:19:22Z INFO ConfigurationManager] Is configured: True
[2024-08-16 13:19:22Z INFO ConfigurationManager] Settings Loaded
[2024-08-16 13:19:22Z INFO MessageListener] {
"AcceptTeeEula": true,
"AgentId": 70,
"AgentName": "****",
"PoolId": 1,
"PoolName": "Default",
"ServerUrl": "https://****.visualstudio.com/",
"WorkFolder": "_work"
}
[2024-08-16 13:19:22Z INFO Terminal] WRITE LINE: Scanning for tool capabilities.
[2024-08-16 13:19:22Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Capabilities.ICapabilitiesProvider'
[2024-08-16 13:19:22Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.AgentCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2024-08-16 13:19:22Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.EnvironmentCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2024-08-16 13:19:22Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.NixCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2024-08-16 13:19:22Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Capabilities.UserCapabilitiesProvider, Microsoft.VisualStudio.Services.Agent
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding '_': '/home/vstsagent/myagent/bin/Agent.Listener'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'ANDROID_HOME': '/home/vstsagent/Android/Sdk'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'ANDROID_SDK_ROOT': '/home/vstsagent/Android/Sdk'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'DOTNET_ROOT': '/usr/bin/dotnet'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'HOME': '/home/vstsagent'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'JAVA_HOME': '/usr/lib/jvm/java-17-openjdk-amd64'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'LANG': 'en_US.UTF-8'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'LESSCLOSE': '/usr/bin/lesspipe %s %s'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'LESSOPEN': '| /usr/bin/lesspipe %s'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'LOGNAME': 'vstsagent'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Skipping: 'LS_COLORS'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'MOTD_SHOWN': 'pam'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'OLDPWD': '/home/vstsagent'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/vstsagent/Android/Sdk/cmdline-tools/tools/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/usr/bin/dotnet:/home/vstsagent/Android/Sdk/tools:/home/vstsagent/Android/Sdk/platform-tools:/home/vstsagent/install_files/xamarin-android/bin/Release/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/usr/bin/dotnet:/home/vstsagent/install_files/xamarin-android/bin/Release/bin:/home/vstsagent/Android/Sdk/platform-tools:/home/vstsagent/Android/Sdk/cmdline-tools/latest/bin'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'PWD': '/home/vstsagent/myagent'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'SHELL': '/bin/bash'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Skipping: 'SHLVL'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'SSH_CLIENT': '10.0.4.146 63042 22'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'SSH_CONNECTION': '10.0.4.146 63042 10.0.1.240 22'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'SSH_TTY': '/dev/pts/1'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Skipping: 'TERM'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'USER': 'vstsagent'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XAMARIN_ANDROID': '/home/vstsagent/install_files/xamarin-android'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XDG_DATA_DIRS': '/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XDG_RUNTIME_DIR': '/run/user/1000'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XDG_SESSION_CLASS': 'user'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XDG_SESSION_ID': '4'
[2024-08-16 13:19:22Z INFO EnvironmentCapabilitiesProvider] Adding 'XDG_SESSION_TYPE': 'tty'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'android'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'AndroidSDK': '/home/vstsagent/Android/Sdk/tools/android'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'ant'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'ant': '/usr/bin/ant'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'waagent'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'bundle'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'clang'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'clang': '/usr/bin/clang'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'cmake'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'cmake': '/usr/bin/cmake'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'curl'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'curl': '/usr/bin/curl'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'docker'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'docker': '/usr/bin/docker'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'dotnet'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'dotnet': '/usr/local/bin/dotnet'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'git'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'git': '/usr/bin/git'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'gulp'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'gulp': '/usr/bin/gulp'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'java'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'java': '/usr/bin/java'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'javac'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'JDK': '/usr/bin/javac'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'make'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'make': '/usr/bin/make'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'mvn'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'maven': '/usr/bin/mvn'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'xbuild'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'MSBuild': '/usr/bin/xbuild'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'msbuild'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'MSBuild': '/usr/bin/msbuild'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'node'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'node.js': '/usr/bin/node'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'nodejs'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'node.js': '/usr/bin/nodejs'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'npm'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'npm': '/usr/bin/npm'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'python'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'python3'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'python3': '/usr/bin/python3'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'sh'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Location: '{matches.First()}'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Adding 'sh': '/usr/bin/sh'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'svn'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'ruby'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'rake'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'svn'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'mdtool'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Checking file: '/Applications/Xamarin Studio.app/Contents/MacOS/mdtool'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Checking file: '/Applications/Visual Studio.app/Contents/MacOS/vstool'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'generator'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Xamarin.Android.framework/Commands/generator'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Checking file: '/Library/Frameworks/Xamarin.Android.framework/Versions/Current/Version'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Which: 'xcode-select'
[2024-08-16 13:19:22Z INFO CapabilitiesBuilder] Not found.
[2024-08-16 13:19:22Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:22Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.Name': '****'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.OS': 'Linux'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.OSArchitecture': 'X64'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'InteractiveSession': 'True'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.Version': '3.236.1'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.ComputerName': 'vsts-agent'
[2024-08-16 13:19:22Z INFO HostContext] Well known directory 'Bin': '/home/vstsagent/myagent/bin'
[2024-08-16 13:19:22Z INFO HostContext] Well known directory 'Root': '/home/vstsagent/myagent'
[2024-08-16 13:19:22Z INFO AgentCapabilitiesProvider] Adding 'Agent.HomeDirectory': '/home/vstsagent/myagent'
[2024-08-16 13:19:22Z INFO MessageListener] Loading Credentials
[2024-08-16 13:19:22Z INFO ConfigurationStore] HasCredentials()
[2024-08-16 13:19:22Z INFO ConfigurationStore] stored True
[2024-08-16 13:19:22Z INFO CredentialManager] GetCredentialProvider
[2024-08-16 13:19:22Z INFO CredentialManager] Creating type OAuth
[2024-08-16 13:19:22Z INFO CredentialManager] Creating credential type: OAuth
[2024-08-16 13:19:22Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:22Z INFO Terminal] WRITE LINE: Connecting to the server.
[2024-08-16 13:19:22Z INFO MessageListener] Attempt to create session.
[2024-08-16 13:19:22Z INFO MessageListener] Connecting to the Agent Server...
[2024-08-16 13:19:22Z INFO AgentServer] Establish connection with 100 seconds timeout.
[2024-08-16 13:19:22Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2024-08-16 13:19:22Z WARN VisualStudioServices] Authentication failed with status code 401.
Cache-Control: no-cache
Pragma: no-cache
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
WWW-Authenticate: Basic realm="https://tfsprodweu2.app.visualstudio.com/", Bearer, TFS-Federated
X-TFS-ProcessId: ****
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: ****
X-TFS-Session: ****
X-VSS-E2EID: ****
X-VSS-SenderDeploymentId: ****
X-Frame-Options: SAMEORIGIN
X-TFS-FedAuthRealm: https://tfsprodweu2.app.visualstudio.com/
X-TFS-FedAuthIssuer: https://****.visualstudio.com/
X-VSS-AuthorizationEndpoint: https://****.vssps.visualstudio.com/
X-VSS-ResourceTenant: 00000000-0000-0000-0000-000000000000
X-VSS-S2STargetService: 00000002-0000-8888-8000-000000000000/visualstudio.com
X-TFS-FedAuthRedirect: https://spsprodweu2.vssps.visualstudio.com/_signin?realm=****.visualstudio.com&reply_to=https%3A%2F%2F****.visualstudio.com%2F_apis%2FconnectionData%3FconnectOptions%3D0%26lastChangeId%3D433786935%26lastChangeId64%3D433786935&redirect=1&hid=bd8aae17-2456-4997-8fc8-03d3b5a6b6aa&context=eyJodCI6MiwiaGlkIjoiZTcwNzg5MmUtYzdjNi00YWQ1LTgxZGYtMTE3YWQ2ZTM5MWIxIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2
Request-Context: appId=cid-v1:a32646d4-6542-4ff0-b4b1-416ef6b2d466
Access-Control-Expose-Headers: Request-Context
X-Content-Type-Options: nosniff
X-Cache: CONFIG_NOCACHE
X-MSEdge-Ref: Ref A: A11E72721E3A4E3095CC9E5553F5AA70 Ref B: SVG20EDGE0413 Ref C: 2024-08-16T13:19:22Z
Date: Fri, 16 Aug 2024 13:19:22 GMT
[2024-08-16 13:19:22Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:23Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/vstsagent/myagent/.credentials_rsaparams
[2024-08-16 13:19:23Z INFO VisualStudioServices] AAD Correlation ID for this token request: Unknown
[2024-08-16 13:19:23Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2024-08-16 13:19:23Z INFO AgentServer] Establish connection with 60 seconds timeout.
[2024-08-16 13:19:23Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2024-08-16 13:19:23Z INFO AgentServer] Establish connection with 60 seconds timeout.
[2024-08-16 13:19:23Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2024-08-16 13:19:23Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2024-08-16 13:19:23Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2024-08-16 13:19:23Z INFO MessageListener] VssConnection created
[2024-08-16 13:19:24Z INFO MessageListener] Session created.
[2024-08-16 13:19:24Z INFO Terminal] WRITE LINE: 2024-08-16 13:19:24Z: Listening for Jobs
[2024-08-16 13:19:24Z INFO JobDispatcher] Set agent/worker IPC timeout to 30 seconds.
[2024-08-16 13:20:14Z INFO MessageListener] Sent GetAgentMessage to keep alive agent 70, session '****'.
[2024-08-16 13:20:14Z INFO MessageListener] Sleeping for 12.262 seconds before retrying.
What happened?
Task Install a new self-hosted agent on a Windows 2019 server (in a deployment group).
Result: The agent installed but failed the connection test. The agent starts, but after a few minutes will shutdown/stop. The logs show repeated 401 errors while attempted to connect to the Azure DevOps Services API.
Steps
The agent will show as online for a few minutes in the Azure DevOps portal before shutting down
Versions
Agent version 3.242.1 Windows Server 2019 Datacenter (10.0.17763 Build 17763)
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version controll system
No response
Relevant log output