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.

temp.track fails when the file is locked

See original GitHub issue

temp.track mode fails when the file is locked. It should probably unlock the file before removing.

EBUSY: resource busy or locked, unlink 'C:\Users\VSSADM~1\AppData\Local\Temp\atom-test-data2020615-10032-1reom34.5toc\000003.log'
Error: EBUSY: resource busy or locked, unlink 'C:\Users\VSSADM~1\AppData\Local\Temp\atom-test-data2020615-10032-1reom34.5toc\000003.log'
    at Object.unlinkSync (fs.js:1008:3)
    at rimrafSync (D:\a\1\s\node_modules\temp\node_modules\rimraf\rimraf.js:306:17)
    at D:\a\1\s\node_modules\temp\node_modules\rimraf\rimraf.js:342:5
    at Array.forEach (<anonymous>:null:null)
    at rmkidsSync (D:\a\1\s\node_modules\temp\node_modules\rimraf\rimraf.js:341:26)
    at rmdirSync (D:\a\1\s\node_modules\temp\node_modules\rimraf\rimraf.js:334:7)
    at rimrafSync (D:\a\1\s\node_modules\temp\node_modules\rimraf\rimraf.js:304:9)
    at cleanupDirsSync (D:\a\1\s\node_modules\temp\lib\temp.js:170:5)
    at process.cleanupSync (D:\a\1\s\node_modules\temp\lib\temp.js:222:19)
    at process.emit (events.js:194:13)
    at App.<anonymous> (D:\a\1\s\out\Atom Dev x64\resources\electron.asar\browser\init.js:63:11)
    at App.emit (events.js:194:13)
    at AtomApplication.exit (D:\a\1\s\src\main-process\atom-application.js:194:9)
    at WebContents.<anonymous> (D:\a\1\s\src\main-process\atom-window.js:234:30)
    at WebContents.emit (events.js:194:13)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 10, 2020

Latest release should resolve this!

1reaction
ghostcommented, Oct 26, 2020

Sounds good! Doing some maintenance on the package, and built a release, but I will be sure to tackle this this week. I made a plan of action on how to tackle it 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tracking down and unlocking locked files in Windows
One possibility is that temporary files used by the application were not properly cleared out when the application closed.
Read more >
Excel 2013 error: file locked for editing - Searched, tried ...
1.Check in 'Task Manager' whether Excel.exe process is running in the background. Look for Excel.exe or Microsoft Excel. · 2.Start Windows ...
Read more >
Extract Refresh Fails With Error "Temporary File Is Locked By ...
Issue. Extract refresh job failed with the following error: file is locked by another process: flock(): Resource temporarily unavailable
Read more >
VMware virtual machine file lock on VMFS datastore (84475)
Notes: If the VM has no clear process locking the files (no output from the command lsof | grep -i "VM_Name") then this...
Read more >
The process cannot access the file because it is being used by ...
A job fails, indicating that a file is locked by another process/task. The console may indicate specifically what file is locked.
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