Search Unity

Project gets out of sync when I loose power

Discussion in 'Unity Collaborate' started by Kobaltic1, Nov 15, 2019.

  1. Kobaltic1

    Kobaltic1

    Joined:
    Jan 22, 2015
    Posts:
    144
    I am not sure if this happens only when I loose power, might also happen if I loose internet. Collab doesn't recognize my local repository. So I have to download the whole project again and wait for it update. My project is 40 gigs and takes 3-4 hours for this to happen. Is there a way to get Collab to see my stuff as being synced and not force me to download the whole project again? I am using Unity 2019.1.11f1. I am using which ever version of Collab comes with this version of Unity. It is NOT the V2 beta version.
    Thanks
     
  2. ryanc-unity

    ryanc-unity

    Unity Technologies

    Joined:
    Mar 23, 2016
    Posts:
    1,316
    Hi @Kobaltic1, that sounds really frustrating. The next time that happens, could you try closing your project, going into your project's Library/Collab folder, deleting the CollabSnapshot file, then reopening your project and wait for it to resync to see if that fixes your issue before re-downloading your whole project?
     
  3. Kobaltic1

    Kobaltic1

    Joined:
    Jan 22, 2015
    Posts:
    144
    I will try it when it happens again. Thanks for the reply.
     
    ryanc-unity likes this.
  4. AlcoleponeHome

    AlcoleponeHome

    Joined:
    Jun 9, 2018
    Posts:
    24
    could this help also when my local version of a project is the most uptodate, but collab thinks the server is more uptodate? My machine crashed and now collab wants me to get latest from the cloud, but i know my local version is more uptodate.
     
  5. ryanc-unity

    ryanc-unity

    Unity Technologies

    Joined:
    Mar 23, 2016
    Posts:
    1,316
    Hi @AlcoleponeHome, yes, this above method should in your situation too. Give that a try and check after Collab has had a chance to resync itself with your project if it still thinks that there's a more recent version left to pull.
     
  6. AlcoleponeHome

    AlcoleponeHome

    Joined:
    Jun 9, 2018
    Posts:
    24
    i deleted the CollabSnapshot, collab then wanted me to re-download the whole project again. this proceed to take about a hour. Once complete it did find most of the files were correct, it did show a number of conflicts and new files yet to be added.
    all in all, a single crash has cost me a whole day getting back to the state i was before the crash. Why does unity take so long to load again after a crash, and why does collab struggle to understand the files are the same?
     
  7. ryanc-unity

    ryanc-unity

    Unity Technologies

    Joined:
    Mar 23, 2016
    Posts:
    1,316
    Hi @AlcoleponeHome, I'm so sorry that this crash delayed your work for so long. Without having more information about the kind of crash that happened, it's difficult to be certain on exactly why Collab lost its sync state. We are aware that the snapshot file is a weak point in stability during scenarios when Unity crashes unexpectedly and we plan to address that in future updates. In the meantime, are you currently unblocked? If you run into that crash again then could you please submit a crash report with Unity's Bug Reporter so that we can investigate it further?
     
  8. AlcoleponeHome

    AlcoleponeHome

    Joined:
    Jun 9, 2018
    Posts:
    24
    ok, when i deleted the library folder of the project, collab loses its snyc state, and requires a re-download. the library gets re-imported when the machine crashes. so thats why a machine crash seems to cause the issue.