Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Package Manager failed to add editor to bundled package. ENOENT: no such file or directory

Discussion in '2D' started by milesjorg, Aug 15, 2022.

  1. milesjorg

    milesjorg

    Joined:
    Aug 12, 2022
    Posts:
    3
    Hello,

    I'm new to Unity an just downloaded Unity Hub 3.2.0 and tried to open my first project with Unity 2020.3.37f1. When I try to open the project, I get this dialogue box:



    I have tried every method I could find to fix this (sign out/in, reimport all, extracting the .tgz files into the packages.unity.com, changing permissions of folder to not just be read only, and even uninstalling Unity 2020.3.37f1 AND Unity Hub and reinstalling. Nothing has worked and I am at my wits end. Has anyone had this issue?

    I have also tried opening projects with Unity 2021.3.8f1 but with the exact same result.

    Here is a portion of the log file Editor.log when opening project with 2020.3.37f1:

    Successfully changed project path to: C:\Users\Miels' First PC\Documents\Unity\Orbit
    C:/Users/Miels' First PC/Documents/Unity/Orbit
    Using Asset Import Pipeline V2.
    Rebuilding Library because the metadata folder could not be found!
    [Package Manager] Done resolving packages with errors in 0.11s seconds
    Failed to resolve packages: Failed to add editor bundled package [C:\Users\Miels' First PC\Documents\Unity\2020.3.37f1\Editor\Data\Resources\PackageManager\Editor\com.unity.2d.animation-5.2.0.tgz] to the package cache:
    ENOENT: no such file or directory, mkdir 'C:\Users\Miels First PC\AppData\Local\Unity\cache\npm\packages.unity.com\.tmp-17984-F5kX7WHTp2dh'. No packages loaded.

    A re-import of the project may be required to fix the issue or a manual modification of C:/Users/Miels' First PC/Documents/Unity/Orbit/Packages/manifest.json file.
    Exiting without the bug reporter. Application will terminate with return code 1


    Here is a portion of the log file Editor.log when opening project with 2021.3.8f1:

    Successfully changed project path to: C:\Users\Miels' First PC\Documents\Unity\Spaceship
    C:/Users/Miels' First PC/Documents/Unity/Spaceship
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=33554432"
    "memorysetup-bucket-allocator-block-count=8"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=33554432"
    "memorysetup-profiler-bucket-allocator-block-count=8"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=16777216"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=33554432"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gi-baking-worker=262144"
    "memorysetup-temp-allocator-size-gfx=262144"
    [Package Manager] Done resolving packages with errors in 0.12s seconds
    Failed to resolve packages: Failed to add editor bundled package [C:\Users\Miels' First PC\Documents\Unity\2021.3.8f1\Editor\Data\Resources\PackageManager\Editor\com.autodesk.fbx-4.1.1.tgz] to the package cache:
    ENOENT: no such file or directory, mkdir 'C:\Users\Miels First PC\AppData\Local\Unity\cache\npm\packages.unity.com\.tmp-18320-18FV8tliTScQ'. No packages loaded.

    A re-import of the project may be required to fix the issue or a manual modification of C:/Users/Miels' First PC/Documents/Unity/Spaceship/Packages/manifest.json file.
    Exiting without the bug reporter. Application will terminate with return code 1


    Please help! :eek:
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,519
    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122
     
  3. milesjorg

    milesjorg

    Joined:
    Aug 12, 2022
    Posts:
    3

    Thank you for the reply. I tried both of these methods but still the same result :(. There is another log I found called upm.log:

    [2022-08-15T22:30:00.102Z][INFO] Command-line: "C:\\Users\\Miels' First PC\\Documents\\Unity\\2021.3.8f1\\Editor\\Data\\Resources\\PackageManager\\Server\\UnityPackageManager.exe" -s 7068 -p 63605 -l 2
    [2022-08-15T22:30:00.110Z][INFO] Creating server instance
    [2022-08-15T22:30:00.174Z][INFO] Starting Server
    [2022-08-15T22:30:00.180Z][INFO] Server started on port [63605]
    [2022-08-15T22:30:00.648Z][INFO] GET '/health' <-- Request received
    [2022-08-15T22:30:00.649Z][INFO] GET '/health' --> 200 (1 ms)
    [2022-08-15T22:30:00.757Z][INFO] POST '/project/dependencies' <-- Request received
    [2022-08-15T22:30:00.812Z][INFO] POST '/project/dependencies' --> 500 (55 ms)

    Could it be that this 500 response from that endpoint is causing my issues?
     
  4. milesjorg

    milesjorg

    Joined:
    Aug 12, 2022
    Posts:
    3
    Ok I found out what it was. I had recently installed a Pi-Hole network-wide ad blocker and when I pointed my DNS away from the raspberry pi static IP address and back to Dynamic (0.0.0.0) I was able to get around the package manager issues. My guess is that my pi hole was blocking a certain domain which the package manager needed to access.