Search Unity

EBUSY: resource busy or locked

Discussion in 'Package Manager' started by angel1st, Mar 12, 2020.

  1. LeonRuben

    LeonRuben

    Joined:
    Jan 28, 2022
    Posts:
    1
    that was exactly my problem, thanks!
     
  2. tengoad

    tengoad

    Joined:
    Jan 18, 2022
    Posts:
    1
    Dang, bro, this did the trick for me! You are a lightsaber! I mean lifesaver
     
  3. Willian-Ferreira

    Willian-Ferreira

    Joined:
    Oct 8, 2019
    Posts:
    1
    Deve-se fechar o VS Code, o recurso está em uso, o compilador o mantém, ao fechar você consegue o acesso, quando um recurso é baixado, precisa compilar para ler e se tornar funcional.
    Embora seja um problema chato, não tem muito o que fazer a não ser fechá-lo .
     
  4. JustinOdle

    JustinOdle

    Joined:
    Sep 3, 2021
    Posts:
    2
    This is happening in version 2020.3.29f as well.
     
  5. seacharge

    seacharge

    Joined:
    May 25, 2018
    Posts:
    5
    frustratingunityissue.jpg

    frustratingunityissue2.jpg

    I have visual studio closed, windows real-time protection turned off. Yet resource is still locked.

    This issue will also occur after a fresh boot, and launching straight into Unity.

    Incredibly frustrating, really.

    Only workaround to get Unity to launch is to remove 'com.unity.visualstudio' from both Packages > manifest.json and packages-lock.json, but this is not a solution as attempting to reinstall the visual studio package will also throw the same error:

    frustratingunityissue3.jpg

    Info:
    Platform
    - Windows 10 Pro, 10.0.19044 Build 19044
    Unity Hub - v3.0.1
    Unity Editor - 2021.2.13f1
     
    dwexel and Niiloz like this.
  6. raiaashish101

    raiaashish101

    Joined:
    Aug 25, 2021
    Posts:
    1
    close your VS code
     
  7. rhytham_the_great

    rhytham_the_great

    Joined:
    Sep 19, 2021
    Posts:
    1
    Thanks, It worked. What a silly issue!
     
  8. unity_AF4FDF886DFF36949096

    unity_AF4FDF886DFF36949096

    Joined:
    Dec 15, 2021
    Posts:
    2
    that solved my problem thanks!
     
  9. dogboydog

    dogboydog

    Joined:
    Nov 23, 2012
    Posts:
    53
    I run into this every few months and throw everything at the wall until something sticks. Currently stuck on this again

    upload_2022-4-15_11-30-0.png

    I have tried all of the following multiple times:

    - Delete Packages\packages-lock.json , Temp, and Library recursively
    - I already have the git file monitor turned off
    upload_2022-4-15_11-34-2.png
    - No code editors are open
    - Process explorer shows no handles on anything in the folder for the game
    - disabled windows defender active protection
    - rebooted many times and immediately retried opening the project without opening any other programs
    upload_2022-4-15_11-34-27.png

    Edit: Fixed it! I started closing processes one by one until I found the issue. I believe the issue was the indexing service of "search everything" by voidtools (great tool btw, gets around the poorly implemented start menu search on Windows).
     
    Last edited: Apr 15, 2022
  10. gnp89

    gnp89

    Joined:
    Jun 25, 2012
    Posts:
    36
    oh god thanks, was driving me crazy
     
  11. Niiloz

    Niiloz

    Joined:
    Apr 1, 2020
    Posts:
    1
    I have this exact same issue on 4 different machines but only on Unity 2021 versions. The worst is i always get it to run after thousands of reboots or marking the ProjectCache folder to not be read-only. But I never seem to find the reason for why it did work this time. I also checked the folders via the process explorer and there is only Unity processes acessing the files. Any UnityEngine dev here who knows what the issue is ?
     
  12. BK2O1988

    BK2O1988

    Joined:
    Dec 14, 2016
    Posts:
    1
    Wauuuuuu worked like a charmmm :)
     
  13. farrukh_sajjad

    farrukh_sajjad

    Joined:
    Apr 16, 2020
    Posts:
    1
    Thanks mate!
     
  14. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,305
    git monitoring mentioned previous in thread lead me to close Fork app before updating VS (*NOT* VS Code) package
    no more EBUSY: resource busy or locked on 2021 LTS but still getting in on 2019 where it's not possible to update it past 2.0.9 (current being 2.0.15)
     
  15. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,305
    btw I tried to look for the locked resource when the error happened but it looked like the whole temp directory was gone already at the time the error dialog was displayed
    (also maybe worth mentioning - my unity UPM/npm caches are not at default location but changed via UPM_ env variables)
     
  16. uzan352

    uzan352

    Joined:
    Oct 1, 2018
    Posts:
    1
    Thank you, it's work for me
     
  17. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,305
    FWIW spamming UPM's 'Update to 2.0.xx' button whenever possible eventually worked ¯\(o_o)/¯
     
  18. esanuriana08

    esanuriana08

    Joined:
    Jan 10, 2021
    Posts:
    13
    Perpect!!!!! thanks
     
  19. seacharge

    seacharge

    Joined:
    May 25, 2018
    Posts:
    5
    Revisited this recently on my Windows machine and unsurprisingly I am still encountering the issue.

    Whatever the problem is, it's on Unity's end. They aren't interested in solving it, and I'm not incentivised to find a solution. Whatever 'bcl.exe', 'vswhere.exe', 'COMIntegration.exe' is, it's not an issue on OSX.

    I'm tired of finding a solution, and have been using Unity with no issues on OSX for the past 3 months. So if you're fortunate enough to own both platforms, just work on your mac.
     
  20. Eristen

    Eristen

    Joined:
    Jun 17, 2021
    Posts:
    17
    bruh same, thanks!
     
  21. ArisenShard

    ArisenShard

    Joined:
    Jul 18, 2021
    Posts:
    9
    To confirm, closing onedrive fixed the issue for me, presumably because unity and onedrive had access to the same project folder.
     
  22. dcb2

    dcb2

    Joined:
    Feb 18, 2022
    Posts:
    2
    Thank you so much dude. I was looking solution for this.
     
  23. kirby1999

    kirby1999

    Joined:
    Jul 18, 2022
    Posts:
    1
    Works for me! Thanks!
     
  24. Pr0gr1m

    Pr0gr1m

    Joined:
    Sep 11, 2021
    Posts:
    6
    Thank you!
     
  25. KyooSik

    KyooSik

    Joined:
    Aug 20, 2022
    Posts:
    2
    I had this issue when my VisualStudio Professional trial version was outdated.
    After uninstalling VisualStudio 22(which was outdated) via VisualStudio Installer, the error was resolved
     
  26. SergentMT

    SergentMT

    Joined:
    Mar 14, 2017
    Posts:
    11
    I just found a possible solve for this issue:
    Disable Microsoft Defender Real-time protection! Or even better: If you keep your projects in a single folder, e.g.: "Unity projects/", then exclude it from real-time protection.
     
  27. aryajohary

    aryajohary

    Joined:
    Mar 10, 2022
    Posts:
    1
    Thanks very much Sir. It solved the issue.
     
  28. Deagarys

    Deagarys

    Joined:
    Mar 20, 2019
    Posts:
    2
    What was the process called? I cant seem to figure out which one it is. and yeah Search Everything is amazing except for now
     
  29. EyeMD

    EyeMD

    Joined:
    Feb 28, 2015
    Posts:
    12
    Getting same issue. I don't use VS Code. I've tried unchecking "read only" from my folders - but windows 10 keeps reverting it back to read only. I've tried everything I can find to get windows to stop doing that, no success. Any ideas? Thanks
     
  30. dwexel

    dwexel

    Joined:
    Sep 29, 2022
    Posts:
    2
    This is what is was for me, but I had to turn off all the options in windows security "virus and threat protection," including cloud-delivered protection
     
    supita_unity likes this.
  31. parisazarei7

    parisazarei7

    Joined:
    Mar 7, 2018
    Posts:
    3
    Thanks
     
  32. rbisso

    rbisso

    Joined:
    Jul 13, 2011
    Posts:
    29
    Closing VSCode worked for me, too. Thank you!
     
    xucian likes this.
  33. zsy00

    zsy00

    Joined:
    May 18, 2023
    Posts:
    1
    Thank you so much.><