Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Error: EBUSY: resource busy or locked, unlink #502

Closed
techroy23 opened this issue Oct 8, 2022 · 2 comments
Closed

Error: EBUSY: resource busy or locked, unlink #502

techroy23 opened this issue Oct 8, 2022 · 2 comments

Comments

@techroy23
Copy link

techroy23 commented Oct 8, 2022

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Ran CMD
  2. Then ran the command npm start or npm start run
  3. See error

revanced-builder Version: 3.4.15
image

Desktop (please complete the following information):

  • OS: Windows
  • Version: 11

Additional context
Tried running on both non elevated and elevated cmd but still got the same result.

[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 '\\?\D:\_RevancedBuilderMain\revanced-cache\1.apk'
    at unlinkSync (node:fs:1775: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 (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at rmSync (node:fs:1270:10)
    at afterBuild (D:\_RevancedBuilderMain\wsEvents\patchApp.js:38:3)
    at Socket.<anonymous> (D:\_RevancedBuilderMain\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/reisxd/revanced-builder/issues.
@reisxd
Copy link
Owner

reisxd commented Oct 8, 2022

Seems like that specific file is locked by an app and because Windows is windows, it'll never tell.

@reisxd reisxd closed this as not planned Won't fix, can't repro, duplicate, stale Oct 8, 2022
@shrihankp
Copy link
Collaborator

APKTool is probably holding that file for itself. Kill the java process from task manager and retry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants