The Vault server could not be contacted

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Busboy
Posts: 55
Joined: Wed Mar 31, 2004 6:25 am

The Vault server could not be contacted

Post by Busboy » Wed Mar 16, 2005 3:42 am

Hi,
I'm having trouble with my Vault connection. Sometimes it's not working, and if I try to repeat the same step a few seconds later, it's OK. Why???

I'm using Vault v3.0.5 on both server and client.
Server is a Win 2003 server with SQL 2000
Client is a Win 2003 server build computer using command line access to Vault.

Some developers are also having Vault connection problems using Vault GUI application.
  • Building project step 'Get from Vault'...
    <vault>
    <!-- An exception was encountered during the get latest operation. Exception: 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 Vault GUI Client. -->
    <error>
    Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.
    </error>
    <exception>
    VaultClientOperationsLib.GetLatestVersionFailedException: Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.
    at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry)
    at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID)
    at VaultClientOperationsLib.ClientInstance.GetToNonWorkingFolder(VaultClientFile[] files, Boolean forceLatest, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData)
    at VaultClientOperationsLib.ClientInstance.GetToNonWorkingFolder(VaultClientFolder folder, Boolean recursive, Boolean forceLatest, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorDiskPath, OverwritePrompt PromptData)
    at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
    at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
    at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
    </exception>
    <result success="no" />
    </vault>

    Some seconds delay...

    Building project step 'Get from Vault'...
    <vault>
    <result success="yes" />
    </vault>

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Wed Mar 16, 2005 8:17 am

Can you try adding the -verbose option to see if we can get more details on the problem.

Also, does the GUI client reproducibly work on the build machine?

Busboy
Posts: 55
Joined: Wed Mar 31, 2004 6:25 am

Post by Busboy » Thu Mar 17, 2005 3:28 am

Here is our output using the -verbose switch
  • Building project step 'Get files from VAULT $/Lib'...
    <vault>
    <!-- An exception was encountered during the get latest operation. Exception: 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 Vault GUI Client. -->
    <error>
    Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.
    </error>
    <exception>
    VaultClientOperationsLib.GetLatestVersionFailedException: Exception of type VaultClientOperationsLib.GetLatestVersionFailedException was thrown.
    at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID, Boolean isRetry)
    at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String currentPathToLabelItem, Int64 labelID)
    at VaultClientOperationsLib.ClientInstance.GetToNonWorkingFolder(VaultClientFile[] files, Boolean forceLatest, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorFullPath, String ancestorDiskPath, OverwritePrompt PromptData)
    at VaultClientOperationsLib.ClientInstance.GetToNonWorkingFolder(VaultClientFolder folder, Boolean recursive, Boolean forceLatest, Boolean overwrite, MakeWritableType makeWritable, SetFileTimeType setFileTime, String ancestorDiskPath, OverwritePrompt PromptData)
    at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
    at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
    at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
    </exception>
    <result success="no" />
    </vault>
The builder user doesn't use "chunked encoding" or a proxy server (using system default=no proxy server specified).

The developers that have "random" problems with Vault GUI are not using the build computer

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Mar 17, 2005 7:49 am

Could you try setting IIS on your 2003 Vault server to run in IIS 5.0 isolation mode? I've seen some instances where 2003 will get confused and kill off connections randomly. See this KB article:

http://support.sourcegear.com/viewtopic.php?p=8430

Busboy
Posts: 55
Joined: Wed Mar 31, 2004 6:25 am

Post by Busboy » Thu Mar 17, 2005 11:08 am

Didn't help - still have problems. See log:
  • Building project step 'Checkin source files'...
    <vault>
    <changeset>
    <ModifyFile id="0" repospath="$/Release/Somefile.RC" localpath="D:\MyProject\Somefile.RC" />
    <ModifyFile id="1" ....
    <ModifyFile id="2" ....
    .... a lot of other files ....
    </changeset>
    <!-- Preparing data to begin transaction -->
    <!-- Beginning transaction -->
    <!-- Server unavailable for transaction begin -->
    <!-- Transaction failed -->
    <!-- An exception was encountered during the transaction. Exception: 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 Vault GUI Client. at VaultClientNetLib.VaultConnection.BeginTx(Int32 nRepID, VaultRequestItem[]& requests, String& strTxID, String comment)
    at VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy, Boolean bIsImport, DateTime dateImport, Int32 nUserIDImport, Int64& nRevID) -->
    <result success="no" />
    </vault>
It appears that the connection is working OK, and then suddenly is broken. This is a major problem, since we are not able to build our software.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Mar 17, 2005 11:38 am

Is there anything odd in your Vault server log file?

Busboy
Posts: 55
Joined: Wed Mar 31, 2004 6:25 am

Post by Busboy » Thu Mar 17, 2005 11:55 am

Just info like this:
  • ----17.03.2005 15:44:40 Builder--buildpc.domain.int(10.0.2.104)--SSL Disabled Login
    ----17.03.2005 15:44:41 Builder--buildpc.domain.int(10.0.2.104)--SSL Disabled Logout

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Mar 17, 2005 1:14 pm

This is a case where the lack of full logging is getting in the way. Email me using the button below, and I'll send you a 3.0.6 build that will hopefully shed more light on this error.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Mar 28, 2005 9:26 am

Turning off HTTP keepalives fixed Busboy's problems. The specific error that was reported was "An unexpected error occurred on a receive." The common cause of this error is a network component that is killing connections while they are still active.

Locked