CodexBloom - Programming Q&A Platform

GitHub Actions Workflow scenarios to Deploy with 'No available runners' on Self-hosted Runner

๐Ÿ‘€ Views: 336 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-07-24
github-actions self-hosted-runner deployment YAML

After trying multiple solutions online, I still can't figure this out. I'm refactoring my project and I'm working on a project and hit a roadblock. I'm currently working with an scenario with my GitHub Actions workflow where it suddenly fails to deploy my application due to an behavior stating 'No available runners' for my self-hosted runner. The workflow was functioning perfectly until I restarted the self-hosted runner service on my local machine. Now, every time I push to the `main` branch, the workflow doesn't trigger. Hereโ€™s a snippet of my workflow file: ```yaml name: Deploy on: push: branches: - main jobs: deploy: runs-on: self-hosted steps: - name: Checkout code uses: actions/checkout@v2 - name: Deploy application run: | echo "Deploying..." # Deployment commands go here ``` I have verified that my self-hosted runner is online and registered with the repository. The runner logs show it's connected, but the GitHub Actions UI indicates that there are no available runners for the job. I also tried restarting the runner again and checking for any firewall or network issues, but everything seems fine. Additionally, I checked the runnerโ€™s configuration and ensured it has the required permissions. How can I troubleshoot this scenario further, or what configuration might I be missing? I'm working on a service that needs to handle this. Thanks in advance! I'm working with Yaml in a Docker container on Ubuntu 22.04. Thanks for any help you can provide! For context: I'm using Yaml on Ubuntu 20.04. Cheers for any assistance! This is for a REST API running on Debian. I'd be grateful for any help.