Error trying to get TextMesh Pro with the Package manager.

I can’t install it, I click install and then get an error saying unable to connect to local server… Why local ?

Error as follows from the editor log.

[Package Manager] Cannot connect to Unity Package Manager local server
Cannot perform upm operation: Cannot connect to Unity Package Manager local server [Unknown]
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.PackageManager.UI.UpmBaseOperation:OnError(Error) (at C:\Users\tg\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.package-manager-ui@1.8.8\Editor\Sources\Services\Upm\UpmBaseOperation.cs:168)
UnityEditor.PackageManager.UI.UpmBaseOperation: Progress() (at C:\Users\tg\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.package-manager-ui@1.8.8\Editor\Sources\Services\Upm\UpmBaseOperation.cs:152)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:183)

(Filename: C:/Users/tg/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.package-manager-ui@1.8.8/Editor/Sources/Services/Upm/UpmBaseOperation.cs Line: 168)

1 Like

Hi @JustAnotherDude ,

Can you share the complete editor.log file and the upm.log files?

Regards,

Pascal

Well, the upm.log is pretty empty :

{"level":"info","message":"Starting Server","timestamp":"2018-05-08T22:15:29.134Z"}
{"level":"info","message":"Health Request received","timestamp":"2018-05-08T22:15:29.618Z"}

The editor log doesn’t offer much more, I attached it here.

Ignore the visual studio errors, it’s because I was using unity during VS update process, you can find the package error by the end of the file.

(BTW, .log files are not allowed to be uploaded, you guys might want to change that :wink:

3490114–277895–Editor.txt (223 KB)

I have looked at both the logs. This is the first time I see this error! Usually, when users cannot connect to the local package manager server (we we will rephrase this so it make more sense for users btw), Unity cannot start at all. In you case, clearly you can use the package manager but for some reason, you cannot at some point. Feels like something is partially blocking the connection to the application. I will have to please ask you to submit a bug so I can get help from our QA dep on this one. Sorry! Follow this link to submit a bug: Unity QA: Building quality with passion

Regards,

Pascal

I’m uploading the bug report right now, I don’t know if it’s related but I’m also getting a lot of errors on an empty project :

“Unable to parse file ProjectSettings/ProjectVersion.txt: [mapping values are not allowed in this context] at line 1”

The file in question has this content :

m_EditorVersion: 2018.1.0f2

Hello RafaelF82,

I apologize for this frustrating issue. Would you be willing to help us get this issue sorted?

  • If you’re comfortable with starting Unity from command line, please do so by adding the argument “-enablePackageManagerTraces” (without the quotes after Unity.exe). So in my case, from the command line, this would look like this:

  • Please attempt to add Textmeshpro once again. Let me know if that fails. If it fails, please send us the logs. The argument adds more information about the CURL requests done by upm.

After this:

  • Would you please confirm you have write rights to the folder mentioned here C:\Users\tg\AppData\Local\Unity\cache\packages\packages.unity.com
  • Additionally, if you do have permissions to that folder, could you kindly delete the cache contained here: C:\Users\tg\AppData\Local\Unity*cache*\packages\packages.unity.com

Once this is done:

  • Would you please attempt to install Textmeshpro once more. Let me know if it works.

Thank you so much for your help in getting this issue addressed.

Cheers,
P

Did so, upm.log is the same :

{"level":"info","message":"Starting Server","timestamp":"2018-05-09T16:53:00.129Z"}
{"level":"info","message":"Health Request received","timestamp":"2018-05-09T16:53:00.633Z"}

Editor log was not much better either :

2018-05-09T16:57:35Z [Package Manager] Cannot connect to Unity Package Manager local server
Cannot perform upm operation: Cannot connect to Unity Package Manager local server [Unknown]
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.PackageManager.UI.UpmBaseOperation:OnError(Error) (at C:\Users\tg\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.package-manager-ui@1.8.8\Editor\Sources\Services\Upm\UpmBaseOperation.cs:168)
UnityEditor.PackageManager.UI.UpmBaseOperation:Progress() (at C:\Users\tg\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.package-manager-ui@1.8.8\Editor\Sources\Services\Upm\UpmBaseOperation.cs:152)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:183)
(Filename: C:/Users/tg/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.package-manager-ui@1.8.8/Editor/Sources/Services/Upm/UpmBaseOperation.cs Line: 168)

I attached the full log to the post.

I have write rights, deleted the cache folder, tried again and it is now working as intended.

Guess something was broken with old files ? I did use beta versions before.

3491030–277972–Editor.txt (107 KB)

Hello RafaelF82,

I am glad the issue was corrected by the cache flushing. We will continue investigating the underlying issue you have reported.

Cheers!
P

1 Like