inotia00 / rvx-builder

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

resource busy or locked, unlink '\\?\C:\Users\p #14

Closed papppsanyi closed 1 year ago

papppsanyi commented 1 year ago

Patching failed After the patching screen, error occures. rvx-builder v3.4.16 Command prompt output [builder] Listening at port 8000 [builder] The webserver is now running! [builder] Opening the app in the default browser... Done, check if a browser window has opened [builder] An error occured. Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\myuser\Downloads\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-builder-build3\wsEvents\patchApp.js:38:3) at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53) [builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Desktop (please complete the following information):

papppsanyi commented 1 year ago

image

Spacellary commented 1 year ago

Hello! This is a duplicate of issue https://github.com/inotia00/rvx-builder/issues/7#issue-1428752217, and I did share the steps to solve that issue in this https://github.com/inotia00/rvx-builder/issues/7#issuecomment-1296274651. Please try that and report back in https://github.com/inotia00/rvx-builder/issues/7#issue-1428752217 if you had success or even if didn't as this helps too.

For reference:

I was able to now build normally after doing the following steps:

1) Uninstalled the Zulu JDK 17 version that was installed.
2) Uninstalled Node.js.

3) Installed Zulu JDK again (Zulu JDK 17 v17.36.15 from Winget).
4) Build again, with success.

I used Geek Uninstaller to perform a clean removal (uninstall and remove residual files) of the software and I installed Zulu JDK 17 v17.36.15 using WingetUI/Winget.

inotia00 commented 1 year ago

duplicate https://github.com/inotia00/rvx-builder/issues/7#issuecomment-1296274651