Search Unity

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

Discussion in 'Package Manager' started by RPGgeek, Sep 17, 2019.

  1. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    Hi,I was trying to make my own game until two days ago.But i can't developing my game anymore because of unity's weird crash problem.And it says nothing,i did everything come to my mind.
    i've shut off firewall,shut off windows defender,chanced my router,i did everything really.
    But problem doesn't solve and i think problem is seems like major and complex,i don't think i can solve that problem because i am not an experienced computer engineer,i am just university student.
    Please,im waiting your help,i don't wanna reinstall Windows 10 i cant reinstall because I have important information on my system.

    connection status for http://127.0.0.1/ is ok.

    i was installed Razer Cortex software and optimized my game and after that did system clean maybe that's why this problem come up i don't know.

    Here is Editor log.

    Code (JavaScript):
    1. Initiating legacy licensing module
    2.  
    3. LICENSE SYSTEM [2019917 14:5:3] Next license update check is after 2019-09-17T16:08:03
    4.  
    5. Built from '2019.2/staging' branch; Version is '2019.2.5f1 (9dace1eed4cc) revision 10333409'; Using compiler version '191627012'
    6. OS: 'Windows 10  (10.0.0) 64bit' Language: 'tr' Physical Memory: 8106 MB
    7. BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
    8. [Package Manager] Server::Start -- Port 60302 was selected
    9.  
    10. COMMAND LINE ARGUMENTS:
    11. C:\Program Files\Unity\Hub\Editor\2019.2.0b1\Editor\2019.2.5f1\Editor\Unity.exe
    12. Failed to connect to local IPC Name not known
    13. C:/Users/hannibal/Documents/BardakBulmaca
    14. Using Asset Import Pipeline V1.
    15. [Package Manager] Server::EnsureServerProcessIsRunning -- ReadyRequest exceeded maximum alloted time, ran for [693] seconds
    16. [Package Manager] Server::Kill -- Server was shutdown
    17. [Package Manager] PackageManager Server::Start -- Process restart attempt #2
    18.  
    19. [Package Manager] Server::Start -- Port 55698 was selected
    20. [Package Manager] Server::EnsureServerProcessIsRunning -- ReadyRequest exceeded maximum alloted time, ran for [10] seconds
    21. [Package Manager] Server::Kill -- Server was shutdown
    22. [Package Manager] PackageManager Server::Start -- Process restart attempt #3
    23.  
    24. [Package Manager] Server::Start -- Port 55702 was selected
    25. [Package Manager] Cannot connect to Unity Package Manager local server
    26. [Package Manager] Server::EnsureServerProcessIsRunning -- ReadyRequest exceeded maximum alloted time, ran for [10] seconds
    27. [Package Manager] Server::Kill -- Server was shutdown
    28. [Package Manager] PackageManager Server::Start -- Process restart attempt #4
    29.  
    30. [Package Manager] Server::Start -- Port 55704 was selected
    31. [Package Manager] Cannot connect to Unity Package Manager local server
    32. [Package Manager] Server::EnsureServerProcessIsRunning -- ReadyRequest exceeded maximum alloted time, ran for [10] seconds
    33. [Package Manager] Server::Kill -- Server was shutdown
    34. [Package Manager] PackageManager Server::Start -- Process restart attempt #5
    35.  
    36. [Package Manager] Server::Start -- Port 55707 was selected
    37. [Package Manager] Could not establish a connection with the Unity Package Manager local server process. This is most likely due to a proxy or firewall configuration. Make sure the process [C:/Program Files/Unity/Hub/Editor/2019.2.0b1/Editor/2019.2.5f1/Editor/Data/Resources/PackageManager/Server/UnityPackageManager.exe] is reachable via HTTP on the IP address 127.0.0.1.
    38.  
     
    Last edited: Sep 17, 2019
  2. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    Please im wainting for your help,i don't have so much time i have to finish my game within 1 week.
     
  3. samuelb_unity

    samuelb_unity

    Unity Technologies

    Joined:
    Nov 13, 2017
    Posts:
    53
    Hi @RPGgeek,

    I see from the logs that you're using Unity 2019.2.5f1 - were you using a different version of Unity before this issue started occurring?

    If you have other versions of Unity installed, could you try creating a new project in a different Unity version and telling us whether the same issue is occurring?

    Thanks for your patience,
    Sam
     
  4. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    Hi @samuelb_unity thanks for reply.
    No,i have been using 2019.2.5f1 for long time.This problem is occurred suddenly.
    Reinstalling unity didn't solve.
    "could you try creating a new project in a different Unity version" i can't open any project,unity stops itself while loading package manager and after about 1 minute throws that message.
    Now i've reinstalled unith hub,but this time it says "The application path cannot be opened".
     
    Last edited: Sep 17, 2019
  5. samuelb_unity

    samuelb_unity

    Unity Technologies

    Joined:
    Nov 13, 2017
    Posts:
    53
    If you have other versions of Unity installed, could you try creating a new project in a different Unity version and telling us whether the same issue is occurring?

    This will at least tell us whether the problem is system-wide. Thanks!
     
  6. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    @samuelb_unity
    Yes i have 2017.1.0f3 version too.İ tried open my project with that version of unity without unity hub,and it has successifully started my project !
    But in 2019 version problem is continues,i think there is a communicating problem between unity hub and unity.
     
  7. rohitdesai

    rohitdesai

    Joined:
    Jul 26, 2019
    Posts:
    3
    same issue with unity 2019.2.5f1
    proxy setting works with 2018, but its not installed via hub, the thing here is unity 2019 is inside unity hub folder and when you launch unity via proxy settings the editor doesn't load and throughs following error. upload_2019-9-17_15-16-0.png
     
  8. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    İ've tried all of unity 2019 versions but that problem always continue.
    Problem is package manager of unity 2019 itself.
    There is a big problem in here but sadly i have to finish my game in 1 week but how can i ? İ can't even open unity 2019 !

    İ had use a lot of game engines and no one crash like this.
    Reinstalling unity and change version doesn't fix the error.
    Unity let me down.
     
    Last edited: Sep 17, 2019
  9. RPGgeek

    RPGgeek

    Joined:
    Feb 23, 2019
    Posts:
    9
    Reinstalling windows has solved the problem.İ can't believe could be like that bug since 2017.
     
  10. samuelb_unity

    samuelb_unity

    Unity Technologies

    Joined:
    Nov 13, 2017
    Posts:
    53
    Hi @RPGgeek,

    You should never have to re-install Windows to solve a problem with Unity Package Manager. There is most likely some network configuration or antivirus preventing Unity from communicating with Package Manager but it can be hard for us to pinpoint due to the many variables in a user's setup.

    I am sorry to hear about the trouble this has caused you. I ensure you we are working on ways of troubleshooting this issue such as the Unity Package Manager Diagnostics tool that is now shipped with Unity. In recent versions of Unity you will see 3 options: Quit, Retry & Diagnose

    Hi @rohitdesai,

    Could you clarify what you mean by this:
    Were you following these guidelines (https://forum.unity.com/threads/network-configuration.590470/) on setting the HTTP_PROXY and HTTPS_PROXY environment variables? Did you set any other proxy-related environment variables? And did you start Unity directly from the command line or did you start Unity Hub from the command line?
     
  11. F8CHILLYT

    F8CHILLYT

    Joined:
    Sep 21, 2019
    Posts:
    1
    How do you fix this? Please help i want to get into developing and this seems to be one of the best but of doesn't work!
     

    Attached Files:

  12. cassandraL

    cassandraL

    Unity Technologies

    Joined:
    Dec 7, 2017
    Posts:
    91
    Hello @F8CHILLYT,
    Could you run the diagnosis tool to validate your configuration first?

    Instructions:
    1. Download the zip
    2. Unzip
      UnityPackageManagerDiagnostics.zip
    3. Double-click the appropriate
      run-diag-<platform>
      for your OS
    4. Allow permissions to run the script
      • On Mac, you will need to Right-click > Open
        run-diag-macos
        to give permission
    5. Attach the generated report file

    We look forward to seeing your results!
     
  13. dschmuck

    dschmuck

    Joined:
    Nov 27, 2017
    Posts:
    6
    Hi Everyone,
    I am getting the same error message when trying to create projects from Unity Hub.
    I set the HTTP_PROXY and HTTPS_PROXY, but still no success.
    Here are the results of our diagnosis test (the failed tests):

    4 out of 6 checks passed:
    {
    "name": "Ping UPM registry",
    "description": "Measure the latency of the UPM package registry API",
    "result": "FAIL",
    "detail": "No successful pings could be made in 5.393 seconds (0 failed)"
    },
    {
    "name": "Ping UPM download",
    "description": "Measure the latency of the UPM package download endpoint",
    "result": "FAIL",
    "detail": "No successful pings could be made in 5.098 seconds (0 failed)"
    }

    Any help would be extremely appreciated, we are currently unable to keep on going with the production!
     
  14. m_jaeger

    m_jaeger

    Joined:
    Oct 4, 2019
    Posts:
    3
    Same problem occurs to me at my work environment, where we can only connect to the internet through our company proxy server. (At home, without proxy configuration, it works with all unity versions as intended)

    HTTPS_PROXY and HTTP_PROXY environment variables are defined.

    2019.2.0b9 was still working.

    With 2019.2.8f1 and 2019.3.0b5 the following error occurs when opening a project:

    "Could not establish a connection with the Unity Package Manager local server process. This is most likely due to a proxy or firewall configuration. Make sure the process [******/UnityPackageManager.exe] is reachable via HTTP on the IP address 127.0.0.1."

    Running the package manager diagnostics gives me this log:

    4 out of 6 checks passed:
    [
    {
    "name": "UPM registry reachable",
    "description": "Make an HTTP request to the UPM package registry",
    "result": "PASS",
    "detail": "HTTP/1.1 200 OK\nX-Powered-By: Express\nDate: Mon, 30 Sep 2019 07:43:10 GMT\nConnection: close"
    },
    {
    "name": "Ping UPM registry",
    "description": "Measure the latency of the UPM package registry API",
    "result": "FAIL",
    "detail": "No successful pings could be made in 5.838 seconds (0 failed)"

    },
    {
    "name": "Ping UPM download",
    "description": "Measure the latency of the UPM package download endpoint",
    "result": "FAIL",
    "detail": "No successful pings could be made in 6.61 seconds (0 failed)"

    },
    {
    "name": "UPM registry download speed",
    "description": "Test the Internet connection using the UPM package registry",
    "result": "PASS",
    "detail": "Measured speed to the UPM registry: 55.27 Megabits per second"
    },
    {
    "name": "Speedtest.net",
    "description": "Test the Internet connection using Speedtest.net",
    "result": "PASS",
    "detail": "Measured speed to the Speedtest.net server: 3.98 Megabits per second"
    },
    {
    "name": "HTTP proxy environment variables",
    "description": "Detect whether proxy-related environment variables are set (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY, UNITY_PROXYSERVER, UNITY_NOPROXY)",
    "result": "PASS",
    "detail": "Proxy support has been configured through the following environment variables:\nHTTPS_PROXY = http://****removed****:8080\nHTTP_PROXY = http://****removed****:8080"
    }
    ]
     
  15. dschmuck

    dschmuck

    Joined:
    Nov 27, 2017
    Posts:
    6
    Hi @m_jaeger and everyone else struggling with this issue.
    We figured out a way around this, which is working (at least for us).
    Besides setting our HTTP_PROXY and HTTPS_PROXY in our environment variables we also set
    UNITY_NOPROXY=localhost,127.0.0.1
    When only setting it to localhost we still got the error, but adding localhost and 127.0.0.1 Unity starts up fine and the package manager is working as expected.
    Hope this might help somebody else :)
     
    nmcconnellubi likes this.
  16. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    583
    Note:
    localhost,127.0.0.1
    is the *default* value if
    UNITY_NOPROXY
    is not set.
     
  17. m_jaeger

    m_jaeger

    Joined:
    Oct 4, 2019
    Posts:
    3
    Hi! Thanks for the suggestion @dschmuck, but I had already tried this and sadly also doesn't change the outcome for me. :(

    I would be happy about any other suggestions from anyone

    EDIT: just tried it with 2020.1.0a7, also didn't work
     
  18. goel_sam123

    goel_sam123

    Joined:
    Jan 18, 2017
    Posts:
    2
    I am using unity Version 2019.2.6f1 and I downloaded the terrain tools package from unity package manager. I am a noob at developing games and wanted to start with terrain design in unity. However after I restarted unity I got this Wierd Error. - could-not-establish-a-connection-with-the-unity-package-manager. I did set my UNITY_NOPROXY variable but still get this error. I google only to rip my hair apart and finding nothing that worked. Hope this gets resolved soon!
     
  19. jo3d

    jo3d

    Joined:
    Oct 11, 2019
    Posts:
    1
    I had the same issue as dschmuck and setting the UNITY_NOPROXY fixed the problem. How come that it is not working if I dont set the variable? Shouldn`t it work if its default?
     
  20. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    583
    @jo3d. this is really weird! Are you sure you didn't have the
    UNITY_NOPROXY
    env var already defined? And which version of Unity are you using?

    Thanks!
     
  21. nmcconnellubi

    nmcconnellubi

    Joined:
    Oct 10, 2019
    Posts:
    1
    thank you @dschmuck that fixed my problem

    FYI, for unity diagnostics - I installed several versions of the editor. 2019.2.3f1 did not manifest the package manager problem. 2019.2.4f1 and newer versions of the editor did have the problem where it said it could not connect to the package manager on 127.0.0.1

    I am quite certain that I did not have a UNITY_NOPROXY environment variable when I was having problems.

    When I originally installed the editor, I did have the setting no_proxy=artifactory which I don't think should be relevant? I deleted it and that had no impact.

    I tried a couple values for UNITY_NOPROXY. When is had UNITY_NOPROXY=127.0.0.1,localhost that didn't seem to solve my issue, but UNITY_NOPROXY=localhost,127.0.0.1 solved my problem, even though those two seem like they should be equivalent

    Unfortunately, I can no longer test any theories using my current PC, because now that it's in a good state, I can't get it back into a bad state. Even when I delete my environment variable, or set it to a garbage value, like UNITY_NOPROXY=blarg, my editor still starts up fine now
     
    dschmuck likes this.
  22. m_jaeger

    m_jaeger

    Joined:
    Oct 4, 2019
    Posts:
    3
    The issue suddently resolved for me too. What fixed it for me was just doing a restart of windows after setting all the proxy environment variables(http proxy, https proxy, unity_noproxy). After that now everything seems to work with all unity versions.