Can I move a repo between v4.1.2 and 5.1.2?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
dmagliola
Posts: 13
Joined: Tue Mar 18, 2008 7:26 pm

Can I move a repo between v4.1.2 and 5.1.2?

Post by dmagliola » Thu Mar 22, 2012 9:08 am

I currently have a repo for a client hosted in one of my servers, which has Vault 4.1.2

Now i'm going to hand over the repo to this client, who'll buy his own licenses for Vault, and it'd be ideal if he can use the latest version.

I was planning on moving the repo using the "VaultFolderExportImport.exe".

Would that work between versions? (in other words, export from 4.1.2 and import into 5.1.2)

If not, how could I do this?

Thanks!
Daniel

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by Beth » Thu Mar 22, 2012 9:26 am

In most cases you can export from one version of Vault and import into another. I haven't had any fail yet due to differences in the versions.

If the user doesn't have his/her own database yet, the other options are:
  • The other user could install Vault 4.1.4, import your repository, and then upgrade to Vault 5.1.2. That user would not need to do anything license keys until users are created to work with the code.

    You could send the user a backup of your sgvault and sgmaster databases, and have the user delete the repositories that aren't needed after a restore is performed.
Beth Kieler
SourceGear Technical Support

dmagliola
Posts: 13
Joined: Tue Mar 18, 2008 7:26 pm

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by dmagliola » Thu Mar 22, 2012 10:00 am

Thank you very much! I'll post here if there's any problem.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by Beth » Thu Mar 22, 2012 10:31 am

You're welcome.
Beth Kieler
SourceGear Technical Support

dmagliola
Posts: 13
Joined: Tue Mar 18, 2008 7:26 pm

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by dmagliola » Thu Mar 22, 2012 1:01 pm

I tried to run the import, it went well for quite a while, but I ended up getting this error:

http://dl.dropbox.com/u/1715552/import_error.jpg

Any idea what could be the problem?

Thank you!
Daniel

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by Beth » Thu Mar 22, 2012 1:28 pm

The error InvalidSessionToken could mean that IIS recycled in the middle interrupting the process or that there was a session timeout. One way to check would be to look in the Vault server log found at %windir%\temp\sgvault\sgvault.log for what the first error at the time you saw the error on the screen. What do you see there?

If you see System Started in the log around the same time, then IIS recycled. If you have IIS set to automatically recycle, then change those settings so that it won't recycle during the improt.
Beth Kieler
SourceGear Technical Support

dmagliola
Posts: 13
Joined: Tue Mar 18, 2008 7:26 pm

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by dmagliola » Thu Mar 22, 2012 3:01 pm

Thank you, I checked the AppPool settings and it's all set to no recycling.
Tried again and it worked the second time. I'm not sure what could've made it recycle the first time, but it's worked perfectly.

Thank you very much for the very quick help!
Daniel

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Can I move a repo between v4.1.2 and 5.1.2?

Post by Beth » Thu Mar 22, 2012 3:20 pm

Thank you for the update. I'm happy to hear you're working now.
Beth Kieler
SourceGear Technical Support

Post Reply