Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Cannot connect to Unity VCS Server issue

Discussion in 'Unity Version Control' started by mech_alina, Jul 26, 2023.

  1. mech_alina

    mech_alina

    Joined:
    Nov 3, 2020
    Posts:
    26
    Unity VCS would randomly not connect to the servers after startup and then reconnect at some random time later like 1-2 later. This has been happening over the last week or so. Any suggestions?
     
  2. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    429
    Are there any clues as to why this is happening in the log files when the connection is lost?

    Windows: %localappdata%\plastic4\plasticx.debug.log
    Mac: ~/.plastic4/plasticx.debug.log

    Hope this helps!
     
  3. mech_alina

    mech_alina

    Joined:
    Nov 3, 2020
    Posts:
    26
    Hello,

    Here's a snippet of the log below. I want to note that I am in an endless loop of it wanting to sign us in, we click sign in, it says sign in successful then 10 seconds later it keeps saying the same thing


    Code (CSharp):
    1. 2023-07-25 18:56:36,132 LAPTOP-DN081AEL\Alina DEBUG CmProxy - InvokeRemoteMethod failed. Server = xxxxxx@cloud. Error = The auth token expired. User: xxxxxxx@gmail.com.. retryOn = Authentication, HostUnreachable, ServerCertificate
    2. 2023-07-25 18:56:36,132 LAPTOP-DN081AEL\Alina DEBUG CmProxy - InvokeRemoteMethod. Token Expired for server:xxxxxx@cloud. user:xxxxx@gmail.com.
    3. 2023-07-25 18:56:36,137 LAPTOP-xxxxxx\Alina DEBUG WatcherFsNodeReader - FsWatcher. Event path:'c:\Users\Alina\Fitment\Library\PackageCache' type:Changed
    4. 2023-07-25 18:56:36,138 LAPTOP-xxxxxx\Alina DEBUG WatcherFsNodeReader - Watcher 'c:\Users\Alina\Fitment' - Processing change Changed for c:\Users\Alina\xxxxxx\Library\PackageCache
    5. 2023-07-25 18:56:36,138 LAPTOP-xxxxxx\Alina DEBUG WatcherFsNodeReader - Watcher: 'c:\Users\Alina\Fitment'. Cleaned '\Library' cached entries.
    6. 2023-07-25 18:56:36,138 LAPTOP-xxxxxx\Alina DEBUG WatcherFsNodeReader - FsWatcher 'c:\Users\Alina\Fitment'. Speed: 1 events/s
    7. 2023-07-25 18:56:36,148 LAPTOP-DN081AEL\Alina DEBUG ChannelCall - protocol:plasticproto sec:ssl  sentb:      39|sendt:   0|recb:     464|rect:  86|prt:      86|sert:   0|dest:   0|zip:   0|xxxxxx@cloud|GetRepositoryInfoByName
    8. 2023-07-25 18:56:36,148 LAPTOP-DN081AEL\Alina DEBUG InvokeMethodRetry - HasToHandleSocketException. Exception is not a SocketException: The auth token expired. User:xxxxxxxxxxxxxxxxxx@gmail.com.. Aborting retry
    9. 2023-07-25 18:56:36,148 LAPTOP-DN081AEL\Alina DEBUG PlasticPipe - prt:      79|GetRepositoryInfoByName       |xxxxxx@cloud
    10. 2023-07-25 18:56:36,149 LAPTOP-DN081AEL\Alina DEBUG CmProxy - Error invoking GetRepositoryInfoByName. The auth token expired. User:xxxxxx@gmail.com..
    11.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWait(PlasticServer plasticServer, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, Boolean bRetryWriteMethod, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    12.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWaitWithRetry(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    13.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.InvokeMethod(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response)
    14.    at Codice.Client.Common.Connection.PlasticProtocolCmProxy.PlasticProtocolMethodInvoker.DoInvokeMethod(PlasticServer server, Credentials creds, Exception& ex)
    15.  
    16. 2023-07-25 18:56:36,149 LAPTOPxxxxxx\Alina DEBUG CmProxy - InvokeRemoteMethod failed. Server = xxxxxx@cloud. Error = The auth token expired. User: xxxxxx@gmail.com.. retryOn = Authentication, HostUnreachable, ServerCertificate
    17. 2023-07-25 18:56:36,149 LAPTOP-DN081AEL\Alina DEBUG CmProxy - InvokeRemoteMethod. Token Expired for server:xxxxxx@cloud. user:xxxxxx@gmail.com.
    18. 2023-07-25 18:56:36,171 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher - Process changes: 219
    19. 2023-07-25 18:56:36,171 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher - -------ProcessChanges:--------
    20. 2023-07-25 18:56:36,172 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -     timerProcessChange 0 ms, 42 times
    21. 2023-07-25 18:56:36,172 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -         timerIsBinaryPath 0 ms, 40 times
    22. 2023-07-25 18:56:36,172 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -             timerIsBinaryTypePredictor 0 ms, 0 times
    23. 2023-07-25 18:56:36,172 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -     timerGetChangeTypes 16 ms, 18298 times
    24. 2023-07-25 18:56:36,172 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -         timerGetIgnoredTypes 16 ms, 498 times
    25. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -         timerGetCloakedTypes 0 ms, 0 times
    26. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -         timerCheckChanged 0 ms, 0 times
    27. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -             timerChangedCalcHash 0 ms, 0 times
    28. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -         timerGetHiddenTypes 0 ms, 2 times
    29. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher -     timerGetFsNodes 187 ms, 1395 times
    30. 2023-07-25 18:56:36,173 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher - GettingChanges: 219
    31. 2023-07-25 18:56:36,174 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher - ProcessingMoved: 0 (downloading match candidates: 0, match overhead: 0)
    32. 2023-07-25 18:56:36,175 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus: DiskChangesSearcher - SplitModifiedMovedChanges: 0
    33. 2023-07-25 18:56:36,175 LAPTOP-xxxxxx\Alina DEBUG WorkspaceStatus - Search changes time - Total: 219 ms. Disk: 219 ms. Network: 0 ms. Overhead: 0 ms.
    34. 2023-07-25 18:56:36,175 LAPTOP-xxxxxx\Alina INFO  GetStatus - Time to retrieve the pending changes: 219 ms (searching: 219 ms, processingmoved: 0 (downloading: 0 ms, matching: 0 ms), splitting: 0 ms)
    35. 2023-07-25 18:56:36,179 LAPTOP-xxxxxx\Alina DEBUG PendingChangesArea - PendingChangesViewTree.Selection_SelectionChanged invoked
    36. 2023-07-25 18:56:36,181 LAPTOP-xxxxxx\Alina DEBUG GlobalConfig - Getting the repository spec for workspacepath 'c:\Users\Alina\xxxxxx'
    37. 2023-07-25 18:56:36,182 LAPTOP-xxxxxx\Alina DEBUG GlobalConfig - Getting the server config for repository spec 'xxxxxx@xxxxxx@cloud', folder 'externaltools', config file 'externaltools.conf'
    38. 2023-07-25 18:56:36,183 LAPTOP-DN081AEL\Alina DEBUG GlobalConfig - Server config for repository spec 'xxxxxx@xxxxxx@cloud', folder 'externaltools', config file 'externaltools.conf': none
    39. 2023-07-25 18:56:36,255 LAPTOP-DN081AEL\Alina DEBUG ChannelCall - protocol:plasticproto sec:ssl  sentb:     344|sendt:   0|recb:    1402|rect: 122|prt:     122|sert:   0|dest:   0|zip:   0|PlayFitment@cloud|GetSeid
    40. 2023-07-25 18:56:36,255 LAPTOP-DN081AEL\Alina DEBUG InvokeMethodRetry - HasToHandleSocketException. Exception is not a SocketException: Can't obtain a new token (Message: Invalid Refresh Token., Code: 132.104). Aborting retry
    41. 2023-07-25 18:56:36,255 LAPTOP-xxxxxx\Alina DEBUG PlasticPipe - prt:     125|GetSeid                       |xxxxxx@cloud
    42. 2023-07-25 18:56:36,256 LAPTOP-xxxxxx\Alina DEBUG CmProxy - Error invoking GetSeid. Can't obtain a new token (Message: Invalid Refresh Token., Code: 132.104).
    43.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWait(PlasticServer plasticServer, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, Boolean bRetryWriteMethod, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    44.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWaitWithRetry(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    45.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.InvokeMethod(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response)
    46.    at Codice.Client.Common.Connection.PlasticProtocolCmProxy.PlasticProtocolMethodInvoker.DoInvokeMethod(PlasticServer server, Credentials creds, Exception& ex)
    47.  
    48. 2023-07-25 18:56:36,256 LAPTOP-xxxxxx\Alina DEBUG CmProxy - InvokeRemoteMethod failed. Server = xxxxxx@cloud. Error = Can't obtain a new token (Message: Invalid Refresh Token., Code: 132.104). retryOn = HostUnreachable
    49. 2023-07-25 18:56:36,256 LAPTOP-DN081AEL\Alina DEBUG CmConnection - Error trying to renew token creds for xxxxxxxxxxxx@gmail.com. Can't obtain a new token (Message: Invalid Refresh Token., Code: 132.104)
    50. 2023-07-25 18:56:36,256 LAPTOP-DN081AEL\Alina DEBUG CmProxy - AskUserForCredentials. From recently asked. Server: xxxxxx@cloud. User: alina@xxxxxxxx.com
    51. 2023-07-25 18:56:36,256 LAPTOP-DN081AEL\Alina INFO  ServerProfile - Temporary profile [xxxxxx@cloud_SSOWorkingMode_ef6b69a6-b143-472c-8d70-20b3d7a5f52e] to connect to [xxxxxx@cloud] was saved
    52. 2023-07-25 18:56:36,256 LAPTOP-DN081AEL\Alina INFO  CmProxy - Invoking again the remote method with new credentials: [xxxxxx@gmail.com]
    53. 2023-07-25 18:56:36,281 LAPTOP-DN081AEL\Alina DEBUG ChannelCall - protocol:plasticproto sec:ssl  sentb:      39|sendt:   0|recb:     464|rect:  96|prt:      96|sert:   0|dest:   0|zip:   0|xxxxxx@cloud|GetLockRule
    54. 2023-07-25 18:56:36,282 LAPTOP-DN081AEL\Alina DEBUG InvokeMethodRetry - HasToHandleSocketException. Exception is not a SocketException: The auth token expired. User: xxxxxx@gmail.com.. Aborting retry
    55. 2023-07-25 18:56:36,282 LAPTOP-xxxxxx\Alina DEBUG PlasticPipe - prt:      94|GetLockRule                   |xxxxxx@cloud
    56. 2023-07-25 18:56:36,282 LAPTOP-xxxxxx\Alina DEBUG CmProxy - Error invoking GetLockRule. The auth token expired. User: xxxxxx@gmail.com..
    57.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWait(PlasticServer plasticServer, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, Boolean bRetryWriteMethod, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    58.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.SendAndWaitWithRetry(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response, FlexibleBufferPool lz4BufferPool, INegotiateActiveDirectory negotiateActiveDirectory, Int32 connTimeoutMsec, IResolveCloudServer resolveCloudServer)
    59.    at PlasticPipe.PlasticProtocol.Client.ClientTransport.InvokeMethod(PlasticServer server, PlasticMethods method, Credentials creds, INetworkMessage msg, INetworkMessage response)
    60.    at Codice.Client.Common.Connection.PlasticProtocolCmProxy.PlasticProtocolMethodInvoker.DoInvokeMethod(PlasticServer server, Credentials creds, Exception& ex)
     
  4. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    429
    Ahhh the auth token is expiring. I suspect that you have some invalid or outdated values in your profiles.conf and tokens.conf files. These files can be safely deleted, forcing re-authentication when you next start the application.

    If this information still doesn't resolve the problem. I would suggest logging a ticket with support so that we can take a deeper look into this.