You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since yesterday, CI jobs keep failing. I tried to re-run the previously passed changes and still failed.
Also tried the latest runner (actions-runner-linux-x64-2.285.1.tar.gz) but still the same.
The CI job runs a script (customized action script). It takes about 15 mins to finish.
The job actually finished correctly as I can see from my host log but CI reports error like:
The self-hosted runner: xxx lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
journalctl shows:
Job build_ubuntu completed with result: Abandoned
The "raw log" in web UI shows:
2021-12-10T04:55:30.4780954Z ##[error]The operation was canceled.
2021-12-10T04:55:30.4933658Z Post job cleanup.
Reacted by Joey Wessel, thai-oddle, muojp, Karol Gugala, Peter Gyarmati, mike-ainsel, Yinan Xu, Otto Seiskari, David Veszner, Andrea Lorenzetti and 61 more
Reacted by Joshua Pinter
Reacted by Joshua Pinter, Javier Carrillo and Alexei Fedotov
I have the same issue. Github Actions runner logs say it receives a shutdown command from server at almost exactly 15 minutes after starting the run:
[2021-12-09 20:16:00Z INFO Worker] Cancellation/Shutdown message received.
And also get the same message you do in Github Actions website:
The self-hosted runner: XXXXXX lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
Reacted by Sam Lin, Jas Kauldhar, Estevan Wisoczynski, Vinicius Henrique Silva Bastos and Jack Andrews
Same here. GitHub Actions self-hosted runner Linux-x86_64 2.285.1 abandons task at 14min 56 sec (maybe somebody wrote such song???) which leads long running CI tasks to 100% failure.
Same here. GitHub Actions self-hosted runner Linux-x86_64 2.285.1 abandons task at 14min 56 sec (maybe somebody wrote such song???) which leads long running CI tasks to 100% failure.
I have the same problem and hope to fix it as soon as possible.
Seeing the same issues with all our macOS runners.
[2021-12-10 09:52:56Z INFO JobDispatcher] Successfully renew job request 31886, job is valid till 12/10/2021 10:02:56
[2021-12-10 09:53:56Z INFO JobDispatcher] Successfully renew job request 31886, job is valid till 12/10/2021 10:03:56
[2021-12-10 09:54:56Z ERR GitHubActionsService] PATCH request to https://pipelines.actions.githubusercontent.com/URFC1Mo04WVpqks7vdrv6ocHbpRwZ0WwZrOQSDQlLLU6LmbltN/_apis/distributedtask/pools/1/jobrequests/31886?lockToken=00000000-0000-0000-0000-000000000000 failed. HTTP Status: BadRequest, AFD Ref: Ref A: E92CED7CB107493C80358F9EB3CDAA58 Ref B: ATL331000101031 Ref C: 2021-12-10T09:54:56Z
[2021-12-10 09:54:56Z INFO JobDispatcher] TaskAgentJobTokenExpiredException received renew job request 31886, job is no longer valid, stop renew job request.
[2021-12-10 09:54:56Z INFO JobDispatcher] Send job cancellation message to worker for job 832b0204-66bc-5239-0b20-d0854358b9c1.
[2021-12-10 09:54:56Z INFO ProcessChannel] Sending message of length 0, with hash 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
[2021-12-10 09:55:46Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2021-12-10 09:55:46Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2021-12-10 09:55:46Z INFO ProcessInvokerWrapper] Finished process 565 with exit code 102, and elapsed time 00:15:51.9483529.
[2021-12-10 09:55:46Z INFO JobDispatcher] finish job request for job 832b0204-66bc-5239-0b20-d0854358b9c1 with result: Abandoned
[2021-12-10 09:55:46Z INFO Terminal] WRITE LINE: 2021-12-10 09:55:46Z: Job Build and upload release completed with result: Abandoned
[2021-12-10 09:55:46Z INFO JobDispatcher] Stop renew job request for job 832b0204-66bc-5239-0b20-d0854358b9c1.
[2021-12-10 09:55:46Z INFO JobNotification] Entering JobCompleted Notification
[2021-12-10 09:55:46Z INFO JobNotification] Entering EndMonitor
[2021-12-10 10:02:52Z INFO RSAFileKeyManager] Loading RSA key parameters from file /Users/administrator/actions-runner-1/.credentials_rsaparams
[2021-12-10 10:02:52Z INFO MessageListener] Message '5730' received from session '589c6df3-098c-40a8-8d03-16a1c1affc9a'.
[2021-12-10 10:02:52Z INFO JobDispatcher] Job request 31891 for plan 7202b692-6dad-4498-8e0c-ba56305f18b8 job a55bcc0b-99fd-5c08-6029-521d815eb551 received.
[2021-12-10 10:02:52Z INFO JobDispatcher] Pull OrchestrationId 7202b692-6dad-4498-8e0c-ba56305f18b8.build_tests.__default from JWT claims
[2021-12-10 10:02:52Z INFO JobDispatcher] Job request 832b0204-66bc-5239-0b20-d0854358b9c1 processed succeed.
[2021-12-10 10:02:52Z INFO Terminal] WRITE LINE: 2021-12-10 10:02:52Z: Running job: Run ClassDojo tests
[2021-12-10 10:02:52Z INFO JobDispatcher] Start renew job request 31891 for job a55bcc0b-99fd-5c08-6029-521d815eb551.
[2021-12-10 10:02:52Z INFO JobDispatcher] Successfully renew job request 31891, job is valid till 12/10/2021 10:12:52
[2021-12-10 10:02:52Z INFO HostContext] Well known directory 'Bin': '/Users/administrator/actions-runner-1/bin.2.285.1'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Starting process:
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] File name: '/Users/administrator/actions-runner-1/bin.2.285.1/Runner.Worker'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Arguments: 'spawnclient 101 106'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Working directory: '/Users/administrator/actions-runner-1/bin.2.285.1'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Require exit code zero: 'False'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Encoding web name: ; code page: ''
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Force kill process on cancellation: 'True'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Redirected STDIN: 'False'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Persist current code page: 'False'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Keep redirected STDIN open: 'False'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] High priority process: 'True'
[2021-12-10 10:02:52Z INFO ProcessInvokerWrapper] Process started with process id 16576, waiting for process exit.
[2021-12-10 10:02:52Z INFO JobDispatcher] Send job request message to worker for job a55bcc0b-99fd-5c08-6029-521d815eb551.
[2021-12-10 10:02:52Z INFO ProcessChannel] Sending message of length 41631, with hash '51780fbb33ffd911ca71d12448618f779302726b36084330b59a3f60bacd423b'
[2021-12-10 10:02:53Z INFO JobNotification] Entering JobStarted Notification
[2021-12-10 10:02:53Z INFO JobNotification] Entering StartMonitor
[2021-12-10 10:03:53Z INFO JobDispatcher] Successfully renew job request 31891, job is valid till 12/10/2021 10:13:53
Process is usually killed ~15mins as mentioned here, we are not even able to load the logs in UI.
Same issue here on aarch64 Linux.
Runner abandons or cancels jobs after ~15 minutes. The GHA web UI only says that it "lost communication with the server"
And also get the same message you do in Github Actions website:
The self-hosted runner: XXXXXX lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
The self-hosted runner: github-runner-deployment-alpha-z270-docker-1 lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
I get the same error, I would argue this issue should be reopened, due to all the corroborating reports.
The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.
The self-hosted runner: <ID> lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error
The self-hosted runner: ID lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
I use a free plan on EC2 (and i think it's enough) and get same error
this is log [2022-09-16 10:42:53Z INFO JobServerQueue] All queue process tasks have been stopped, and all queues are drained. [2022-09-16 10:42:53Z INFO TempDirectoryManager] Cleaning runner temp folder: /home/ubuntu/actions-runner/_work/_temp [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Bin': '/home/ubuntu/actions-runner/bin' [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Root': '/home/ubuntu/actions-runner' [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Diag': '/home/ubuntu/actions-runner/_diag' [2022-09-16 10:42:53Z INFO HostContext] Well known config file 'Telemetry': '/home/ubuntu/actions-runner/_diag/.telemetry' [2022-09-16 10:42:53Z INFO JobRunner] Raising job completed event [2022-09-16 10:42:53Z ERR GitHubActionsService] POST request to https://pipelines.actions.githubusercontent.com/HCYdTxD8O2BMG4LvM5MKcb35EY0sH1wNedn0yWzJce2QlAajYJ/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/3c6e1db1-0d9c-4bbe-b2fe-376050e30856/events failed. HTTP Status: BadRequest, AFD Ref: Ref A: 0FFF862B7A304ECE8208266780675163 Ref B: MIL30EDGE1321 Ref C: 2022-09-16T10:42:53Z [2022-09-16 10:42:53Z ERR JobRunner] TaskOrchestrationPlanTerminatedException received, while attempting to raise JobCompletedEvent for job ca395085-040a-526b-2ce8-bdc85f692774. [2022-09-16 10:42:53Z ERR JobRunner] GitHub.DistributedTask.WebApi.TaskOrchestrationPlanTerminatedException: Orchestration plan 3c6e1db1-0d9c-4bbe-b2fe-376050e30856 is not in a runnable state. at GitHub.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpMethod method, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable1 queryParameters, Object userState, CancellationToken cancellationToken) at GitHub.DistributedTask.WebApi.TaskHttpClient.RaisePlanEventAsync[T](Guid scopeIdentifier, String planType, Guid planId, T eventData, CancellationToken cancellationToken, Object userState) at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IJobServer jobServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable1 taskResult)
I used to have a 'Re-run all jobs' button in my GitHub runner, but it seems to have disappeared. I would appreciate any help in finding out how to get this button back.
Clear npm cache before running npm ci to ensure consistency across runs
This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
In my specific case, this was caused by using spot VMs on GKE. When the VM is shut down, the pod will be stopped with a 15s graceful shutdown, and GH marks the job as canceled.
Activity
mccarron commentedon Dec 10, 2021
We're seeing this too, and another user posted about the same issue:
#1545
Super curious.
combinatorial commentedon Dec 10, 2021
We're seeing this across self-hosted runners on macOS, linux and Windows.
weimingzha0 commentedon Dec 10, 2021
If we reduce the total time to ~11 minutes by disabling part of tests, it's OK.
combinatorial commentedon Dec 10, 2021
Also being discussed here: https://github.community/t/jobs-getting-killed-for-no-reason/216720
Bercon commentedon Dec 10, 2021
I have the same issue. Github Actions runner logs say it receives a shutdown command from server at almost exactly 15 minutes after starting the run:
[2021-12-09 20:16:00Z INFO Worker] Cancellation/Shutdown message received.And also get the same message you do in Github Actions website:
The self-hosted runner: XXXXXX lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.muojp commentedon Dec 10, 2021
Same here. GitHub Actions self-hosted runner Linux-x86_64 2.285.1 abandons task at 14min 56 sec (maybe somebody wrote such song???) which leads long running CI tasks to 100% failure.
luochongjun commentedon Dec 10, 2021
I have the same problem and hope to fix it as soon as possible.
JohnLBergqvist commentedon Dec 10, 2021
Here are logs from the
_diagdirectory on my self-hosted runner which may shed some more light on the situation:poemonsense commentedon Dec 10, 2021
we are facing the same issue. Jobs are killed within 15 minutes. See https://github.com/OpenXiangShan/XiangShan/actions
DaHuoKolmostar commentedon Dec 10, 2021
We are also facing the same issues.
CoolZeroNL commentedon Dec 10, 2021
getting the same here.
[2021-12-10 09:26:27Z ERR GitHubActionsService] POST request to https://pipelines.actions.githubusercontent.com/xvHIYcbkzGYxgj2jV2vuKlI8e7bhG14Sxs4beAU/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/8cbfd4eb-e222-494c-95e4-d68e490b4b51/events failed. HTTP Status: BadRequest, AFD Ref: Ref A: F4A6CDF03A314B098D7CD25BD4091FF1 Ref B: AM3EDGE0916 Ref C: 2021-12-10T09:26:27Z [2021-12-10 09:26:27Z ERR JobRunner] TaskOrchestrationPlanTerminatedException received, while attempting to raise JobCompletedEvent for job ca395085-040a-526b-2ce8-bdc85f692774. [2021-12-10 09:26:27Z ERR JobRunner] GitHub.DistributedTask.WebApi.TaskOrchestrationPlanTerminatedException: Orchestration plan 8cbfd4eb-e222-494c-95e4-d68e490b4b51 is not in a runnable state. at GitHub.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpMethod method, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable 1 queryParameters, Object userState, CancellationToken cancellationToken) at GitHub.DistributedTask.WebApi.TaskHttpClient.RaisePlanEventAsync[T](Guid scopeIdentifier, String planType, Guid planId, T eventData, CancellationToken cancellationToken, Object userState) at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IJobServer jobServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable 1 taskResult)acezen commentedon Dec 10, 2021
We are also facing the same issues. See https://github.com/alibaba/GraphScope/actions/runs/1562610611
Kaspik commentedon Dec 10, 2021
Seeing the same issues with all our macOS runners.
Process is usually killed ~15mins as mentioned here, we are not even able to load the logs in UI.
Seems like a P-Now - cc. @ericsciple @TingluoHuang
JulianGro commentedon Dec 10, 2021
Same issue here on aarch64 Linux.
Runner abandons or cancels jobs after ~15 minutes. The GHA web UI only says that it "lost communication with the server"
31 remaining items
winhits commentedon Feb 21, 2022
same here the job kill after 1h
andrewgbell commentedon Feb 22, 2022
Think that's normal, you need something like:
runs-on: ubuntu-latest
timeout-minutes: 120
shiranhodeda commentedon Aug 3, 2022
And also get the same message you do in Github Actions website:
The self-hosted runner: XXXXXX lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
pinggao187 commentedon Aug 15, 2022
same error
seantleonard commentedon Aug 17, 2022
I get the same error, I would argue this issue should be reopened, due to all the corroborating reports.
philipwigg commentedon Aug 17, 2022
There was a day when everyone was receiving this error, hence this issue, and it was a problem with GitHub Actions.
However, it's a "normal" error to receive if, say, your self-hosted runner ran out of memory and the process was killed by the kernel.
I see this error when we use spot instances in GCP, and the instance is preempted.
badrinathpatchikolla commentedon Sep 13, 2022
Same issue
xer0x commentedon Sep 15, 2022
Same issue, are folks seeing more of this error around Sept 15th w/ AWS self-hosted runners?
zaknafein83 commentedon Sep 16, 2022
I use a free plan on EC2 (and i think it's enough) and get same error

this is log
[2022-09-16 10:42:53Z INFO JobServerQueue] All queue process tasks have been stopped, and all queues are drained. [2022-09-16 10:42:53Z INFO TempDirectoryManager] Cleaning runner temp folder: /home/ubuntu/actions-runner/_work/_temp [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Bin': '/home/ubuntu/actions-runner/bin' [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Root': '/home/ubuntu/actions-runner' [2022-09-16 10:42:53Z INFO HostContext] Well known directory 'Diag': '/home/ubuntu/actions-runner/_diag' [2022-09-16 10:42:53Z INFO HostContext] Well known config file 'Telemetry': '/home/ubuntu/actions-runner/_diag/.telemetry' [2022-09-16 10:42:53Z INFO JobRunner] Raising job completed event [2022-09-16 10:42:53Z ERR GitHubActionsService] POST request to https://pipelines.actions.githubusercontent.com/HCYdTxD8O2BMG4LvM5MKcb35EY0sH1wNedn0yWzJce2QlAajYJ/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/3c6e1db1-0d9c-4bbe-b2fe-376050e30856/events failed. HTTP Status: BadRequest, AFD Ref: Ref A: 0FFF862B7A304ECE8208266780675163 Ref B: MIL30EDGE1321 Ref C: 2022-09-16T10:42:53Z [2022-09-16 10:42:53Z ERR JobRunner] TaskOrchestrationPlanTerminatedException received, while attempting to raise JobCompletedEvent for job ca395085-040a-526b-2ce8-bdc85f692774. [2022-09-16 10:42:53Z ERR JobRunner] GitHub.DistributedTask.WebApi.TaskOrchestrationPlanTerminatedException: Orchestration plan 3c6e1db1-0d9c-4bbe-b2fe-376050e30856 is not in a runnable state. at GitHub.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at GitHub.Services.WebApi.VssHttpClientBase.SendAsync(HttpMethod method, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable1 queryParameters, Object userState, CancellationToken cancellationToken) at GitHub.DistributedTask.WebApi.TaskHttpClient.RaisePlanEventAsync[T](Guid scopeIdentifier, String planType, Guid planId, T eventData, CancellationToken cancellationToken, Object userState) at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IJobServer jobServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable1 taskResult)thapaashesh commentedon Mar 30, 2023
All,
I used to have a 'Re-run all jobs' button in my GitHub runner, but it seems to have disappeared. I would appreciate any help in finding out how to get this button back.
maxisam commentedon Jun 1, 2023
Just got this problem as well
Anyone?
npushkarskii commentedon Feb 1, 2024
We got the same issue, Feb 1, 2024. Not sure if it's only us or the issue is on GH's end.
VanTrangDinh commentedon Feb 21, 2024
Clear npm cache before running npm ci to ensure consistency across runs
This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
korsour commentedon May 5, 2024
Still same here for
actions/upload-artifact@v4JCMais commentedon Sep 24, 2025
In my specific case, this was caused by using spot VMs on GKE. When the VM is shut down, the pod will be stopped with a 15s graceful shutdown, and GH marks the job as canceled.