Repository navigation
Description
Describe the bug
The self-hosted runner failed to complete a GET request to the GitHub Actions broker service. The operation was canceled due to a series of nested exceptions including TaskCanceledException, IOException, and SocketException (125): Operation canceled.
To Reproduce
when running workflows, workflow gets Queued and it takes long time to finish it due to error. Runner not changing status from Active to Idle and workflow is waiting when runner get Idle state.
BrokerServer] System.Threading.Tasks.TaskCanceledException: The operation was canceled.
Expected behavior
workflow run take normal time to run, workflows are not Queued. No error messages in Runner_20250611-***.log files
Runner Version and Platform
2.235, 2.234, actions-runner-linux-x64
OS of the machine running the runner? OSX/Windows/Linux/...
Ubuntu 22.04.3 LTS
Runner and Worker's Diagnostic Logs
[2025-06-11 09:09:50Z WARN GitHubActionsService] GET request to https://broker.actions.githubusercontent.com/message?sessionId=[edited]&status=Busy&runnerVersion=2.325.0&os=Linux&architecture=X64&disableUpdate=false has been cancelled. [2025-06-11 09:09:50Z ERR BrokerServer] Catch exception during request [2025-06-11 09:09:50Z ERR BrokerServer] System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled. ---> System.Net.Sockets.SocketException (125): Operation canceled --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at GitHub.Services.Common.RawHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at GitHub.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Sdk.WebApi.WebApi.RawHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Sdk.WebApi.WebApi.RawHttpClientBase.SendAsync[T](HttpRequestMessage message, Boolean readErrorBody, Object userState, CancellationToken cancellationToken)
at Sdk.WebApi.WebApi.RawHttpClientBase.SendAsync[T](HttpMethod method, IEnumerable1 additionalHeaders, Uri requestUri, HttpContent content, IEnumerable1 queryParameters, Boolean readErrorBody, Object userState, CancellationToken cancellationToken)
at GitHub.Actions.RunService.WebApi.BrokerHttpClient.GetRunnerMessageAsync(Nullable1 sessionId, String runnerVersion, Nullable1 status, String os, String architecture, Nullable1 disableUpdate, CancellationToken cancellationToken) at GitHub.Runner.Common.BrokerServer.<>c__DisplayClass7_0.<<GetRunnerMessageAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at GitHub.Runner.Common.RunnerService.RetryRequest[T](Func1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func2 shouldRetry) [2025-06-11 09:09:50Z ERR BrokerServer] ##################################################### [2025-06-11 09:09:50Z ERR BrokerServer] System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled. ---> System.Net.Sockets.SocketException (125): Operation canceled --- End of inner exception stack trace --- at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithNtAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at GitHub.Services.Common.RawHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at GitHub.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[2025-06-11 09:09:50Z ERR BrokerServer] #####################################################
[2025-06-11 09:09:50Z ERR BrokerServer] System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
---> System.Net.Sockets.SocketException (125): Operation canceled
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [2025-06-11 09:09:50Z ERR BrokerServer] ##################################################### [2025-06-11 09:09:50Z ERR BrokerServer] System.Net.Sockets.SocketException (125): Operation canceled [2025-06-11 09:09:50Z WARN BrokerServer] Back off 6.934 seconds before next retry. 4 attempt left. [2025-06-11 09:09:50Z INFO BrokerMessageListener] Get messages has been cancelled using local token source. Continue to get messages with new status.
Thank you
Activity
w007878 commentedon Jun 11, 2025
We are encountering the same issue. Network requests cannot be forwarded to the host from the pod.
dennispan commentedon Jun 16, 2025
Did you guys find the root cause or mitigation?
sebodnar commentedon Jun 16, 2025
Unfortunately no. Support suggest to check network connection into:
results-receiver.actions.githubusercontent.com *.blob.core.windows.netbut there all good in out side. still looking
dennispan commentedon Jun 16, 2025
Thanks @sebodnar . Ever since we noticed this issue in actions runner pods, we are now seeing it in many other nodes on EKS as well. The symptom is the pod has no egress. Is that same for you guys?
sebodnar commentedon Jun 16, 2025
@dennispan We're seeing an issue with GET request to https://broker.actions.githubusercontent.com on our self-hosted and self-hosted Dockerized runners. Every workflow run is affected by this.
You can check the Runner_20250605-1*-utc.log file on your side for details.
Example log output:
[2025-06-16 08:31:55Z ERR BrokerServer] Catch exception during request [2025-06-16 08:31:55Z ERR BrokerServer] System.Threading.Tasks.TaskCanceledException: The operation was canceledThis results in workflows being unable to proceed to the next step, as the runner appears stuck in a Busy state.
Our architecture runs the entire workflow on a single runner (starting from the init state), so this issue is significantly increasing the runtime—from the usual 10–20 minutes to several hours. Fortunately, the workflows are still completing successfully despite the delay.
UPDATES
just to add. same issue I see on home K8s cluster and ARC(v.0.11.0)
ldevai commentedon Jun 25, 2025
Same here, tried upgrading to linux-arm64-2.325.0 but same issue, even in different servers.
It prevent new jobs from being picked up for longer, sometimes minutes, as others reported.
Copilot provided a couple troubleshooting scripts, but the host is accessible, so far I couldn't find any other solution.
elonazoulay commentedon Jun 30, 2025
We're seeing something similar as well. The workflow completes but after every workflow completion we see something like this. Any workarounds or fixes like downgrading the runner image or some setting?
w007878 commentedon Jun 30, 2025
We were notified that the unattended upgrades in ubuntu might break the CNI we were using, which caused all the pods on the node lost their egress.
Not sure if that's the root cause of this issue.
humayunlabs commentedon Jul 3, 2025
Facing the same issue but i tried from debug container egress is working towards internet tried lot of things no resolution so far
humayunlabs commentedon Jul 3, 2025
I'm also getting this in logs not sure if its related to error down below?
humayunlabs commentedon Jul 3, 2025
I can confirm it only fails in kubernetes mode on the node
on same machine if i update runner mode to dind everything is working without an issue
dennispan commentedon Jul 3, 2025
In our case, we worked with AWS support and they told us there's a known issue affecting Ubuntu-based instances using AMI versions older than 20250403.1 (kubernetes/kops#17433) . The problem stems from an interaction between the updated udev package and AWS VPC CNI's static MAC address configuration for pod networking. In order to mitigate impact, upgrade your nodes to Ubuntu AMI version 20250403.1 or later which contains the fix.
They also provided options is upgrading AMI is not an option
We have chosen the route of upgrading AMI plus disabling Unattended Upgrade. In the past 2 days, we haven't seen this issue on new nodes.
sebodnar commentedon Jul 7, 2025
hi all, we are still experiencing this issue with broker.
In my case, I am using AWS EC2 based on ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230516 and running there solf-hosted linux runner. I have been trying different versions of runner linux-arm64-2.325.0, linux-arm64-2.324.0, linux-arm64-2.323.0
kennycheung0 commentedon Aug 19, 2025
This issue seems to be significantly worse this week. We are running the latest VPC CNI , Running the latest AWS AMI. Both dind and kubernetes containerModes are failing with the same error. I have a sidecar constantly monitoring egress, which is never lost.
AmazingTurtle commentedon Aug 30, 2025
I'm touching GH self-hosted runners for the first time and the amount of problems I'm running into (especially this one) makes me wonder if they vibe coded most of it. Also, on a side note: their documentation is a) outdated and b) misleading. I had to lookup various different resources in order to deploy my arc and runner scale set.
FYI: I tried various older tags for ghcr.io/actions/actions-runner up until the point that the API tells me that my runner is deprecated and won't receive any events. All versions show the same error.
dennispan commentedon Aug 30, 2025
While I agree with some of the assessment (confusing doc, outdated product, etc.), in our case, the issue in this thread wasn't directly related with actions. The root cause was in the compatibility between Ubuntu AMI and AWS VPC CNI, as mentioned here
sebodnar commentedon Sep 1, 2025
Hi all,
Based on the response from GitHub Support, the broker error message is expected behavior since we’re running the latest GitHub Runner version. Additionally, there was an issue on the GitHub side which has now been fixed. After the fix, we are no longer experiencing the slow runner pickup issue.
peterhorsley commentedon Nov 9, 2025
we are also seeing this randomly on windows using runner 2.329.0. there are no network issues reaching github from a browser:
github-actions commentedon Nov 16, 2026
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 15 days.