question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find any online and idle self-hosted runner

See original GitHub issue

Describe the bug Workflow stuck on a job with the log:

Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...

The workflow doesn’t cancel and has no option to delete when clicking “…”.

This might also be causing double workflow file bug. Basically commit a workflow file, but I removed it with a force-push since it was not ready, and introduce the same workflow file again but updated, and you get double workflow files even though there are no workflow files in master branch but only one in a feature branch:

github-actions-double-workflow

To Reproduce Steps to reproduce the behavior:

  1. Make a PR with the workflow file to public repository with PR with the following triggers and multiple jobs:
on:
  pull_request:
    branches:
      - master
  workflow_dispatch:
    inputs:
      the_input:
        description: 'the input'
        required: true
        default: 'testvalue'
      the_input2:
        description: 'the input  2'
        required: false
...
  1. Rebase the workflow file into master and check Actions tab.
  2. Actions tab will have a job that is stuck on:
Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...

Even though “Organization” tagged runner does exist. 4. Cancel run. 5. Job does not fully cancel as now there is a later job in the workflow that now becomes still stuck on:

Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...
  1. Stop runner in self-hosted environment, but the job continues to run with following message:
Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...

So the run cannot be canceled.

Expected behavior The workflow should find “Organization” self-hosted runner as it does exist. When I cancel a run, it should cancel all jobs, but it doesn’t cancel all jobs as one of the jobs is stuck on:

Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...

Runner Version and Platform

Version of your runner? actions-runner-win-x64-2.283.3

OS of the machine running the runner? OSX/Windows/Linux/… Windows Server 2019 Datacenter

What’s not working?

Please include error messages and screenshots.

Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...
github-actions-stuck-job

Job Log Output

Can't find any online and idle self-hosted runner in the current repository, account/organization and enterprise that matches the required labels: 'Organization'
Waiting for a self-hosted runner to pickup this job...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
Saff-Elli-Khancommented, Jan 3, 2022

I have fixed this issue by adding the runner name that I added on my yml file at “runs-on” to the idle runner labels!

3reactions
DanKaplanSEScommented, Jan 27, 2022

I have fixed this issue by adding the runner name that I added on my yml file at “runs-on” to the idle runner labels!

@Saff-Elli-Khan Sorry, I wasn’t able to understand this. Could you elaborate with an example or a snippet of your yml file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't find any online and idle self-hosted runner in the ...
When I run GitHub Actions, shows error: Can't find any online and idle self-hosted runner in the current repository, account/organization ...
Read more >
GitHub Actions - Self-hosted runners - Installation & Calling
In this video, you will learn about self - hosted runners, how to install them, ... Find Me: Website: http://mickeygousset.com​ GitHub: ...
Read more >
Github Actions self hosted runner - YouTube
docs: https://docs.github.com/en/actions/hosting-your-own- runners /about- self - hosted - runners Follow me on Twitter for more content: ...
Read more >
Deploying Self-hosted Runners for GitHub Actions - YouTube
GitHub recently announced the beta for Self - hosted Runners for GitHub Actions. In this video we'll take a look at deploying a...
Read more >
Manage your own GitHub runners using garm
Self hosted runners are compute resources (virtual machines, ... If a worker is already online and idle, that worker is selected, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found