inotia00 / rvx-builder

A NodeJS ReVanced Extended builder
GNU General Public License v3.0
525 stars 48 forks source link

Resource is busy or locked, unlink <directory>\revanced-cache\1.apk #76

Closed icebarf closed 1 year ago

icebarf commented 1 year ago

Describe the bug Builder errors out when it's trying to sync something.

log:

[builder] An error occured:
Error: EBUSY: resource busy or locked, unlink '\\?\C:\Users\amrit\Downloads\Programs\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf: 214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node: internal/fs/rimraf: 253:9
at Array.forEach ()
at rmdirSync (node: internal/fs/rimraf: 250:7)
at rimrafSync (node: internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\rvx-builder2\ws Events\patchApp.js:186:53)
Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

To Reproduce Steps to reproduce the behavior:

  1. Run rvx-builder as usual
  2. Upload youtube apk
  3. select patches
  4. patching is successful and an apk seems to be present in <directory>/revanced/
  5. Observe that rvx builder errors out printing a call/stack trace

revanced-builder Version: v3.9.0

Desktop (please complete the following information):

Additional context Youtube Version: 18.12.35