Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device or resource busy #42

Closed
jackson177 opened this issue Jan 12, 2023 · 2 comments
Closed

Device or resource busy #42

jackson177 opened this issue Jan 12, 2023 · 2 comments

Comments

@jackson177
Copy link

Describe the bug
An error occured:Error: Command failed: su -c 'base_path="/data/adb/revanced/com.google.android.youtube.apk" && mv -f "/data/adb/revanced/ReVanced-YouTube-v18.01.36-cli_v2.20.1-patches_v2.153.4.apk" "$base_path" && chmod 644 "$base_path" && chown system:system "$base_path" && chcon u:object_r:apk_data_file:s0 "$base_path"'mv: bad '/data/adb/revanced/ReVanced-YouTube-v18.01.36-cli_v2.20.1-patches_v2.153.4.apk': Device or resource busyat ChildProcess.exithandler (node:child_process:419:12)at ChildProcess.emit (node:events:513:28)at maybeClose (node:internal/child_process:1091:16)at ChildProcess._handle.onexit (node:internal/child_process:302:5)

To Reproduce
Steps to reproduce the behavior:

  1. Just building
    Screenshots
    If applicable, add screenshots to help explain your problem.

revanced-builder Version: [e.g. latest]

Desktop (please complete the following information):

  • OS: android
  • Version: 13

Additional context
Add any other context about the problem here.

@mainsm
Copy link

mainsm commented Jan 16, 2023

I received almost the same error. I upgraded to Android 13 with Youtube still patched and after rebooting its name changed to APPLICATION_LIGHT (if I recall correctly) and it wouldn't open. I then removed all updates and tried to patch YouTube again with rvx-builder through Termux. I updated rvx-builder first and updated YouTube to the preferred version, 18.0.1.36. This is what my error message said:

[builder] An error occured: Error: Command failed: su -c 'base_path="/data/adb/revanced/com.google.andro && mv -f "/data/adb/revanced/ReVanced-YouTube- cli_v2.20.1-patches_v2.153.6.apk" "$base_path" 66 chmod 644 "$base_path" && chown system:system "$base_path" && chcon u:object_r:apk_data_file: s0 "$base_path" mv: bad /data/adb/revanced/ReVanced-YouTube- cli_v2.20.1-patches_v2.153.6.apk': Device or resource busy

at ChildProcess.exithandler (node:child_process:402:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node: internal/child_process:1100:16) at Process.ChildProcess._handle.onexit (node: internal/child_process:304:5) Please report this bug here: https://github.com/inotia00/rvx- builder/issues.

I then tried building it in Windows 10 but got a different error:

[builder] An error occured:
Error: EBUSY: resource busy or locked, unlink '\?\M:\rvx-builder\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:9at Array.forEach ()
at _rmdirSync (node:fs:1274:10)
at afterbuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:186:53)

@inotia00
Copy link
Owner

This issue occurs if you have ever installed ReVanced / ReVanced Extended via ReVanced Manager or Magisk Module

Please refer to the documentations
https://github.com/inotia00/revanced-documentation/wiki/Method-2.-Using-RVX-Builder-(Windows---MacOS---Linux---Android)#0-if-you-are-preparing-to-install-in-root-environment-follow-the-method-below

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

No branches or pull requests

3 participants