Skip to content

The self-hosted runner: xxx lost communication with the server #2624

Closed

Description

@Subharanjan2055

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,

Activity

  1. added
    bug
    on May 25, 2023
  2. ruvceskistefan commented on Jun 13, 2023

    @ruvceskistefan
    Contributor

    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?

  3. Rotemsim3339 commented on Jun 15, 2023

    @Rotemsim3339

    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.

  4. Subharanjan2055 commented on Aug 31, 2023

    @Subharanjan2055
    Author

    @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

  5. bruno-zica commented on Nov 4, 2024

    @bruno-zica

    I am reopening this issue in #3539 because it is happening in my repository and this issue here was closed without a solution.

  6. micah-gant commented on Jun 5, 2025

    @micah-gant

    Same issue here, with much lower frequency. I have no solution, and it's incredibly inconsistent.

  7. tuxillo commented on Jul 8, 2025

    @tuxillo

    why is this closed? it is still happening for some of us.

  8. simonmcl commented on Aug 5, 2025

    @simonmcl

    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)
    
  9. simonmcl commented on Aug 12, 2025

    @simonmcl

    @ruvceskistefan just happened again. Please reopen this issue, its not fixed

    Image
  10. convenient commented on Aug 27, 2025

    @convenient

    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

  11. SmaineTF1 commented on Aug 27, 2025

    @SmaineTF1

    What is the issue to follow? this one has been closed so I commented this one: #3981

  12. simonmcl commented on Oct 6, 2025

    @simonmcl

    @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

  13. Songlin-Traveloka commented on Dec 5, 2025

    @Songlin-Traveloka

    @ruvceskistefan just happened again. Please reopen this issue, its not fixed

    Image

    Hi @simonmcl, I'm facing the same issue. What's your macOS & Xcode version? Do you use Bazel?

  14. simonmcl commented on Dec 5, 2025

    @simonmcl

    @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

  15. Songlin-Traveloka commented on Dec 12, 2025

    @Songlin-Traveloka

    @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!

  16. simonmcl commented on Dec 12, 2025

    @simonmcl

    @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

  17. tojoc commented on Mar 19, 2026

    @tojoc

    I am getting the same issue today

  18. nittendev commented on Jun 11, 2026

    @nittendev

    This is still a problem om freshly installed r7a.xlarge runners today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-customer-responsebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions