More problems with CruiseControl and Vault

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

Moderator: SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

More problems with CruiseControl and Vault

Post by TimK » Wed May 31, 2006 9:59 am

Vault version: 3.1.7
CC net version: 1.0.1.1277

I'm getting this error when trying connect.

31/05/2006 16:47:23: [CCES v1:Info]: Integration complete: 31/05/2006 16:47:23
31/05/2006 16:48:23: [CCES v1:Info]: Checking for modifications in Vault from 31/05/2006 16:47:13 to 31/05/2006 16:48:23
31/05/2006 16:48:23: [CCES v1:Debug]: Vault History command: FileName: [c:\progra~1\source~1\vaultc~1\vault.exe] -- Arguments: [history $/xxx -excludeactions label -rowlimit 0 -begindate 2006-05-31T16:47:13 -enddate 2006-05-31T16:48:23 -host xxx -user xxx -password xxx -repository xxx] -- WorkingDirectory: [D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src] -- StandardInputContent: [] -- Timeout: [120000]
31/05/2006 16:48:23: [CCES v1:Debug]: Executing process c:\progra~1\source~1\vaultc~1\vault.exe history $/xxx -excludeactions label -rowlimit 0 -begindate 2006-05-31T16:47:13 -enddate 2006-05-31T16:48:23 -host xxx -user xxx -password xxx -repository xxx in D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src
31/05/2006 16:48:23: [CCES v1:Debug]: Attempting to start process [c:\progra~1\source~1\vaultc~1\vault.exe] in working directory [D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src] with arguments [history $/xxx -excludeactions label -rowlimit 0 -begindate 2006-05-31T16:47:13 -enddate 2006-05-31T16:48:23 -host xxx -user xxx -password xxx -repository xxx]
31/05/2006 16:48:31: [CruiseControl Server:Debug]: <vault>
31/05/2006 16:48:31: [CruiseControl Server:Debug]: <error>
31/05/2006 16:48:31: [CruiseControl Server:Debug]: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
31/05/2006 16:48:31: [CruiseControl Server:Debug]:
31/05/2006 16:48:31: [CruiseControl Server:Debug]: </error>
31/05/2006 16:48:31: [CruiseControl Server:Debug]: <exception>
31/05/2006 16:48:31: [CruiseControl Server:Debug]: System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
31/05/2006 16:48:31: [CruiseControl Server:Debug]:
31/05/2006 16:48:31: [CruiseControl Server:Debug]: at VaultCmdLineClient.VaultCmdLineClient.Login(Boolean bAllowAuto, Boolean bSaveSession)
31/05/2006 16:48:31: [CruiseControl Server:Debug]: at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandHistory(String strReposPath)
31/05/2006 16:48:31: [CruiseControl Server:Debug]: at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
31/05/2006 16:48:31: [CruiseControl Server:Debug]: at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
31/05/2006 16:48:31: [CruiseControl Server:Debug]: </exception>
31/05/2006 16:48:31: [CruiseControl Server:Debug]: <result success="no" />
31/05/2006 16:48:31: [CruiseControl Server:Debug]: </vault>
31/05/2006 16:48:31: [CCES v1:Error]: Exception: Source control operation failed: . Process command: c:\progra~1\source~1\vaultc~1\vault.exe history $/xxx -excludeactions label -rowlimit 0 -begindate 2006-05-31T16:47:13 -enddate 2006-05-31T16:48:23 -host xxx -user xxx -password xxx -repository xxx
----------
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\progra~1\source~1\vaultc~1\vault.exe history $/xxx -excludeactions label -rowlimit 0 -begindate 2006-05-31T16:47:13 -enddate 2006-05-31T16:48:23 -host xxx -user xxx -password xxx -repository xxx
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.GetModifications(ProcessInfo info, DateTime from, DateTime to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.RunIntegration(BuildCondition buildCondition)
----------

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed May 31, 2006 2:34 pm

This is probably a server contention issue (you can check the server log to see exactly what's failing), and I recommend you run one of the latest CC.NET 1.1 builds to fix it. The latest CC.NET builds are here: http://ccnetlive.thoughtworks.com/CCNet-builds/
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Wed May 31, 2006 3:49 pm

Ah, got it working to a degree. However, it only works when I run the ccnet.exe (which brings up a command window).

When I use the service it does not work. The service is set to use a local system account.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed May 31, 2006 3:53 pm

You do have to run the service as an actual Windows user, because Vault stores information in user-specific drive and registry locations. That's probably the problem. :)
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Wed May 31, 2006 3:58 pm

OK, I configured the service logon as my windows domain account but it still doesn't work.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed May 31, 2006 4:00 pm

There are suggestions for common problems here:

http://confluence.public.thoughtworks.o ... pplication

What does the Cruise Control.NET log say failed?
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Wed May 31, 2006 4:14 pm

Tried everything in the link still no luck, very strange.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Jun 01, 2006 6:48 am

The Cruise Control.NET log should have clues.
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Thu Jun 01, 2006 7:25 am

Getting the following error

2006-06-01 14:27:34,890 [5580:DEBUG] <vault>
2006-06-01 14:27:34,890 [5580:DEBUG] <error>
2006-06-01 14:27:34,890 [5580:DEBUG] The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 14:27:34,890 [5580:DEBUG]
2006-06-01 14:27:35,140 [5580:DEBUG] </error>
2006-06-01 14:27:35,140 [5580:DEBUG] <exception>
2006-06-01 14:27:35,140 [5580:DEBUG] System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 14:27:35,140 [5580:DEBUG]
2006-06-01 14:27:35,140 [5580:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Login(Boolean bAllowAuto, Boolean bSaveSession)
2006-06-01 14:27:35,140 [5580:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandVersionHistory(String strReposPath)
2006-06-01 14:27:35,140 [5580:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
2006-06-01 14:27:35,140 [5580:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
2006-06-01 14:27:35,140 [5580:DEBUG] </exception>
2006-06-01 14:27:35,140 [5580:DEBUG] <result success="no" />
2006-06-01 14:27:35,140 [5580:DEBUG] </vault>
2006-06-01 14:27:35,156 [CCES v1:ERROR] Exception: Source control operation failed:

I have enabled the proxy settings in the ccnet.config file.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Jun 01, 2006 7:29 am

Do the exact same settings work with ccnet.exe?

Try setting the service to run as the same user you're logged in as, when you run ccnet.exe.
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Thu Jun 01, 2006 7:36 am

ian_sg wrote:Do the exact same settings work with ccnet.exe?
This works fine.
ian_sg wrote:Try setting the service to run as the same user you're logged in as, when you run ccnet.exe.
Set the user to run the service as my domain credentials and still does not work.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Jun 01, 2006 7:54 am

This should work, so there's something we're missing.

Are you restarting the service after changing its account?

Are you sure you're sending the portion of the log that corresponds to the service's failure?
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Thu Jun 01, 2006 8:14 am

ian_sg wrote:Are you restarting the service after changing its account?
Yes
ian_sg wrote:Are you sure you're sending the portion of the log that corresponds to the service's failure?
Log file after service stopped and restarted
--------------------------------------------
2006-06-01 15:07:21,592 [3492:DEBUG] The trace level is currently set to debug. This will cause CCNet to log at the most verbose level, which is useful for setting up or debugging the server. Once your server is running smoothly, we recommend changing this setting in D:\Program Files\CruiseControl.NET\server\ccservice.exe.config to a lower level.
2006-06-01 15:07:21,608 [3492:INFO] Reading configuration file "D:\Program Files\CruiseControl.NET\server\ccnet.config"
2006-06-01 15:07:21,670 [3492:INFO] Registered channel: tcp
2006-06-01 15:07:21,670 [3492:INFO] CruiseManager: Listening on url: tcp://10.xxxx:21234/CruiseManager.rem
2006-06-01 15:07:21,670 [3492:INFO] Starting CruiseControl.NET Server
2006-06-01 15:07:21,670 [CCES v1:INFO] Starting integration for project: CCES v1
2006-06-01 15:07:22,030 [CCES v1:DEBUG] c:\progra~1\source~1\vaultc~1\vault.exe is version 3.1.7.3719
2006-06-01 15:07:22,030 [CCES v1:DEBUG] Vault CLC is at least version 3.1.7.
2006-06-01 15:07:22,045 [CCES v1:INFO] Checking for modifications to $/xxx in Vault Repository "xxx" between 01/06/2006 15:04:46 and 01/06/2006 15:07:22
2006-06-01 15:07:22,045 [CCES v1:DEBUG] Executing process c:\progra~1\source~1\vaultc~1\vault.exe versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris in D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src
2006-06-01 15:07:22,045 [CCES v1:DEBUG] Attempting to start process [c:\progra~1\source~1\vaultc~1\vault.exe] in working directory [D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src] with arguments [versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris]

Log file after failure
----------------------
2006-06-01 15:07:38,420 [5192:DEBUG] <vault>
2006-06-01 15:07:38,420 [5192:DEBUG] <error>
2006-06-01 15:07:38,420 [5192:DEBUG] The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 15:07:38,420 [5192:DEBUG]
2006-06-01 15:07:38,732 [5192:DEBUG] </error>
2006-06-01 15:07:38,732 [5192:DEBUG] <exception>
2006-06-01 15:07:38,732 [5192:DEBUG] System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 15:07:38,732 [5192:DEBUG]
2006-06-01 15:07:38,732 [5192:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Login(Boolean bAllowAuto, Boolean bSaveSession)
2006-06-01 15:07:38,732 [5192:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandVersionHistory(String strReposPath)
2006-06-01 15:07:38,732 [5192:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
2006-06-01 15:07:38,732 [5192:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
2006-06-01 15:07:38,732 [5192:DEBUG] </exception>
2006-06-01 15:07:38,732 [5192:DEBUG] <result success="no" />
2006-06-01 15:07:38,732 [5192:DEBUG] </vault>
2006-06-01 15:07:38,732 [CCES v1:WARN] Attempt 1 of 5: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\progra~1\source~1\vaultc~1\vault.exe versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
2006-06-01 15:07:38,732 [CCES v1:DEBUG] Sleeping 5 seconds
2006-06-01 15:07:43,732 [CCES v1:DEBUG] Executing process c:\progra~1\source~1\vaultc~1\vault.exe versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris in D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src
2006-06-01 15:07:43,732 [CCES v1:DEBUG] Attempting to start process [c:\progra~1\source~1\vaultc~1\vault.exe] in working directory [D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src] with arguments [versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris]
2006-06-01 15:07:57,826 [1324:DEBUG] <vault>
2006-06-01 15:07:57,826 [1324:DEBUG] <error>
2006-06-01 15:07:57,826 [1324:DEBUG] The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 15:07:57,826 [1324:DEBUG]
2006-06-01 15:07:58,169 [1324:DEBUG] </error>
2006-06-01 15:07:58,169 [1324:DEBUG] <exception>
2006-06-01 15:07:58,169 [1324:DEBUG] System.Exception: The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Access is denied.
2006-06-01 15:07:58,169 [1324:DEBUG]
2006-06-01 15:07:58,169 [1324:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Login(Boolean bAllowAuto, Boolean bSaveSession)
2006-06-01 15:07:58,169 [1324:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandVersionHistory(String strReposPath)
2006-06-01 15:07:58,169 [1324:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
2006-06-01 15:07:58,169 [1324:DEBUG] at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
2006-06-01 15:07:58,169 [1324:DEBUG] </exception>
2006-06-01 15:07:58,169 [1324:DEBUG] <result success="no" />
2006-06-01 15:07:58,169 [1324:DEBUG] </vault>

**** does this 3 more times then ****

----------
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: c:\progra~1\source~1\vaultc~1\vault.exe versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.ExecuteWithRetries(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317.GetFolderVersion(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317.LookForChangesUsingVersionHistory(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
----------

2006-06-01 15:11:41,741 [CCES v1:INFO] Integration complete: 01/06/2006 15:11:41
2006-06-01 15:12:41,787 [CCES v1:INFO] Checking for modifications to $/xxx in Vault Repository "xxx" between 01/06/2006 15:09:54 and 01/06/2006 15:12:41
2006-06-01 15:12:41,787 [CCES v1:DEBUG] Executing process c:\progra~1\source~1\vaultc~1\vault.exe versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris in D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src
2006-06-01 15:12:41,787 [CCES v1:DEBUG] Attempting to start process [c:\progra~1\source~1\vaultc~1\vault.exe] in working directory [D:\Program Files\CruiseControl.NET\server\CCES v1\WorkingDirectory\project\src] with arguments [versionhistory $/xxx -rowlimit 1 -host xxx -user xxx -password xxx -repository xxx -proxyserver xxx -proxyport 80 -proxyuser xxx -proxypassword xxx -proxydomain echarris]

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Jun 01, 2006 8:19 am

This is strange. It looks like we're failing to connect to the server at all, but I want to confirm that. Does the vault server log show anything that corresponds to the ccnet.log errors?
Ian Olsen
SourceGear

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Thu Jun 01, 2006 8:25 am

The vault log does not indicate at all that I an attempting connection.

Post Reply