Branch failure (3.52)
Moderator: SourceGear
Branch failure (3.52)
Server & Client: 3.52
We used to branch OK but this time, Vault client returned a popup dialog which just says "Failure". Below are all the logs I got. Can you please help me to sort that out?
Thanks in advance.
Vault Client Message Pane:
[11/13/2007 10:58:38 AM] Preparing data to begin transaction
[11/13/2007 10:58:38 AM] Beginning transaction
[11/13/2007 10:58:39 AM] Branch $/Projects/My Project/CW/Code
[11/13/2007 10:58:40 AM] Ending the transaction
[11/13/2007 10:59:26 AM] An error occurred while trying to end a transaction.
[11/13/2007 10:59:26 AM] Transaction failed
[11/13/2007 10:59:26 AM] Item $/Projects/My Project/CW/Code caused the transaction to fail: Failure
[11/13/2007 10:59:26 AM] Transaction failed
Vault Server, sgvault.log:
----11/13/2007 10:59:25 AM tri (10.11.12.144)--SSL Enabled An error occurred while retrieving the root folder's branch information. The folder could not be branched.
----11/13/2007 10:59:25 AM tri (10.11.12.144)--SSL Enabled System.NullReferenceException: Object reference not set to an instance of an object.
at VaultServiceSQL.VaultSqlSCC.BranchFolder(VaultSqlConn conn, String strSessionID, Int32 nRepID, Hashtable htSharedItems, HybridDictionary htTxModifiedItems, Int64 nTxID, Int32 nTxItem, Byte nTxType, VaultDateTime vdTxBegin, String strItemPath, String strNewBranchName, String strXml, BranchingModTime bmt, VaultFolder vfRoot, String strTxComment, Int32& nCopiedSecurityFolderRights, VaultFolder& vfOut)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessBranchOrSnapshot(Int32 nCurrStatCode, String strSessionID, VaultRequestBranch vrb, Boolean bCommitWork, VaultTransactionContainer txContainer) at VaultServiceSQL.VaultSqlSCC.BranchFolder(VaultSqlConn conn, String strSessionID, Int32 nRepID, Hashtable htSharedItems, HybridDictionary htTxModifiedItems, Int64 nTxID, Int32 nTxItem, Byte nTxType, VaultDateTime vdTxBegin, String strItemPath, String strNewBranchName, String strXml, BranchingModTime bmt, VaultFolder vfRoot, String strTxComment, Int32& nCopiedSecurityFolderRights, VaultFolder& vfOut)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessBranchOrSnapshot(Int32 nCurrStatCode, String strSessionID, VaultRequestBranch vrb, Boolean bCommitWork, VaultTransactionContainer txContainer)
----11/13/2007 10:59:26 AM tri (10.11.12.144)--SSL Enabled (f7048f2e-e313-4bd9-9c8a-63437898de98) EndTx (Revision - 0) returned: Failure
----11/13/2007 10:59:26 AM tri (10.11.12.144)--SSL Enabled (f7048f2e-e313-4bd9-9c8a-63437898de98) CopyBranch: $/Projects/My Project/CW/Code to $/Projects/My Project/CW/Releases/2.7 - Carlsberg (Phase 3)/Code returned: Failure
We used to branch OK but this time, Vault client returned a popup dialog which just says "Failure". Below are all the logs I got. Can you please help me to sort that out?
Thanks in advance.
Vault Client Message Pane:
[11/13/2007 10:58:38 AM] Preparing data to begin transaction
[11/13/2007 10:58:38 AM] Beginning transaction
[11/13/2007 10:58:39 AM] Branch $/Projects/My Project/CW/Code
[11/13/2007 10:58:40 AM] Ending the transaction
[11/13/2007 10:59:26 AM] An error occurred while trying to end a transaction.
[11/13/2007 10:59:26 AM] Transaction failed
[11/13/2007 10:59:26 AM] Item $/Projects/My Project/CW/Code caused the transaction to fail: Failure
[11/13/2007 10:59:26 AM] Transaction failed
Vault Server, sgvault.log:
----11/13/2007 10:59:25 AM tri (10.11.12.144)--SSL Enabled An error occurred while retrieving the root folder's branch information. The folder could not be branched.
----11/13/2007 10:59:25 AM tri (10.11.12.144)--SSL Enabled System.NullReferenceException: Object reference not set to an instance of an object.
at VaultServiceSQL.VaultSqlSCC.BranchFolder(VaultSqlConn conn, String strSessionID, Int32 nRepID, Hashtable htSharedItems, HybridDictionary htTxModifiedItems, Int64 nTxID, Int32 nTxItem, Byte nTxType, VaultDateTime vdTxBegin, String strItemPath, String strNewBranchName, String strXml, BranchingModTime bmt, VaultFolder vfRoot, String strTxComment, Int32& nCopiedSecurityFolderRights, VaultFolder& vfOut)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessBranchOrSnapshot(Int32 nCurrStatCode, String strSessionID, VaultRequestBranch vrb, Boolean bCommitWork, VaultTransactionContainer txContainer) at VaultServiceSQL.VaultSqlSCC.BranchFolder(VaultSqlConn conn, String strSessionID, Int32 nRepID, Hashtable htSharedItems, HybridDictionary htTxModifiedItems, Int64 nTxID, Int32 nTxItem, Byte nTxType, VaultDateTime vdTxBegin, String strItemPath, String strNewBranchName, String strXml, BranchingModTime bmt, VaultFolder vfRoot, String strTxComment, Int32& nCopiedSecurityFolderRights, VaultFolder& vfOut)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessBranchOrSnapshot(Int32 nCurrStatCode, String strSessionID, VaultRequestBranch vrb, Boolean bCommitWork, VaultTransactionContainer txContainer)
----11/13/2007 10:59:26 AM tri (10.11.12.144)--SSL Enabled (f7048f2e-e313-4bd9-9c8a-63437898de98) EndTx (Revision - 0) returned: Failure
----11/13/2007 10:59:26 AM tri (10.11.12.144)--SSL Enabled (f7048f2e-e313-4bd9-9c8a-63437898de98) CopyBranch: $/Projects/My Project/CW/Code to $/Projects/My Project/CW/Releases/2.7 - Carlsberg (Phase 3)/Code returned: Failure
Could there be something wrong in the Code folder?
I got the same error trying the branch operation on 3 different machines, one of them is the Vault Server itself.
The Code folder It has 4 subfolders. If I branch each subfolder then there is no error. Is there any possible reason I can branch the subfolders but failed on the parent folder?
I got the same error trying the branch operation on 3 different machines, one of them is the Vault Server itself.
The Code folder It has 4 subfolders. If I branch each subfolder then there is no error. Is there any possible reason I can branch the subfolders but failed on the parent folder?
I'm sorry I don't have a quick answer, but we have not seen that error before. I don't think this is an issue with the client, but more likely a Vault server or database.
The first step would be to restart IIS when you have the opportunity. You could also try deleting and undeleting the branched folder in the repository.
The first step would be to restart IIS when you have the opportunity. You could also try deleting and undeleting the branched folder in the repository.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
What is the mechanism behind the IISReset action that could possibly make the branching issue disappear? BTW I have seen this suggestion in other posts related to branching issue. Is it a common cure?lbauer wrote:The first step would be to restart IIS when you have the opportunity. You could also try deleting and undeleting the branched folder in the repository.
I can not delete / undelete the branched folder because it doesn't exist (the creation of the branched folder failed).
1. Created $/Projects/My Project/CW/Releases/_TEST_Branch folderlbauer wrote:Try deleting the folder you're trying to branch, and then undelete it. I know this sounds like waving a chicken over your head, but this has worked for some users, by resetting the path.
2. Delete _TEST_Branch folder
3. Undelete
4. Branch $/Projects/My Project/CW/Code to $/Projects/My Project/CW/Releases/_TEST_Branch
Got same error.
Today another user had also failed the branch operation on another repository. The error messages and logs are similar to what I reported here. What is worrying is that repository was stable and had no activity since almost year. I am afraid the upgrade from 3.19 to 3.52 we did in August 2007 had corrupted some data: http://support.sourcegear.com/viewtopic.php?p=34672
Update: issue solved.
We sent our sgvault DB to SourceGear tech support. In spite of a long investigation SG could not reproduce the issue, and suggest to make a clean re-installation: backup sgvault DB, uninstall Vault Server 3.52, restore DB, redownload Vault Server 3.53 and re-install.
I also took the opportunity to apply all latest patches to Win2003 Server and SQL Server 2000.
The branching error is gone after that. I'm not sure if it was the uninstall + reinstall of Vault Server of the Win2003 & SQL2K patches was the main factor but at least the problem is now gone.
After 1.5 months, still works OK. We have just made another successful branch today
Thanks very much to SourceGear tech support for all your help.
We sent our sgvault DB to SourceGear tech support. In spite of a long investigation SG could not reproduce the issue, and suggest to make a clean re-installation: backup sgvault DB, uninstall Vault Server 3.52, restore DB, redownload Vault Server 3.53 and re-install.
I also took the opportunity to apply all latest patches to Win2003 Server and SQL Server 2000.
The branching error is gone after that. I'm not sure if it was the uninstall + reinstall of Vault Server of the Win2003 & SQL2K patches was the main factor but at least the problem is now gone.
After 1.5 months, still works OK. We have just made another successful branch today
Thanks very much to SourceGear tech support for all your help.