Connection problems
Moderator: SourceGear
Connection problems
Quite frequently (10-15 times a day) we are having connection problems with Vault from within VS.Net 2003. This can occur while opening a project, checking out, or getting latest version. Typically the IDE hangs for 30 seconds or so and then we get a message like this:
The Vault server could not be contacted to perform the operation. Your network connection to the server may have been interrupted. Please verify your network settings using the Options dialog under the Tools menu in the Vauult GUI Client. The underlying connection was closed: An unexpected error occurred on a receive.
Most of the time if you immediately retry the operation it succeds.
Where should we start to diagnose this problem?
The Vault server could not be contacted to perform the operation. Your network connection to the server may have been interrupted. Please verify your network settings using the Options dialog under the Tools menu in the Vauult GUI Client. The underlying connection was closed: An unexpected error occurred on a receive.
Most of the time if you immediately retry the operation it succeds.
Where should we start to diagnose this problem?
A few questions/comments to get started:
1. What version of Vault client/server are you running?
2. Does this happen with the GUI client as well, or only the IDE client?
3. Does it happen on different workstations, and does it happen on remote vs local machines?
4. You might want to turn on client logging and see if there is more info in the log files. See http://support.sourcegear.com/viewtopic.php?t=2898 for more info.
Usually problems like this are due to network issues rather than Vault, such as firewalls or proxies or IIS on the server side timing out the connection.
1. What version of Vault client/server are you running?
2. Does this happen with the GUI client as well, or only the IDE client?
3. Does it happen on different workstations, and does it happen on remote vs local machines?
4. You might want to turn on client logging and see if there is more info in the log files. See http://support.sourcegear.com/viewtopic.php?t=2898 for more info.
Usually problems like this are due to network issues rather than Vault, such as firewalls or proxies or IIS on the server side timing out the connection.
Is your server running IIS 6 (windows server 2003?). If so, take a look at this KB article: http://support.sourcegear.com/viewtopic.php?t=1014
You might also check the Vault server log (%windir%/temp/sgvault) to see if there is any info in there. It will show when users login and logout, so you could verify the sessions are being terminated that way.
You might also check the Vault server log (%windir%/temp/sgvault) to see if there is any info in there. It will show when users login and logout, so you could verify the sessions are being terminated that way.
At 3/29/06 4:07 pm I received an error in the IDE. I'm not seeing anything in the log about the error...here is the log:
3/29/2006 4:06:25 PM <ide>: [<No Name>:3128] [SCCOpenProject] bCreateIfNew=False, bSilentOpen=False, projectName="$/Apps", localPath="C:\Apps", serverPathAndProfile="http://myserver/VaultService|", storedRepID="1"
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:06:25 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:07:03 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:07:03 PM <refresh>: [<No Name>:3128] Refresh finished
3/29/2006 4:07:12 PM <ide>: [<No Name>:3128] [SCCOpenProject] bCreateIfNew=False, bSilentOpen=False, projectName="$/Apps", localPath="C:\Apps", serverPathAndProfile="http://myserver/VaultService|", storedRepID="1"
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Client service GetRepositoryStructure returned: dtLatestCheck 7/1/1850 12:00:00 AM, nReturnDestRevision 63007, rd not null True
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetRepositoryStructure finished.
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1628
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1628
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure returned: returnedRevision 63007, newLatestDate 7/1/1850 12:00:00 AM, delta not null: True
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] RefreshCheckOutList started
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Call GetCheckOutListChanges(Rep 1, Rev 48840, LastUpdt 6/30/1850 11:00:00 PM)
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetCheckOutListChanges started.
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetCheckOutListChanges finished.
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] GetCheckOutListChanges returned: Rev 48840 completeList False, newLastUpdt 6/30/1850 11:00:00 PM
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] New items:
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] <null>
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Release items:
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] <null>
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Source and target check out list revisions are both 48840, and last locking date match. Returning with no update
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] RefreshCheckOutList finished
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling Repository.Update with delta
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Repository.Update finished, calling SaveRepositoryIfNothingOnDisk()
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1396
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] SaveIfNothingOnDisk: not saving
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1396
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refreshing working folder associations from disk
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1448
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1448
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refreshing all change set items without notify
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1484
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1484
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1600
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1600
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling UpdateKnownChanges_RefreshKnown with notify
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling NotifyTreeStructureChanged
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refresh finished
3/29/2006 4:07:13 PM <ide>: [<No Name>:3128] [SCCGetFileStatus] userName="myusername", fileName="KeyFixer.sln", projectName="$/Apps", workingDir="C:\Apps"
3/29/2006 4:07:13 PM <ide>: [<No Name>:3128] [SCCGetFileStatus] userName="myusername", fileName="KeyFixer.vssscc", projectName="$/Apps", workingDir="C:\Apps"
3/29/2006 4:06:25 PM <ide>: [<No Name>:3128] [SCCOpenProject] bCreateIfNew=False, bSilentOpen=False, projectName="$/Apps", localPath="C:\Apps", serverPathAndProfile="http://myserver/VaultService|", storedRepID="1"
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:06:25 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:06:25 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:07:03 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:07:03 PM <refresh>: [<No Name>:3128] Refresh finished
3/29/2006 4:07:12 PM <ide>: [<No Name>:3128] [SCCOpenProject] bCreateIfNew=False, bSilentOpen=False, projectName="$/Apps", localPath="C:\Apps", serverPathAndProfile="http://myserver/VaultService|", storedRepID="1"
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Client service GetRepositoryStructure returned: dtLatestCheck 7/1/1850 12:00:00 AM, nReturnDestRevision 63007, rd not null True
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetRepositoryStructure finished.
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1628
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1628
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] GetRepositoryStructure returned: returnedRevision 63007, newLatestDate 7/1/1850 12:00:00 AM, delta not null: True
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] RefreshCheckOutList started
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Call GetCheckOutListChanges(Rep 1, Rev 48840, LastUpdt 6/30/1850 11:00:00 PM)
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetCheckOutListChanges started.
3/29/2006 4:07:12 PM <connection>: [<No Name>:3128] GetCheckOutListChanges finished.
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] GetCheckOutListChanges returned: Rev 48840 completeList False, newLastUpdt 6/30/1850 11:00:00 PM
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] New items:
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] <null>
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Release items:
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] <null>
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] Source and target check out list revisions are both 48840, and last locking date match. Returning with no update
3/29/2006 4:07:12 PM <checkoutlist>: [<No Name>:3128] RefreshCheckOutList finished
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling Repository.Update with delta
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Repository.Update finished, calling SaveRepositoryIfNothingOnDisk()
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1396
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] SaveIfNothingOnDisk: not saving
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1396
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refreshing working folder associations from disk
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1448
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1448
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refreshing all change set items without notify
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1484
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1484
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Took mutex 1600
3/29/2006 4:07:12 PM <mutex>: [<No Name>:3128] Released mutex 1600
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling UpdateKnownChanges_RefreshKnown with notify
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Calling NotifyTreeStructureChanged
3/29/2006 4:07:12 PM <refresh>: [<No Name>:3128] Refresh finished
3/29/2006 4:07:13 PM <ide>: [<No Name>:3128] [SCCGetFileStatus] userName="myusername", fileName="KeyFixer.sln", projectName="$/Apps", workingDir="C:\Apps"
3/29/2006 4:07:13 PM <ide>: [<No Name>:3128] [SCCGetFileStatus] userName="myusername", fileName="KeyFixer.vssscc", projectName="$/Apps", workingDir="C:\Apps"
It occured again at 4:17 attempting to do a checkout:
3/29/2006 4:16:39 PM <ide>: [<No Name>:3128] [SCCDiff] fileName="AppCon.vb", projectName="$/Apps/KeyFixerProjects/KeyFixer", workingDir="C:\Apps\KeyFixerProjects\KeyFixer", bShowDiffDialog=False
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:16:39 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:17:17 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:17:17 PM <refresh>: [<No Name>:3128] Refresh finished
3/29/2006 4:16:39 PM <ide>: [<No Name>:3128] [SCCDiff] fileName="AppCon.vb", projectName="$/Apps/KeyFixerProjects/KeyFixer", workingDir="C:\Apps\KeyFixerProjects\KeyFixer", bShowDiffDialog=False
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] Refresh started
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] delta passed in was null, retrieving one
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] calling GetRepositoryStructure(1, 63007, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:16:39 PM <connection>: [<No Name>:3128] GetRepositoryStructure started.
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] GetRepositoryStructure started
3/29/2006 4:16:39 PM <refresh>: [<No Name>:3128] Calling client service GetRepositoryStructure(1, 63007, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:17:17 PM <refresh>: [<No Name>:3128] GetRepositoryStructure finished
3/29/2006 4:17:17 PM <refresh>: [<No Name>:3128] Refresh finished
Here is one from the GUIClient @ 4:33...the previous 2 were from the VS IDE:
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Took mutex 1088
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Released mutex 1088
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Took mutex 1092
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Released mutex 1092
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] Refresh started
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] delta passed in was null, retrieving one
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] calling GetRepositoryStructure(1, 63009, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:31:26 PM <connection>: [GUIClientWorkerThread:804] GetRepositoryStructure started.
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] GetRepositoryStructure started
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] Calling client service GetRepositoryStructure(1, 63009, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:32:55 PM <refresh>: [GUIClientWorkerThread:804] GetRepositoryStructure finished
3/29/2006 4:32:55 PM <refresh>: [GUIClientWorkerThread:804] Refresh finished
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Took mutex 1088
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Released mutex 1088
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Took mutex 1092
3/29/2006 4:31:16 PM <mutex>: [GUIClientWorkerThread:804] Released mutex 1092
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] Refresh started
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] delta passed in was null, retrieving one
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] calling GetRepositoryStructure(1, 63009, -1, ref, 7/1/1850 12:00:00 AM)
3/29/2006 4:31:26 PM <connection>: [GUIClientWorkerThread:804] GetRepositoryStructure started.
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] GetRepositoryStructure started
3/29/2006 4:31:26 PM <refresh>: [GUIClientWorkerThread:804] Calling client service GetRepositoryStructure(1, 63009, -1, 7/1/1850 12:00:00 AM, ref, ref, ref)
3/29/2006 4:32:55 PM <refresh>: [GUIClientWorkerThread:804] GetRepositoryStructure finished
3/29/2006 4:32:55 PM <refresh>: [GUIClientWorkerThread:804] Refresh finished
It has happened from the very begining. I was in such a hurry to get off of Visual Source Safe to Vault, I didn't take the time to figure out what the problem was. Even with these issues Vault is way better !
It happens both locally and remotely. We connect directly to the box over HTTP, there is no VPN.
It happens both locally and remotely. We connect directly to the box over HTTP, there is no VPN.