Search Unity

Question "Could not establish a connection with the Unity Package Manager local server process"

Discussion in 'Package Manager' started by astroboyr, Jun 23, 2020.

  1. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    I get the following error when trying to open my Unity projects in Windows 10.

    upload_2020-6-22_18-10-33.png
    I have also looked at this thread: https://forum.unity.com/threads/rea...g-project-issues-with-package-manager.869683/
    Here are the things I have tried:

    Setting a firewall rule to allow Unity Editor
    upload_2020-6-22_18-11-47.png

    Running this command on an elevated command prompt
    setx UNITY_NOPROXY localhost,127.0.0.1

    I then pressed the "Diagnose" button. Here are the results:
    upload_2020-6-22_18-15-37.png

    As you can see it has taken me to this page. Here is the diagnostic report:
    -----------
    Unity Package Manager Diagnostics (v0.1.5)
    ============
    Ran 7 checks
    ============
    6 succeeded
    1 failed
    ============
    ✅ UPM registry reachable (PASS)
    Make an HTTP request to the UPM package registry
    >> HTTP/1.1 200 OK
    >> X-Powered-By: Express
    >> Provider: Genesis
    >> Date: Tue, 23 Jun 2020 01:13:21 GMT
    >> Connection: close
    ✅ Ping UPM registry (PASS)
    Measure the latency of the UPM package registry API
    >> 12 pings made in 5.421 seconds
    >> Average latency: 72.23 ms
    >> Minimum latency: 67.02 ms
    >> Maximum latency: 86.03 ms
    >> Standard deviation: 5.05
    ✅ Ping UPM download (PASS)
    Measure the latency of the UPM package download endpoint
    >> 6 pings made in 5.452 seconds
    >> Average latency: 128.45 ms
    >> Minimum latency: 125.98 ms
    >> Maximum latency: 131.82 ms
    >> Standard deviation: 2.11
    ✅ UPM registry download speed (PASS)
    Test the Internet connection using the UPM package registry
    >> Measured speed to the UPM registry: 81.57 Megabits per second
    ✅ Speedtest.net (PASS)
    Test the Internet connection using Speedtest.net
    >> Measured speed to the Speedtest.net server: 44.09 Megabits per second
    ✅ HTTP proxy environment variables (PASS)
    Detect whether proxy-related environment variables are set (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, UNITY_PROXYSERVER, UNITY_NOPROXY)
    >> No proxy support has been configured through environment variables.
    ❌ UPM health check (FAIL)
    Start the UPM process and call its health endpoint
    >> Server started but did not respond to health requests:
    >> Error: ETIMEDOUT
    ------


    Here is the accompanying log:

    [2020-06-23T01:13:22.665Z][INFO] Opened report file 'C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_Mon_06_22_2020_181319_53.txt'
    [2020-06-23T01:13:22.665Z][INFO] Starting diagnostics
    [2020-06-23T01:13:22.688Z][INFO][UpmRegistryReachable] Sending HEAD request to https://packages.unity.com
    [2020-06-23T01:13:23.159Z][INFO][PingUpmRegistry] Starting ping test on 'http://packages.unity.com/com.unity.package-manager.metadata'
    [2020-06-23T01:13:28.785Z][INFO][PingUpmDownload] Starting ping test on 'http://download.packages.unity.com/.../com.unity.package-manager.metadata-0.0.1.tgz'
    [2020-06-23T01:13:34.244Z][INFO][UpmRegistryDownloadSpeed] Starting speed test with UPM registry
    [2020-06-23T01:13:39.904Z][INFO][UpmRegistryDownloadSpeed] Download: 81.57 Megabits per second
    [2020-06-23T01:13:39.925Z][INFO][Speedtest.Net] Starting speed test with Speedtest.net
    [2020-06-23T01:13:52.745Z][INFO][Speedtest.Net] Download: 44.09 Megabits per second
    [2020-06-23T01:13:52.745Z][INFO][Speedtest.Net] Upload: 11.85 Megabits per second
    [2020-06-23T01:13:52.809Z][INFO][UpmHealthCheck] Starting health check
    [2020-06-23T01:13:57.942Z][INFO] Finished diagnostics
    [2020-06-23T01:13:57.985Z][INFO] Created report at 'C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_Mon_06_22_2020_181319_53.txt'


    My Unity Hub version is 2.3.2

    I'm not very experienced with Unity and have never posted a thread before, so if I posted in the wrong place please redirect me.

    This problem has been happening for the past 3-4 days. Yesterday I was doing some research and I ran a command which solved it for that day. When I exited and tried again today, its giving the same error, and I can't run the command again. Thank you so much!
    upload_2020-6-22_18-10-33.png upload_2020-6-22_18-11-47.png upload_2020-6-22_18-14-18.png upload_2020-6-22_18-15-37.png
     
  2. Ghat-Smith

    Ghat-Smith

    Joined:
    Aug 16, 2016
    Posts:
    53
    Hi. Got the same problem today, with same diagnosis results.
    After trying fixes from this post and this post, the solution that worked for me was to sign in from the Unity Hub.
    If you are already logged, try to log out from the unity hub and restart it before logging in (as suggested here).
     
  3. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    @Ghat-Smith Logging out and back in sadly did nothing. I already tried the things I could find on the pinned post. I do not have any other antivirus or firewall other than windows defender installed. Do I really need to reinstall...
     
  4. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    My problem is solved, here's how I did it.
    1. Disconnect internet
    2. Open my project
    3. Close my project
    4. Connect to internet
    5. open project

    It's a very temporary solution.
     
  5. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    Trying again today, it has broken again; same error. My method doesn't work anymore
     
  6. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    Any Unity staff that could help would be greatly appreciated...
     
  7. bernardolmn

    bernardolmn

    Joined:
    Jun 25, 2020
    Posts:
    2
    Tambem estou com o mesmo problema,aguardando a equipe da unity se pronunciar.
     
  8. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    @bernardolmn Espero que eles façam em breve, também por favor fale em inglês se você puder...
     
  9. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    I tried reinstalling yesterday, hub and editor, nothing happened, didn't work.
     
  10. bernardolmn

    bernardolmn

    Joined:
    Jun 25, 2020
    Posts:
    2
    @astroboyr I have a Translator installed on my Chrome so I have no difficulty communicating on the Forum, but I will send in English if necessary !!
     
  11. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Can you post your editor.log + upm.log in this thread so we can seek to assist you further?

    https://docs.unity3d.com/Manual/LogFiles.html
     
  12. astroboyr

    astroboyr

    Joined:
    Mar 25, 2019
    Posts:
    14
    Its being really weird. It hasn't been working for the past couple days, but after a good 30 mins of waiting, I pressed the "retry" button and it works. Its kinda random...