checkout: checkout@v3 failed on windows2022 self-hosted runner, reporting Error: File was unable to be removed Error: EBUSY: resource busy or locked

checkout@v3 reporting below error on my windows2022 self-hosted runner, but checkout@v2 works ok!

C:\actions-runner\windows2022-003_work_actions\actions\checkout\v3\dist\index.js:6844 throw new Error(File was unable to be removed ${err}); ^

Error: File was unable to be removed Error: EBUSY: resource busy or locked, rmdir ‘C:\actions-runner\windows2022-003_work_temp\dcd7fd89-dafd-4a46-b292-3c1c71a82794’ at Object.<anonymous> (C:\actions-runner\windows2022-003_work_actions\actions\checkout\v3\dist\index.js:6844:19) at Generator.throw (<anonymous>) at rejected (C:\actions-runner\windows2022-003_work_actions\actions\checkout\v3\dist\index.js:6738:65)

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 10
  • Comments: 19 (3 by maintainers)

Most upvoted comments

Running this in PowerShell as Administrator will fix it:

git config --system core.usebuiltinfsmonitor false

I have tried v3 and v4 , I’m facing the same issues, but when I tried v2, its working fine without any errors