Vault with CC.NET - get latest/version history exception

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

Moderator: SourceGear

Post Reply
code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Vault with CC.NET - get latest/version history exception

Post by code » Mon Jul 21, 2008 2:38 am

Hi,

I have spotted this error recently in our CC.NET logs for a specific project. When CC.NET checks for any changes in the repository code base, Vault continually throws the following errors so the latest version history cannot be obtained.

Code: Select all

Starting process [C:\Program Files\SourceGear\Vault Client\vault.exe] in working directory [D:\[PATH SNIPPED]] with arguments [versionhistory "$/[REPO SNIPPED]/" -rowlimit 1 -host src.dev -user web.dev -password [PASSWORD SNIPPED] -repository "[REPO NAME SNIPPED]"]

<vault>                                                                                                                                                                                           
  <error>                                                                                                                                                                                         
    <exception>System.Exception: No object was found at the repository path: $/[REPO SNIPPED]                                                                                              
   at VaultClientIntegrationLib.RepositoryUtil.FindVaultTreeObjectAtReposOrLocalPath(String testPath)                                                                                             
   at VaultClientIntegrationLib.RepositoryUtil.FindVaultFolderAtReposOrLocalPath(String testPath)                                                                                                 
   at VaultClientIntegrationLib.ServerOperations.ProcessCommandVersionHistory(String folderPath, Int64 versionHistoryBeginVersion, VaultDateTime beginDate, VaultDateTime endDate, Int32 rowLimit)
   at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)                                                                                                                           
   at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>                                                                                                                       
  </error>                                                                                                                                                                                        
  <result>                                                                                                                                                                                        
    <success>False</success>                                                                                                                                                                      
  </result>                                                                                                                                                                                       
</vault>                                                                                                                                                                                          


Attempt 2 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: C:\Program Files\SourceGear\Vault Client\vault.exe versionhistory "$/[REPO SNIPPED]/" -rowlimit 1 -host src.dev -user web.dev -password [PASSWORD SNIPPED] -repository "[REPO NAME SNIPPED]"
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)

CC.NET retries 5 times and then sleeps, which then continues all the time. Hence, the build never runs.

I cannot seem to get any other information from the logs that could lead to a solution so I was wondering what I should try next?

The repository appears to work fine with the GUI, including change history queries etc, so again this adds to the confusion.

Any assistance would be greatly appreciated.

Many thanks,
Tim Peel

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Jul 21, 2008 5:56 am

Is there a corresponding message in the Vault server log?

Vault server log is in the %windir%/temp/sgvault directory on the server machine.
Linda Bauer
SourceGear
Technical Support Manager

code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Re: Vault with CC.NET - get latest/version history exception

Post by code » Mon Jul 28, 2008 10:45 am

Sorry for the delay in getting back to your response.

There is nothing in the log file at the time of error. All we have is log in/out entries and the occasional "Exception in plugin thread : The request failed with HTTP status 401: Unauthorized." exceptions on Vault requests.

Were you expecting to see an exception stack trace?

Where can I set debug logging for the Vault server so I can track the operation in more detail?

Many thanks

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault with CC.NET - get latest/version history exception

Post by lbauer » Thu Jul 31, 2008 10:26 am

You can enable debug logging in the Vault Admin Client under Server settings-> logging.
Linda Bauer
SourceGear
Technical Support Manager

code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Re: Vault with CC.NET - get latest/version history exception

Post by code » Thu Aug 07, 2008 12:02 pm

Having enabled debugging and analysed what was going on it highlighted us having a config error so this is why it could not download the source from Vault.

Sorry for taking up your time.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Vault with CC.NET - get latest/version history exception

Post by lbauer » Fri Aug 08, 2008 3:27 pm

No problem -- two heads are better than one. Glad you were able to figure it out.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply