Can't find any online and idle self-hosted runner
See original GitHub issueDescribe 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:
To Reproduce Steps to reproduce the behavior:
- 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
...
- Rebase the workflow file into master and check Actions tab.
- 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...
- 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...
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:
- Created 2 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top GitHub Comments
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?