IOException: Can not write data to the transport connection:

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

Moderator: SourceGear

Post Reply
alexdodo
Posts: 4
Joined: Thu Jun 26, 2014 11:43 am

IOException: Can not write data to the transport connection:

Post by alexdodo » Thu Jun 26, 2014 12:19 pm

I have a vault Version 5.1.1.19215.
In my network have 11 computers (some computer with windows 7, win 2k8).
In one computer, vault client can not connect to server (I don't know when this client stopped working)

The client log is (the client run on LAURA(172.16.247.130) pc):
26/06/2014 11:31:25 a.m. <generic>: [GUIClientWorkerThread:7140] [System.IO.IOException: Can not write data to the transport connection: The connection was closed
en System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
en VaultClientNetLib.VaultConnection.ReadDownloadFileFromStream(Stream inputStream, Stream outputStream, String& fileToken, Int64 totalBytes, Int64& bytesRead, ProgressUpdateFunc UpdateProgress, Boolean bGetPayloadCRC, UInt32& nCRC)
en VaultClientNetLib.VaultConnection.ReadDownloadFileFromStream(Stream inputStream, Stream outputStream, String& fileToken, Int64 totalBytes, Int64& bytesRead, ProgressUpdateFunc UpdateProgress)
en VaultClientNetLib.VaultConnection.GetRepositoryStructure(Int32 nRepID, Int64 nSrcRevision, Int64 nDestRevision, Boolean bRequestDBDeltaOnCacheMiss, Int64& nReturnDestRevision, VaultDateTime dtLastCheck, VaultDateTime& dtLatestCheck, VaultRepositoryDelta& rd)
en VaultClientOperationsLib.ClientInstance.Refresh(Int64 knownServerRevision, Boolean isRetry, VaultRepositoryDelta& delta, Int64& returnedRevision, ChangeSetItemColl committedItems)
en VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Int32 id, String username, String uniqueRepositoryID, Boolean doRefresh, Boolean updateKnownChangesAll)
en VaultClientPresentationLib.GUIClientInstance.ChooseRepository(Boolean forceDialogShow, String inProfile)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)] No se puede escribir datos de en la conexión de transporte: La conexión se cerró.
en System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
en VaultClientNetLib.VaultConnection.ReadDownloadFileFromStream(Stream inputStream, Stream outputStream, String& fileToken, Int64 totalBytes, Int64& bytesRead, ProgressUpdateFunc UpdateProgress, Boolean bGetPayloadCRC, UInt32& nCRC)
en VaultClientNetLib.VaultConnection.ReadDownloadFileFromStream(Stream inputStream, Stream outputStream, String& fileToken, Int64 totalBytes, Int64& bytesRead, ProgressUpdateFunc UpdateProgress)
en VaultClientNetLib.VaultConnection.GetRepositoryStructure(Int32 nRepID, Int64 nSrcRevision, Int64 nDestRevision, Boolean bRequestDBDeltaOnCacheMiss, Int64& nReturnDestRevision, VaultDateTime dtLastCheck, VaultDateTime& dtLatestCheck, VaultRepositoryDelta& rd)
en VaultClientOperationsLib.ClientInstance.Refresh(Int64 knownServerRevision, Boolean isRetry, VaultRepositoryDelta& delta, Int64& returnedRevision, ChangeSetItemColl committedItems)
en VaultClientOperationsLib.ClientInstance.SetActiveRepositoryID(Int32 id, String username, String uniqueRepositoryID, Boolean doRefresh, Boolean updateKnownChangesAll)
en VaultClientPresentationLib.GUIClientInstance.ChooseRepository(Boolean forceDialogShow, String inProfile)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)

Stack Trace:
en VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)
en VaultClientPresentationLib.GUIClientThread.Start()
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()


and the server log is:

----26/06/2014 11:32:56 a.m. laura--LAURA(172.16.247.130)--SSL Disabled Rolling Back a transaction at VaultServiceSQL.VaultSqlConn.RollbackTransaction()
at VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String strDomain, String& strToken, VaultUser& vu, Int32& nValidUserAttempts)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken, String strDomain)
at VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken)
at VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String& strAuthToken)
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.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

----26/06/2014 11:32:56 a.m. laura--LAURA(172.16.247.130)--SSL Disabled Login failed: FailInvalidPassword
----26/06/2014 11:33:12 a.m. admin--LAURA(172.16.247.130)--SSL Disabled Login
----26/06/2014 11:35:03 a.m. admin--LAURA(172.16.247.130)--SSL Disabled Logout
----26/06/2014 11:35:18 a.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 11:56:28 a.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 11:56:40 a.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 11:57:34 a.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 11:57:58 a.m. Laura--LAURA(172.16.247.130)--SSL Disabled Login
----26/06/2014 12:01:44 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:05:04 p.m. dianaa--desa2(172.16.247.5)--SSL Disabled Logout
----26/06/2014 12:11:21 p.m. rodrigo--Rodrigo(172.16.247.100)--SSL Disabled Login
----26/06/2014 12:36:26 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:37:14 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:37:20 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:39:11 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:39:46 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:39:59 p.m. --()-- Exception in plugin thread : The request failed with HTTP status 404: Not Found.
----26/06/2014 12:53:48 p.m. Laura--LAURA(172.16.247.130)--SSL Disabled Logout


sometimes the client can connect, but send many error on xml files ( Atatch the full log, but he message are in spanish).
Attachments
vault.txt
Client log vault
(39.45 KiB) Downloaded 443 times

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

Re: IOException: Can not write data to the transport connect

Post by Beth » Fri Jun 27, 2014 2:39 pm

Try connecting your Vault GUI client to our demo server and see if you get the same results. Login as guest3 with password of guest3 and the server is vaultdemo.sourcegear.com.

Are you receiving the error on the client immediately after connecting or when you are performing a specific action. If on a specific action, which action?

In addition, the error log says something about one of the closing tags in an XML file not being closed. I don't know what file that was on though. You might try a repair install on your Vault client.
Beth Kieler
SourceGear Technical Support

alexdodo
Posts: 4
Joined: Thu Jun 26, 2014 11:43 am

Re: IOException: Can not write data to the transport connect

Post by alexdodo » Tue Jul 01, 2014 10:38 am

Tks for your help

When I try to connect vault server demo I have the message: FailServiceVersionNotSupported
Attach the log whit the response.

I have the error immediately after connect to vault server. Sometimes vault client stay connecting to vault for 4 or 5 minutes, but after this time, send the xml message error.

I try to re install the client many times, but never working, some times, send the xml message error, sometimes send the IOException error. After the uninstall, I review the computer (in to the disk and windows registry) for some file or registry, and try to delete everything, but, when I re install the vault client, I have the same error.
Attachments
vault.laura.log.txt
vault log after connect to vault server test
(2.5 KiB) Downloaded 440 times

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

Re: IOException: Can not write data to the transport connect

Post by Beth » Tue Jul 01, 2014 12:44 pm

When I try to connect vault server demo I have the message: FailServiceVersionNotSupported
Our Vault demo server is on Vault 7. You need at a minimum Vault 7.0 to connect to our demo server.

You said earlier that you had Vault 5.1.1, so it will only connect to a server with some version of Vault 5.x.

Can you pull up a browser and try to reach the URL http://<your Vault server>/vaultservice/index.html. Can you reach that URL? If so, then try http://<your Vault server>/vaultservice/vaultweb and log in. Does that work?
Beth Kieler
SourceGear Technical Support

Post Reply