Missing executable file when executing action on self-hosted runner
See original GitHub issueDescribe the bug When using a self-hosted runner using an EC2 Windows instance, using the actions-rs/toolchain action in a step give me the following error:
Error: Unable to locate executable file: C:\actions-runner\_work\_temp\8bae825a-e905-492e-87b2-d7eef3178974. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
To Reproduce Steps to reproduce the behavior:
- Register a self hosted runner on any windows machine
- Run any workflow that uses the
actions-rs/toolchain
action in a step.
Expected behavior The action should install Rust on the runner and continue to next steps.
Runner Version and Platform
2.286.0
OS of the machine running the runner? Windows
What’s not working?
Job Log Output
Job Log
2021-12-22T08:50:44.0221040Z Found online and idle self-hosted runner in the current repository that matches the required labels: 'self-hosted-windows'
2021-12-22T08:50:44.0474478Z Waiting for the runner to pick up this job...
2021-12-22T08:50:44.6955166Z Job is about to start running on the runner: LAPTOP-7MTNAGKQ (repository)
2021-12-22T08:50:52.0520165Z Current runner version: '2.286.0'
2021-12-22T08:50:52.0527166Z Runner name: 'LAPTOP-7MTNAGKQ'
2021-12-22T08:50:52.0527725Z Runner group name: 'Default'
2021-12-22T08:50:52.0528405Z Machine name: 'LAPTOP-7MTNAGKQ'
2021-12-22T08:50:52.0531115Z ##[group]GITHUB_TOKEN Permissions
2021-12-22T08:50:52.0531682Z Actions: write
2021-12-22T08:50:52.0531858Z Checks: write
2021-12-22T08:50:52.0532032Z Contents: write
2021-12-22T08:50:52.0532216Z Deployments: write
2021-12-22T08:50:52.0532472Z Discussions: write
2021-12-22T08:50:52.0532739Z Issues: write
2021-12-22T08:50:52.0533000Z Metadata: read
2021-12-22T08:50:52.0533364Z Packages: write
2021-12-22T08:50:52.0533785Z Pages: write
2021-12-22T08:50:52.0534011Z PullRequests: write
2021-12-22T08:50:52.0534230Z RepositoryProjects: write
2021-12-22T08:50:52.0534449Z SecurityEvents: write
2021-12-22T08:50:52.0534639Z Statuses: write
2021-12-22T08:50:52.0534827Z ##[endgroup]
2021-12-22T08:50:52.0539240Z Secret source: Actions
2021-12-22T08:50:52.0539759Z Prepare workflow directory
2021-12-22T08:50:52.1616470Z Prepare all required actions
2021-12-22T08:50:52.1782105Z Getting action download info
2021-12-22T08:50:52.5717181Z Download action repository 'actions-rs/toolchain@v1' (SHA:16499b5e05bf2e26879000db0c1d13f7e13fa3af)
2021-12-22T08:50:53.9434667Z ##[group]Run actions-rs/toolchain@v1
2021-12-22T08:50:53.9435006Z with:
2021-12-22T08:50:53.9435167Z toolchain: stable
2021-12-22T08:50:53.9435337Z default: false
2021-12-22T08:50:53.9435491Z override: false
2021-12-22T08:50:53.9435658Z ##[endgroup]
2021-12-22T08:50:55.1897939Z ##[error]Unable to locate executable file: C:\actions-runner\_work\_temp\8bae825a-e905-492e-87b2-d7eef3178974. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
2021-12-22T08:50:55.2113326Z Cleaning up orphan processes
Runner and Worker’s Diagnostic Logs
Runner_20211222-075410-utc.log Worker_20211222-085049-utc.log
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
GitHub Actions with a Self Hosted Windows-Runner "File ...
1 Answer 1 ... Make sure that the folder containing the bash executable is in the PATH environment variable of the Windows user...
Read more >Using the GitHub self-hosted runner and Azure Virtual ...
I recently started thinking about the typical setup process for a GitHub Action Workflow which will deploy into Azure.
Read more >GitHub Actions - Self Hosted Runner - YouTube
Demo to bring up a windows based self - hosted runner, compile & package a maven based web application and deploy onto Tomcat...
Read more >Tutorial: Run GitHub Actions runners and Azure Pipelines ...
Learn to create self-hosted CI/CD runners and agents with jobs in Azure Container Apps.
Read more >GitHub Actions Security Best Practices [cheat sheet included]
Learn how to secure your GitHub Actions with these best practices! ... Harden your Actions runners (and don't use self-hosted runners for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lionel1704 how did you download the runner package? does your runner has
C:\actions-runner\externals
folder? make sure you download theactions-runner-win-x64-2.286.0.zip
package and not any of the others.I’m currently dealing with this issue. I’m setting up my own Windows runner, and have installed rust/rustup/cargo on the box, and they’re available on
PATH
, and have restarted the actions service, and yet still hitting this error.Has anyone here actually got this working?