Error on sharing folder

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

Moderator: SourceGear

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Error on sharing folder

Post by humphry » Fri Oct 28, 2011 1:32 am

We receive an error when we checkin a share.

=========================================================

Version info:
[28-10-2011 8:23:45] Version Check: This Vault Standard client is version 5.1.2.19281
[28-10-2011 8:23:45] Version Check: Your server is version 5.1.2.19281
[28-10-2011 8:23:45] Version Check: The following information was retrieved from the SourceGear website. No information was sent to SourceGear. You can disable this part of the version check from the Options dialog.
[28-10-2011 8:23:45] Version Check: The most recent Server release is version 5.1.2.19281

=========================================================

Action:

Share
$/Trunk/PATH1
into
$/Trunk/PATH2

=========================================================

Client Log:

[28-10-2011 9:14:54] Preparing data to begin transaction
[28-10-2011 9:14:54] Beginning transaction
[28-10-2011 9:14:54] Share $/Trunk/PATH1
[28-10-2011 9:14:54] Ending the transaction
[28-10-2011 9:15:39] An error occurred while trying to end a transaction.
[28-10-2011 9:15:39] An exception was encountered during the transaction. Exception: 1 : Failure at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
at VaultClientNetLib.VaultConnection.EndTx(String strTxID, Int64& nNewRevision, VaultResponseItem[]& responses, Int32 nAction, VaultDateTime& txBeginDate)
at VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, String strChangeSetComment, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID, Int32[]& retBegEndTx)
[28-10-2011 9:15:39] Transaction failed
[28-10-2011 9:16:11] Transaction failed

=========================================================

Server Log:

----10/28/2011 9:15:39 AM USERNAME--COMPUTERNAME(x.x.x.x)--SSL Disabled Rolling Back a transaction at VaultServiceSQL.VaultSqlConn.RollbackTransaction()
at VaultServiceSQL.VaultSqlConn.CloseConn()
at VaultServiceAPILib.VaultServiceAPI.EndTx(Int32 nTxUserID, String strTxID, Int32 nTxAction, VaultIntTx vit, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses, VaultRepository& repNew)
at VaultService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)

----10/28/2011 9:15:39 AM USERNAME--COMPUTERNAME(x.x.x.x)--SSL Disabled Critical Error! Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(String value)
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessShare(Int32 nCurrStatCode, VaultRequestShare vrs, Boolean bCommitWork, VaultTransactionContainer txContainer)
at VaultServiceAPILib.VaultServiceAPI.EndTx(Int32 nTxUserID, String strTxID, Int32 nTxAction, VaultIntTx vit, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses, VaultRepository& repNew)
at VaultService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
----10/28/2011 9:15:39 AM USERNAME--COMPUTERNAME(x.x.x.x)--SSL Disabled *** Flushing tree cache for RepID 2 ***
----10/28/2011 9:15:39 AM USERNAME--COMPUTERNAME(x.x.x.x)--SSL Disabled (GUID-GUID-GUID) EndTx (Revision - 0) returned: Failure
----10/28/2011 9:15:39 AM USERNAME--COMPUTERNAME(x.x.x.x)--SSL Disabled (GUID-GUID-GUID) Share: $/Trunk/PATH1 to $/Trunk/PATH2 returned: Failure


=========================================================

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Re: Error on sharing folder

Post by humphry » Fri Oct 28, 2011 1:34 am

BTW: Moving the folder into the destination folder does work (as stated above: sharing does not).

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

Re: Error on sharing folder

Post by Beth » Fri Oct 28, 2011 8:35 am

The error points to a problem with enough memory to perform the action:
"Critical Error! Exception of type 'System.OutOfMemoryException' was thrown."

Being able to move the folder to that location just means that a move action takes less memory space than a share.

I'll have some steps I can give, but I'll need a little more information about how Vault is set up.

What OS do you have your Vault server installed on?

How much RAM does the Vault server have?

Is the Vault server on a virtual machine?
Beth Kieler
SourceGear Technical Support

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Re: Error on sharing folder

Post by humphry » Mon Oct 31, 2011 6:42 am

We run our vault server on a Microsoft Windows Server 2003 R2 Standard x64 Edition, with Service Pack 2 installed.
The server is a 3 Ghz dual core with 8GB of ram and is not running on a virtual machine.

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

Re: Error on sharing folder

Post by Beth » Mon Oct 31, 2011 7:47 am

I've never seen a memory error in a 64-bit machine.

Can you go to your Control Panel - System - Advanced - Performance Settings - Advanced and then click Change net to the Virtual Memory at the bottom of the window? How much Virtual Ram is configured?

Is the SQL Server on the same machine as Vault or a different machine?
Beth Kieler
SourceGear Technical Support

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Re: Error on sharing folder

Post by humphry » Mon Oct 31, 2011 8:47 am

Configured for Drive 1: 2046-4092
Configured for Drive 2: 4092-8184

Currently used: 6138 total.

SQL Server is on the same machine as Vault Server.

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

Re: Error on sharing folder

Post by Beth » Mon Oct 31, 2011 11:54 am

Do you know if your IIS is configured to run in 32-bit mode or 64-bit mode?

If you're not sure, then open C:\WINDOWS\system32\inetsrv\MetaBase.xml in notepad and look for an entry that starts with Enable32BitAppOnWin64=. What setting do you have there?
Beth Kieler
SourceGear Technical Support

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Re: Error on sharing folder

Post by humphry » Tue Nov 01, 2011 1:36 am

This setting is not set.

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

Re: Error on sharing folder

Post by Beth » Tue Nov 01, 2011 7:51 am

On your Vault server, find where the Vault website was installed. Typically it's in C:\inetpub\wwwroot\vaultservice. Find a file called vault.config and open it in notepad. In there you should see an entry that says <TreeManagerSize>-1/TreeManagerSize>. Change the -1 to 100, then save the file and close it. You may need to change the read-only flag on it to get it to save with the change.

Next, perform an iisreset on the server by going to Start - Run and typing iisreset.
Beth Kieler
SourceGear Technical Support

humphry
Posts: 25
Joined: Thu Aug 20, 2009 5:32 am

Re: Error on sharing folder

Post by humphry » Wed Nov 02, 2011 2:07 am

I get the same error, however it seems to take longer.

=================================================

Client log:

[2-11-2011 8:36:58] Beginning transaction
[2-11-2011 8:36:59] Share $/PATH2
[2-11-2011 8:36:59] Ending the transaction
[2-11-2011 8:39:11] Transaction failed
[2-11-2011 8:38:27] An error occurred while trying to end a transaction.
[2-11-2011 8:38:27] An exception was encountered during the transaction. Exception: 1 : Failure at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
at VaultClientNetLib.VaultConnection.EndTx(String strTxID, Int64& nNewRevision, VaultResponseItem[]& responses, Int32 nAction, VaultDateTime& txBeginDate)
at VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, String strChangeSetComment, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID, Int32[]& retBegEndTx)
[2-11-2011 8:38:27] Transaction failed

=================================================

Server log:

----11/2/2011 8:38:24 AM USERNAME--COMPUTERNAME(IPADDRESS)--SSL Disabled Rolling Back a transaction at VaultServiceSQL.VaultSqlConn.RollbackTransaction()
at VaultServiceSQL.VaultSqlConn.CloseConn()
at VaultServiceAPILib.VaultServiceAPI.EndTx(Int32 nTxUserID, String strTxID, Int32 nTxAction, VaultIntTx vit, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses, VaultRepository& repNew)
at VaultService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)

----11/2/2011 8:38:25 AM USERNAME--COMPUTERNAME(IPADDRESS)--SSL Disabled Critical Error! Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(Char[] value, Int32 startIndex, Int32 charCount)
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at VaultServiceAPILib.VaultTransaction.PreCheckProcessShare(Int32 nCurrStatCode, VaultRequestShare vrs, Boolean bCommitWork, VaultTransactionContainer txContainer)
at VaultServiceAPILib.VaultServiceAPI.EndTx(Int32 nTxUserID, String strTxID, Int32 nTxAction, VaultIntTx vit, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses, VaultRepository& repNew)
at VaultService.VaultService.EndTx(String strTxID, Int32 nTxAction, VaultDateTime& dtTxBegin, Int64& nNewRevision, VaultResponseItem[]& responses)
----11/2/2011 8:38:25 AM USERNAME--COMPUTERNAME(IPADDRESS)--SSL Disabled *** Flushing tree cache for RepID 2 ***
----11/2/2011 8:38:25 AM USERNAME--COMPUTERNAME(IPADDRESS)--SSL Disabled (48ad8b21-3d52-4e80-a7ec-146152ec15c2) EndTx (Revision - 0) returned: Failure
----11/2/2011 8:38:25 AM USERNAME--COMPUTERNAME(IPADDRESS)--SSL Disabled (48ad8b21-3d52-4e80-a7ec-146152ec15c2) Share: $/PATH1 to $/PATH2 returned: Failure


=================================================

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

Re: Error on sharing folder

Post by Beth » Wed Nov 02, 2011 7:44 am

I'd like to take this discussion offline so we could take a closer look. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?

HS: 224292
Beth Kieler
SourceGear Technical Support

sren
Posts: 2
Joined: Thu Mar 01, 2012 7:48 am

Re: Error on sharing folder

Post by sren » Thu Mar 01, 2012 7:50 am

I have the same problem. Did you find a solution to humprys problem?

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

Re: Error on sharing folder

Post by Beth » Fri Mar 02, 2012 2:05 pm

The user in this thread ended up with a problem with their shares, but the symptoms in this forum post doesn't necessarily indicate that as the problem. We should do some troubleshooting first. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support

sren
Posts: 2
Joined: Thu Mar 01, 2012 7:48 am

Re: Error on sharing folder

Post by sren » Wed Mar 14, 2012 5:33 am

Hello Beth
Problem is resolved.
Increasing the physical memory available, and increasing the SQL timeout did the trick.

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

Re: Error on sharing folder

Post by Beth » Wed Mar 14, 2012 8:47 am

Thanks for the update. I'm happy to hear you are working again.
Beth Kieler
SourceGear Technical Support

Post Reply