URGENT: Vault is messed up -- listintg two repositories...
Moderator: SourceGear
URGENT: Vault is messed up -- listintg two repositories...
..and missing lots of files/folders!!!
This is a pseudo-public server -- go to http://novotny.org:81/vaultservice/vaultweb (login/pass: guest) to see. There used to be only one repository showing, Aimutation. Now there are two. When I use the client it prompts me for two diffferent versions of the repository now. It's also missing files/folders. There should be at least 7 subfolders of Aimutation but only one is showing up.
Due to the stored procs being encrypted, I can't totally trace the cause. But, based on the data from the execution plan of spgetrepositories, it appears that the join of tbltreerevisionfolders is outputing two records when I suspect that it should be outputing one record (just the single repository).
Please help! I don't know how/why this happened but we need this fixed ASAP!
Feel free to email me to take this offline; the forum should have my email address listed.
Thanks,
--Oren
This is a pseudo-public server -- go to http://novotny.org:81/vaultservice/vaultweb (login/pass: guest) to see. There used to be only one repository showing, Aimutation. Now there are two. When I use the client it prompts me for two diffferent versions of the repository now. It's also missing files/folders. There should be at least 7 subfolders of Aimutation but only one is showing up.
Due to the stored procs being encrypted, I can't totally trace the cause. But, based on the data from the execution plan of spgetrepositories, it appears that the join of tbltreerevisionfolders is outputing two records when I suspect that it should be outputing one record (just the single repository).
Please help! I don't know how/why this happened but we need this fixed ASAP!
Feel free to email me to take this offline; the forum should have my email address listed.
Thanks,
--Oren
Oren:
Off the top of my head, I'd say your tree has two roots. Or in DB layer terms - there are two rows in tbltreerevisionfolders for the repositories latest transaction with a tree level = 0 (root).
To be honest, I'm not sure why you would have two roots. Do you know what happened before the double listing? Any transactions besides add folder, add file, checkin/modify in the last couple of weeks? Was anyone modifying / adding the sgvault database's triggers, stored procedures, or anything else at the DB layer? Possibly a DB restoration or anything of the type?
Do you have a relatively current backup (last 12 hours or so), in which the repository is unaffected? If so, you may want to do a restore.
If not, to sync things back up, we'll have to modify tbltreerevisionolders and possibly examine tblfolderentries for consitency. Unfortunately, I'm out of the office right now, so you can send me an e-mail tomorrow, and we'll resolve the problem off-forum. ( Just click the email button below. )
Off the top of my head, I'd say your tree has two roots. Or in DB layer terms - there are two rows in tbltreerevisionfolders for the repositories latest transaction with a tree level = 0 (root).
To be honest, I'm not sure why you would have two roots. Do you know what happened before the double listing? Any transactions besides add folder, add file, checkin/modify in the last couple of weeks? Was anyone modifying / adding the sgvault database's triggers, stored procedures, or anything else at the DB layer? Possibly a DB restoration or anything of the type?
Do you have a relatively current backup (last 12 hours or so), in which the repository is unaffected? If so, you may want to do a restore.
If not, to sync things back up, we'll have to modify tbltreerevisionolders and possibly examine tblfolderentries for consitency. Unfortunately, I'm out of the office right now, so you can send me an e-mail tomorrow, and we'll resolve the problem off-forum. ( Just click the email button below. )
Jeff Clausius
SourceGear
SourceGear
Oren:
One other quick question...
What is the Vault server's configuration? ( OS / IIS version / .Net Framework version )?
By chance have you configured the Vault server to run under ASP.Net 2.0 / .Net 2.0 Framework (Beta)?
One other quick question...
What is the Vault server's configuration? ( OS / IIS version / .Net Framework version )?
By chance have you configured the Vault server to run under ASP.Net 2.0 / .Net 2.0 Framework (Beta)?
Last edited by jclausius on Mon Aug 16, 2004 10:15 am, edited 2 times in total.
Jeff Clausius
SourceGear
SourceGear
This turned out to be a nasty problem.
Oren was using Vault on a .Net 2.0 Framework based server. Unfortunately, there are some inconsistencies in the Framework, which caused the server to not be able to re-create his source tree.
The solution at this point is to start fresh, using Vault on a 1.1 .Net Framework based machine.
[quick addendum]
This problem will be addressed in Vault 2.1. Until that point, please stick within the 1.1 .Net Framework.
Oren was using Vault on a .Net 2.0 Framework based server. Unfortunately, there are some inconsistencies in the Framework, which caused the server to not be able to re-create his source tree.
The solution at this point is to start fresh, using Vault on a 1.1 .Net Framework based machine.
[quick addendum]
This problem will be addressed in Vault 2.1. Until that point, please stick within the 1.1 .Net Framework.
Jeff Clausius
SourceGear
SourceGear
Two repositories
I'm having this same exact same issue with Vault 2.0.9 (I know -- time to upgrade, but I have a client using the same version, so I'm waiting until they upgrade).
I just installed 2.0 Framework on the server and now I'm exhibiting the same problems (2 repositories returned in Vault admin tool).
I switched the vaultservice and vaultshadowfolder virtual directories back to 1.1 after I realized the problem, but no luck.
I just installed 2.0 Framework on the server and now I'm exhibiting the same problems (2 repositories returned in Vault admin tool).
I switched the vaultservice and vaultshadowfolder virtual directories back to 1.1 after I realized the problem, but no luck.
Some suggestions:
We'd recommend uninstalling Vault, then uninstalling the 2.0 Framework.
Then register the 1.1 Framework:
The files in users' local working directories will most likely be later versions than the versions in the database. Status may be Renegade (not checked out) or Edited (checked out). Checkout renegade files without overwriting the local file (or temporarily use CVS mode and commit), and checkin the checked out files to at least get the latest versions of your files back into the database.
We'd recommend uninstalling Vault, then uninstalling the 2.0 Framework.
Then register the 1.1 Framework:
Restore your last known good version of the sgvault database. Re-install Vault 2.0.6.At a command prompt, type the following, and then press ENTER:
"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i
In this path, version represents the version number of the .NET Framework that you installed on your server. You must replace this placeholder with the actual version number when you type the command.
The files in users' local working directories will most likely be later versions than the versions in the database. Status may be Renegade (not checked out) or Edited (checked out). Checkout renegade files without overwriting the local file (or temporarily use CVS mode and commit), and checkin the checked out files to at least get the latest versions of your files back into the database.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Thanks for the info. I have a few follow-ups:
a) I'm not sure of the details of the problem based on previous post...is it possible to run that version of vault on a server with aspnet 1.1 and 2.0 installed, as long as I run the vaultservices site in an applicaton pool with only 1.1 apps?
b) I'd like to upgrade, but I have a customer who is still using this old version and I need to connect to their server periodically. Is it possible for me to run both versions of the client on my machine -or- is the latest client backward compatible with the older versions?
a) I'm not sure of the details of the problem based on previous post...is it possible to run that version of vault on a server with aspnet 1.1 and 2.0 installed, as long as I run the vaultservices site in an applicaton pool with only 1.1 apps?
b) I'd like to upgrade, but I have a customer who is still using this old version and I need to connect to their server periodically. Is it possible for me to run both versions of the client on my machine -or- is the latest client backward compatible with the older versions?
We've spent half the afternoon experimenting with 2.0.6 on Win2003 with the different frameworks, but didn't come up with a definitive answer.a) I'm not sure of the details of the problem based on previous post...is it possible to run that version of vault on a server with aspnet 1.1 and 2.0 installed, as long as I run the vaultservices site in an applicaton pool with only 1.1 apps?
Vault 2.0.6 may run under the 2.0 Framework, but if your database was created under 1.1, the database won't work in the 2.0 Framework. The first transaction will cause the repository problem you have already encountered.
It might work if you register the 1.1 Framework and then restore the good database, and reinstall Vault. But having the 2.0 Framework on the machine may still cause problems.
The two best options are:
1 -- Run Vault 2.0.6 on a machine that does not have the .NET Framework 2.0
2. Upgrade to Vault 3.1.7, which supports either 1.1 or 2.0 of the .NET Framework. To do this, you would uninstall Vault 2.0.6, restore the good copy of the database and then install the new version of Vault. You can purchase Gold Support to upgrade your licenses.
https://store.sourcegear.com/sgstore/va ... grade.aspx
You should still be able to run a Vault 2.0.6 client on the same machine.b) I'd like to upgrade, but I have a customer who is still using this old version and I need to connect to their server periodically. Is it possible for me to run both versions of the client on my machine -or- is the latest client backward compatible with the older versions?
http://support.sourcegear.com/viewtopic.php?t=4010
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager