Unity Package Manager Error - no connection with the Unity Package Manager local server process

6171442--675445--upload_2020-8-5_15-21-51.png

I’ve checked multiple times and made sure all of unity is whitelisted on my computer.
I’ve reinstalled it multiple times. Starting to feel a bit defeated.

Here’s the diagnostics report:

Unity Package Manager Diagnostics (v0.1.5)

Ran 7 checks

6 succeeded
1 failed

:white_check_mark: 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: Wed, 05 Aug 2020 13:10:58 GMT
Connection: close

:white_check_mark: Ping UPM registry (PASS)
Measure the latency of the UPM package registry API

6 pings made in 5.314 seconds
Average latency: 144.65 ms
Minimum latency: 143.61 ms
Maximum latency: 146.77 ms
Standard deviation: 1.21

:white_check_mark: Ping UPM download (PASS)
Measure the latency of the UPM package download endpoint

6 pings made in 5.566 seconds
Average latency: 16.96 ms
Minimum latency: 11.41 ms
Maximum latency: 19.27 ms
Standard deviation: 2.80

:white_check_mark: UPM registry download speed (PASS)
Test the Internet connection using the UPM package registry

Measured speed to the UPM registry: 145.93 Megabits per second

:white_check_mark: Speedtest.net (PASS)
Test the Internet connection using Speedtest.net

Measured speed to the Speedtest.net server: 140.12 Megabits per second

:white_check_mark: 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.

:x: UPM health check (FAIL)
Start the UPM process and call its health endpoint

Server exited unexpectedly. Exit code: 101

and the accompanying log:

[2020-08-05T13:10:57.887Z][INFO] Opened report file ‘C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_2020-08-05_151054,95.txt’
[2020-08-05T13:10:57.889Z][INFO] Starting diagnostics
[2020-08-05T13:10:57.893Z][INFO][UpmRegistryReachable] Sending HEAD request to https://packages.unity.com
[2020-08-05T13:10:58.533Z][INFO][PingUpmRegistry] Starting ping test on ‘http://packages.unity.com/com.unity.package-manager.metadata
[2020-08-05T13:11:03.905Z][INFO][PingUpmDownload] Starting ping test on ‘http://download.packages.unity.com/com.unity.package-manager.metadata/-/com.unity.package-manager.metadata-0.0.1.tgz
[2020-08-05T13:11:09.473Z][INFO][UpmRegistryDownloadSpeed] Starting speed test with UPM registry
[2020-08-05T13:11:12.821Z][INFO][UpmRegistryDownloadSpeed] Download: 145.93 Megabits per second
[2020-08-05T13:11:12.823Z][INFO][Speedtest.Net] Starting speed test with Speedtest.net
[2020-08-05T13:11:24.080Z][INFO][Speedtest.Net] Download: 140.12 Megabits per second
[2020-08-05T13:11:24.080Z][INFO][Speedtest.Net] Upload: 12.16 Megabits per second
[2020-08-05T13:11:24.088Z][INFO][UpmHealthCheck] Starting health check
[2020-08-05T13:11:26.110Z][INFO] Finished diagnostics
[2020-08-05T13:11:26.118Z][INFO] Created report at ‘C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_2020-08-05_151054,95.txt’

Hello,

Sorry to see you are having this problem. As per the diagnostic report, the Package Manager server is failing to start, but the reason is not clear. Could you please provide some more information such that we could have a better idea about the issue? Can you provide the logs (Editor.log and upm.log)?

To gather these files, please refer to the Log files section in Unity User Manual (Unity - Manual: Log files)

Please keep in mind these files are written over every time Unity is executed, so they contain only the information from the last launch of the application.

Thanks

I apologize for being unclear. It’s because I myself aren’t too sure what’s wrong.
Both logs are from yesterday.

Here’s the Editor.log:
[LicensingClient] ERROR Failed to connect to local IPC
[Licensing::Module] Failed to connect to channel: LicenseClient-O
[Licensing::Module] Successfully launched the LicensingClient
[Licensing::Module] Successfully connected to LicensingClient on channel: LicenseClient-O
[Licensing::Module] Successfully launched and connected to LicensingClient
Entitlement-based licensing initiated
[LicensingClient] Licenses Updated successfully in LicensingClient

LICENSE SYSTEM [202085 15:32:9] No start/stop license dates set

LICENSE SYSTEM [202085 15:32:9] Next license update check is after 2016-11-23T23:26:09

LICENSE SYSTEM [202085 15:32:9] 00330-80000-00000-AA117 != 00330-80000-00000-AA808

Built from ‘2019.4/staging’ branch; Version is ‘2019.4.6f1 (a7aea80e3716) revision 10989224’; Using compiler version ‘191627012’
OS: ‘Windows 10 (10.0.0) 64bit’ Language: ‘sv’ Physical Memory: 16328 MB
[Licensing::Module] Serial number assigned to: “F3-8BCQ-MQ4E-6TEZ-HAEY-XXXX”\nBatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start – Port 56766 was selected

COMMAND LINE ARGUMENTS:
H:#Unity skola\2019.4.6f1\Editor\Unity.exe
-projectpath
H:#Unity skola\projects\playground1
-useHub
-hubIPC
-cloudEnvironment
production
-hubSessionId
0238e6b0-d715-11ea-bfd2-1901ba76196c
Successfully changed project path to: H:#Unity skola\projects\playground1
H:/#Unity skola/projects/playground1
Using Asset Import Pipeline V2.
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #2

[Package Manager] Server::Start – Port 56770 was selected
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #3

[Package Manager] Server::Start – Port 56771 was selected
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #4

[Package Manager] Server::Start – Port 56773 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #5

[Package Manager] Server::Start – Port 56774 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #6

[Package Manager] Server::Start – Port 56775 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #7

[Package Manager] Server::Start – Port 56776 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #8

[Package Manager] Server::Start – Port 56778 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #9

[Package Manager] Server::Start – Port 56779 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #10

[Package Manager] Server::Start – Port 56780 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #11

[Package Manager] Server::Start – Port 56781 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #12

[Package Manager] Server::Start – Port 56784 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #13

[Package Manager] Server::Start – Port 56785 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #14

[Package Manager] Server::Start – Port 61723 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Server::CheckExitCode – Server stopped with exit code 101
[Package Manager] PackageManager Server::Start – Process restart attempt #15

[Package Manager] Server::Start – Port 61724 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
[Package Manager] Failed to start the Unity Package Manager local server process. Make sure the process [H:/#Unity skola/2019.4.6f1/Editor/Data/Resources/PackageManager/Server/UnityPackageManager.exe] is not blocked by Windows Defender or any other anti-virus configuration.
Exiting without the bug reporter. Application will terminate with return code 1

And here’s the upm.log:
[2020-08-05T13:32:43.177Z][ERROR] [Unity Package Manager (Upm)]
Application terminated due to an uncaught exception:
Error: EISDIR: illegal operation on a directory, read

thanks for providing the logs

is that the only information on upm.log? I can see there is an error, but it seems truncated the end of it. In particular what directory is the source of the illegal operation. Could you share the full content of the upm.log file?

Something that might be worth to try is move Unity installation under a different folder. I see it it is under a folder that starts with the symbol #, I never seen the character # being a problem, but maybe it is.

yeah I thought it looked weird too but that’s all the info that upm.log has in it.
I don’t know if this makes any difference but I had trouble with getting Unity Hub to work before. I installed it on my external SSD in a file called “#Unity” because I like to have it higher up in the list of folders. Unity Hub installed no problem but it wouldn’t open properly. It was like the program opened at then looked like it closed. When I checked the Task Manager it was still running in the background though.

Seems like there’s a pattern here with the # symbol. I have Unity Hub installed on another drive but the folder doesn’t have the # symbol. But I have the Unity Editors installed on my SSD because I have more memory there. And there the folder as you see, have the # symbol. I’ll try to redirect the Editors to another folder without the # symbol and see what happens.

Can confirm that it was probably the # symbol that messed things up for me. Redirected the Unity Editor to another folder without the # in the name and Unity opened up no problem.

Happy to see you found a solution, thanks again for getting back to me with all the information. I can confirm on my end that having # symbol in the installation folder is problematic, I’m submitting a bug to investigate the source of the problem and fix it.

Hey, I got the same problem. Please help me in fixing this one.

upm-diag.log

[2020-08-08T09:33:02.781Z][INFO] Opened report file ‘C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_08-08-2020_150234_57.txt’
[2020-08-08T09:33:02.784Z][INFO] Starting diagnostics
[2020-08-08T09:33:02.788Z][INFO][UpmRegistryReachable] Sending HEAD request to https://packages.unity.com
[2020-08-08T09:33:05.268Z][INFO][PingUpmRegistry] Starting ping test on ‘http://packages.unity.com/com.unity.package-manager.metadata
[2020-08-08T09:33:11.654Z][INFO][PingUpmDownload] Starting ping test on ‘http://download.packages.unity.com/com.unity.package-manager.metadata/-/com.unity.package-manager.metadata-0.0.1.tgz
[2020-08-08T09:33:17.106Z][INFO][UpmRegistryDownloadSpeed] Starting speed test with UPM registry
[2020-08-08T09:33:30.098Z][INFO][UpmRegistryDownloadSpeed] Download: 773.56 Kilobits per second
[2020-08-08T09:33:30.100Z][INFO][Speedtest.Net] Starting speed test with Speedtest.net
[2020-08-08T09:33:44.589Z][INFO][Speedtest.Net] Download: 5.06 Megabits per second
[2020-08-08T09:33:44.589Z][INFO][Speedtest.Net] Upload: 3.54 Megabits per second
[2020-08-08T09:33:44.601Z][INFO][UpmHealthCheck] Starting health check
[2020-08-08T09:33:49.856Z][INFO] Finished diagnostics
[2020-08-08T09:33:50.501Z][INFO] Created report at ‘C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_08-08-2020_150234_57.txt’

6182432–677228–diagnostic_report_08-08-2020_150234_57.txt (1.58 KB)

The same here:

[2020-08-10T12:37:36.728Z][INFO] Opened report file 'C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_10_08_2020_143731_17.txt'
[2020-08-10T12:37:36.733Z][INFO] Starting diagnostics
[2020-08-10T12:37:36.743Z][INFO][UpmRegistryReachable] Sending HEAD request to https://packages.unity.com
[2020-08-10T12:37:37.408Z][INFO][PingUpmRegistry] Starting ping test on 'http://packages.unity.com/com.unity.package-manager.metadata'
[2020-08-10T12:37:42.603Z][INFO][PingUpmDownload] Starting ping test on 'http://download.packages.unity.com/com.unity.package-manager.metadata/-/com.unity.package-manager.metadata-0.0.1.tgz'
[2020-08-10T12:37:47.850Z][INFO][UpmRegistryDownloadSpeed] Starting speed test with UPM registry
[2020-08-10T12:37:52.715Z][INFO][UpmRegistryDownloadSpeed] Download: 89.70 Megabits per second
[2020-08-10T12:37:52.730Z][INFO][Speedtest.Net] Starting speed test with Speedtest.net
[2020-08-10T12:38:05.005Z][INFO][Speedtest.Net] Download: 75.99 Megabits per second
[2020-08-10T12:38:05.005Z][INFO][Speedtest.Net] Upload: 14.76 Megabits per second
[2020-08-10T12:38:05.059Z][INFO][UpmHealthCheck] Starting health check
[2020-08-10T12:38:10.250Z][INFO] Finished diagnostics
[2020-08-10T12:38:10.294Z][INFO] Created report at 'C:\ProgramData\Unity\UnityPackageManagerDiagnostics\diagnostic_report_10_08_2020_143731_17.txt'

6187467–678267–diagnostic_report_10_08_2020_143731_17.txt (1.53 KB)

Hello,
I want to use Unity and I was very happy,UNTIL this error showed up
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 […] is reachable via HTTP on the IP address 127.0.0.1.
PLEASE HELP ME UNITY…
I have done many stuff like proxy and many things
My windows Version is windows 10 1903
I am new to UNITY so please help.
THANK YOU

Workaround for me:

  • Turn all Internet connection OFF (WLAN,Ethernet)
  • Start Unity Hub
  • Open your project
  • When its loaded: Turn your Internet connection ON

Works for me with: 2019.3.14f1 / 2020.1.1f1 (was not tested)