Skip to content

Can't use rd on \_work\_temp\... on Windows 10 Pro #852

Open
@jonathanreznik1

Description

@jonathanreznik1

I'm having this problem with running on a self hosted Windows 10 x64 machine. I am not sure why the rd command fails maybe was something to do with either current wd or else some other related process that is launched during the runner. I'm attaching the config file for the workflow as well and the build log.

main.yml.txt
Win10GithubRunnerfailure.txt

##[debug]Removed matchers: 'checkout-git'
node:child_process:397

      ex = new Error('Command failed: ' + cmd + '\n' + stderr);
           ^
Error: Command failed: rd /s /q "C:\actions-runner\_work\_temp\1b19991b-e599-4929-8de9-b9fedb87a66c"
The process cannot access the file because it is being used by another process.
    at ChildProcess.exithandler (node:child_process:397:12)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
  killed: false,
  code: 32,
  signal: null,
  cmd: 'rd /s /q "C:\\actions-runner\\_work\\_temp\\1b19991b-e599-4929-8de9-b9fedb87a66c"',
  stdout: '',
  stderr: 'The process cannot access the file because it is being used by another process.\r\n'
}
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run actions/checkout@v3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions