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 use rd on \_work\_temp\... on Windows 10 Pro

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

1reaction
PavanMudigondaTRcommented, Sep 23, 2022

anyone have solution for v3 ? v2 seems way slow for 5GB repo !

1reaction
laurenceecommented, Sep 12, 2022

For anyone else who finds this in the future, use actions/checkout@v2 instead and it’ll work. It still has that same error in the logs but it doesn’t stop the action completing and it seems to be successful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 PRO: can't access using remote desktop after
Windows 10 PRO : can't access using remote desktop after upgrading from Windows 8.1 PRO which supported it just fine.
Read more >
Windows 10 Pro RDP not working anymore. Pc not listed on ...
The client is using Remote Desktop to take over his pc what has Always worked fine. Since the pc is not responding to...
Read more >
Remote desktop can't connect to the remote computer for one ...
Remote desktop can't connect to the remote computer for one of the reasons ... In my client's network, we have 3 windows 10...
Read more >
Enable Remote Desktop on your PC | Microsoft Learn
You can use Remote Desktop to connect to Windows 10 Pro and Enterprise, Windows 8.1 and 8 Enterprise and Pro, Windows 7 Professional, ......
Read more >
Cannot RDP into Loacal Win 10 PC - Microsoft Q&A
Using a Win 10 Notebook I cannot RDP into a local Win 10 Desktop. The notebook can ping the IP of the desktop....
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