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
{{ message }}
Repository navigation
The self-hosted runner: xxx lost communication with the server #2624
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.
Earlier i saw so many people have posted the same error that i currently facing the same and so many CI stuck due to this error , if anyone fix it please do let me know.
Thanks,
Reacted by Yuval_, Rotemsim3339, retzero, Adam Tajti, Alex Kontos, Cindy W, michaelms-myriad, Arslan, Bruno Zica, Marius Butuc and 8 more
For the last few weeks this issue keeps happening to me as well. we have an aws machine- M5.4xlarge. and our project is running on parallel with 4 threads.
we are running 4 CI workflows in a serial way, one after the another in a day and the runner is "lost communication with the server" at least in one of the 4 runs. every day.
There is nothing consistent that happens, so it is very difficult to investigate.
Any leads would be helpful.
Reacted by Adam Tajti, Estevan Wisoczynski, Jack Andrews and Bruno Zica
@Rotemsim3339
Pls check whether any antivirus running behind your server where the actions-runner configured whether windows defender or anyother antivirus active on it pls check
Reacted by Estevan Wisoczynski, Jorge Alarcon, Aroop Gochhayat, Jack Andrews, Matthew Read, Thibaut ETIENNE, Gabriel Bull, Mete Fatih Cırıt, Thiago Vacare, Richard Croft and 26 more
why is this closed? it is still happening for some of us.
Reacted by ahernandez-evi, daechul-lee, Abhishek Kumar Yadav, pv-ganesh, andrii-kotelnikov, Quentin Fahrner, Zanyar Jalal, cosminbodnariuc, Ali Tariq , Georg and 1 more
I just encountered this issue. Think I have found the correct log file, and the end of it looks like it tried to post status details to github and it failed so the job shut down
@ruvceskistefan why is this issue closed? Can you reopen it?
[2025-08-05 16:44:35Z INFO JobRunner] Raising job completed against run service
[2025-08-05 16:44:36Z ERR GitHubActionsService] POST request to https://run-actions-1-azure-eastus.actions.githubusercontent.com/58/completejob failed. HTTP Status: NotFound
[2025-08-05 16:44:36Z ERR JobRunner] Catch exception while attempting to complete job 9213dd56-116f-5527-820a-8d70f649bde9, job request 0.
[2025-08-05 16:44:36Z ERR JobRunner] GitHub.DistributedTask.WebApi.TaskOrchestrationJobNotFoundException: Job not found: 9213dd56-116f-5527-820a-8d70f649bde9. workflow instance not found
at GitHub.Actions.RunService.WebApi.RunServiceHttpClient.CompleteJobAsync(Uri requestUri, Guid planId, Guid jobId, TaskResult conclusion, Dictionary`2 outputs, IList`1 stepResults, IList`1 jobAnnotations, String environmentUrl, IList`1 telemetry, String billingOwnerId, CancellationToken cancellationToken)
at GitHub.Runner.Common.RunServer.<>c__DisplayClass7_0.<<CompleteJobAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.<>c__DisplayClass12_0.<<RetryRequest>g__wrappedFunc|0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.RetryRequest[T](Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Common.RunnerService.RetryRequest(Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IRunServer runServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable`1 taskResult)
[2025-08-05 16:44:36Z ERR Worker] System.AggregateException: One or more errors occurred. (Job not found: 9213dd56-116f-5527-820a-8d70f649bde9. workflow instance not found)
---> GitHub.DistributedTask.WebApi.TaskOrchestrationJobNotFoundException: Job not found: 9213dd56-116f-5527-820a-8d70f649bde9. workflow instance not found
at GitHub.Actions.RunService.WebApi.RunServiceHttpClient.CompleteJobAsync(Uri requestUri, Guid planId, Guid jobId, TaskResult conclusion, Dictionary`2 outputs, IList`1 stepResults, IList`1 jobAnnotations, String environmentUrl, IList`1 telemetry, String billingOwnerId, CancellationToken cancellationToken)
at GitHub.Runner.Common.RunServer.<>c__DisplayClass7_0.<<CompleteJobAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.<>c__DisplayClass12_0.<<RetryRequest>g__wrappedFunc|0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.RetryRequest[T](Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Common.RunnerService.RetryRequest(Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IRunServer runServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable`1 taskResult)
--- End of inner exception stack trace ---
at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IRunServer runServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable`1 taskResult)
at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IRunnerService server, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable`1 taskResult)
at GitHub.Runner.Worker.JobRunner.RunAsync(AgentJobRequestMessage message, CancellationToken jobRequestCancellationToken)
at GitHub.Runner.Worker.JobRunner.RunAsync(AgentJobRequestMessage message, CancellationToken jobRequestCancellationToken)
at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
[2025-08-05 16:44:36Z ERR Worker] #####################################################
[2025-08-05 16:44:36Z ERR Worker] GitHub.DistributedTask.WebApi.TaskOrchestrationJobNotFoundException: Job not found: 9213dd56-116f-5527-820a-8d70f649bde9. workflow instance not found
at GitHub.Actions.RunService.WebApi.RunServiceHttpClient.CompleteJobAsync(Uri requestUri, Guid planId, Guid jobId, TaskResult conclusion, Dictionary`2 outputs, IList`1 stepResults, IList`1 jobAnnotations, String environmentUrl, IList`1 telemetry, String billingOwnerId, CancellationToken cancellationToken)
at GitHub.Runner.Common.RunServer.<>c__DisplayClass7_0.<<CompleteJobAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.<>c__DisplayClass12_0.<<RetryRequest>g__wrappedFunc|0>d.MoveNext()
--- End of stack trace from previous location ---
at GitHub.Runner.Common.RunnerService.RetryRequest[T](Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Common.RunnerService.RetryRequest(Func`1 func, CancellationToken cancellationToken, Int32 maxRetryAttemptsCount, Func`2 shouldRetry)
at GitHub.Runner.Worker.JobRunner.CompleteJobAsync(IRunServer runServer, IExecutionContext jobContext, AgentJobRequestMessage message, Nullable`1 taskResult)
Hey @simonmcl could you please give me a pointer on where you found that log file? i'm trying to debug similar, I think this has been happening since the recent self hosted runner update which for me was triggered on Aug 19 13:38 update.finished
@convenient apologies for the late reply I was OOO for some time. I believe it came from the "_diag" folder inside the main action folder. Depends where you've installed/named it during installation
@Songlin-Traveloka multiple versions of macos 15.x, multiple versions of xcode 16 and 26. No I don't use Bazel
It does look like network instability and bad error handling/retry logic inside the job runner. I manually restart the failed job and it always works the second time. Super frustrating. Would be great to build a cron job to scan all my jobs looking for this error and just restart them automatically
@Songlin-Traveloka multiple versions of macos 15.x, multiple versions of xcode 16 and 26. No I don't use Bazel
It does look like network instability and bad error handling/retry logic inside the job runner. I manually restart the failed job and it always works the second time. Super frustrating. Would be great to build a cron job to scan all my jobs looking for this error and just restart them automatically
Hi @simonmcl, I executed the script to start the runner manually in our new CI machine previously, faced the lost communication issue, but after I added the runner script as boot service, the issue disappeared.
Hope this info could help you, thanks!
@Songlin-Traveloka no I also have it running as a service on my machine, this doesn't effect the issue. Its an intermittent networking issue that the script doesn't handle very well
Activity
ruvceskistefan commentedon Jun 13, 2023
Hey @Subharanjan2055 ,
Is this still happening for you on the newest version of Runner? If yes can you post steps for repro or workflow that you're using?
Rotemsim3339 commentedon Jun 15, 2023
For the last few weeks this issue keeps happening to me as well. we have an aws machine- M5.4xlarge. and our project is running on parallel with 4 threads.
we are running 4 CI workflows in a serial way, one after the another in a day and the runner is "lost communication with the server" at least in one of the 4 runs. every day.
There is nothing consistent that happens, so it is very difficult to investigate.
Any leads would be helpful.
Subharanjan2055 commentedon Aug 31, 2023
@Rotemsim3339
Pls check whether any antivirus running behind your server where the actions-runner configured whether windows defender or anyother antivirus active on it pls check
bruno-zica commentedon Nov 4, 2024
I am reopening this issue in #3539 because it is happening in my repository and this issue here was closed without a solution.
micah-gant commentedon Jun 5, 2025
Same issue here, with much lower frequency. I have no solution, and it's incredibly inconsistent.
tuxillo commentedon Jul 8, 2025
why is this closed? it is still happening for some of us.
simonmcl commentedon Aug 5, 2025
I just encountered this issue. Think I have found the correct log file, and the end of it looks like it tried to post status details to github and it failed so the job shut down
@ruvceskistefan why is this issue closed? Can you reopen it?
simonmcl commentedon Aug 12, 2025
@ruvceskistefan just happened again. Please reopen this issue, its not fixed
convenient commentedon Aug 27, 2025
Hey @simonmcl could you please give me a pointer on where you found that log file? i'm trying to debug similar, I think this has been happening since the recent self hosted runner update which for me was triggered on
Aug 19 13:38 update.finishedSmaineTF1 commentedon Aug 27, 2025
What is the issue to follow? this one has been closed so I commented this one: #3981
simonmcl commentedon Oct 6, 2025
@convenient apologies for the late reply I was OOO for some time. I believe it came from the "_diag" folder inside the main action folder. Depends where you've installed/named it during installation
Songlin-Traveloka commentedon Dec 5, 2025
Hi @simonmcl, I'm facing the same issue. What's your macOS & Xcode version? Do you use Bazel?
simonmcl commentedon Dec 5, 2025
@Songlin-Traveloka multiple versions of macos 15.x, multiple versions of xcode 16 and 26. No I don't use Bazel
It does look like network instability and bad error handling/retry logic inside the job runner. I manually restart the failed job and it always works the second time. Super frustrating. Would be great to build a cron job to scan all my jobs looking for this error and just restart them automatically
Songlin-Traveloka commentedon Dec 12, 2025
Hi @simonmcl, I executed the script to start the runner manually in our new CI machine previously, faced the lost communication issue, but after I added the runner script as boot service, the issue disappeared.
Hope this info could help you, thanks!
simonmcl commentedon Dec 12, 2025
@Songlin-Traveloka no I also have it running as a service on my machine, this doesn't effect the issue. Its an intermittent networking issue that the script doesn't handle very well
tojoc commentedon Mar 19, 2026
I am getting the same issue today
nittendev commentedon Jun 11, 2026
This is still a problem om freshly installed r7a.xlarge runners today.