CruiseControl.NET 1.6 and Vault 5.1.2

If you are having a problem using Vault, post a message here.
Post Reply
twlichty99
Posts: 2
Joined: Mon Jan 02, 2012 1:37 pm

CruiseControl.NET 1.6 and Vault 5.1.2

Post by twlichty99 » Mon Jan 02, 2012 1:40 pm

We've been using Fortress/Vault with CC.NET for years and it has always worked well. I came in over the Christmas break to upgrade our Fortress install to Vault Pro 5.1.2. Everything seemed to work fine. However, we have started getting the following error in CC.NET intermittently:

System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientOperationsLib.CacheMember.TakeSystemMutex()
at VaultClientOperationsLib.CacheMember_LastStructureGetTime.set_LastStructureGetTime(VaultDateTime value)
at VaultClientOperationsLib.ClientInstance.Refresh(Int64 knownServerRevision, Boolean isRetry, VaultRepositoryDelta& delta, Int64& returnedRevision, ChangeSetItemColl committedItems)
at VaultClientOperationsLib.ClientInstance.Refresh()
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProClient.Refresh()
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProVaultSourceControl.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

Once we stop the ccservice.exe service and restart it, it works fine. We have almost 20 projects in our CC.NET.

Thanks for any help!

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Mon Jan 02, 2012 1:53 pm

It sounds like it could possibly be some cache information hasn't been updated yet. On the CC.NET machine, find the Vault client-side cache in %username%\local settings\application data or %username%\appdata\local. In the SourceGear folder you may have a cache called fortress_1 and one called vaultpro_1. Rename both of those and restart your ccservice.exe service.

Before checking it, recycle your VaultAppPool to make sure the server side cache is cleared out too.

Then let me know your results. If everything appears to be ok, then you can delete the renamed cache folders.
Beth Kieler
SourceGear Technical Support

twlichty99
Posts: 2
Joined: Mon Jan 02, 2012 1:37 pm

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by twlichty99 » Mon Jan 02, 2012 2:31 pm

Thanks for the quick reply. I did as you asked. Everything seemed to be fine but I just received the error again. Anything else I can try?

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Mon Jan 02, 2012 3:07 pm

I'm not sure this could contribute, but just in case, go to your IIS Manager and expand the website Vault was installed to. Is there still a Fortress folder there? If so, delete it.

Also, check your Vault Server Log for errors at the same time. Could you send an email to support at sourcegear.com (attn: Beth) with your complete Vault Server Log and a link to this forum thread?
Beth Kieler
SourceGear Technical Support

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Mon Jan 02, 2012 4:11 pm

I have received your email and will respond to it.

HS: 224584
Beth Kieler
SourceGear Technical Support

Tom
Posts: 2
Joined: Thu Jan 26, 2012 4:59 am

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Tom » Thu Jan 26, 2012 5:48 am

Hello

is there a solution to this problem, because we have the same issue.

Thanx

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Thu Jan 26, 2012 8:40 am

The user in this thread went to a forced build while we were troubleshooting and then is trying out a queue. I hadn't heard back after they went to a queue.

Try a queue. If you are still having problems, send an email to support with a link to this forum thread. Then I'll verify that your log files are indicating the same problem.

I have a bug logged as well.
Beth Kieler
SourceGear Technical Support

rikyjakes
Posts: 1
Joined: Thu Jan 26, 2012 9:22 pm

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by rikyjakes » Thu Jan 26, 2012 9:26 pm

Can you please confirm if we'll also have to upgrade our vault version before we can get this to work, or is there another option?

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Fri Jan 27, 2012 8:52 am

You can get it to work with a queue. All that's needed is for the projects not to all log in with the same user at the exact same instance. A queue will get around that.
Beth Kieler
SourceGear Technical Support

Tom
Posts: 2
Joined: Thu Jan 26, 2012 4:59 am

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Tom » Tue Feb 07, 2012 8:58 am

I have queued the Jobs and still get the error:
System.NullReferenceException: Object reference not set to an instance of an object.
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultProVaultSourceControl.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
The log doesn't show anything special:
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ValidateSession started.
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ValidateSession finished.
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositories started.
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetRepositories started.
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetRepositories finished.
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetRepositories returned: Success
----07.02.2012 15:50:56 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositories finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryStructure started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Getting repository Structure-> Rep ID: 2 Base: 13368 Target: -1
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled TreeManager: cache matches repository revision and folder security hasn't changed. Returning cached tree, revID 13368
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLastTreeSecurityChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLastTreeSecurityChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled VaultServiceAPI::GetRepositoryTreeDelta() UserID:35 RepID:2 Base:13368 Target:13368 Calling VaultRepUtil.DiffRepTrees() - in-memory tree diff.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryStructure finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetRepositoryStructure returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Getting list of checkout changes.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetCheckOutListChanges started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Beginning SQL transaction 1007817
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckoutListChanges: Transaction Started
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: LockCheckoutList started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: CreateDBLockObject started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: CreateDBLockObject finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: LockCheckoutList finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetCurrentCheckoutInfo started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetCurrentCheckoutInfo finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled SQL transaction 1007817 successfully committed.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckoutListChanges: Transaction Committed
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckOutListChanges returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetCheckOutListChanges finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ListWatchers started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled TreeManager: cache matches repository revision and folder security hasn't changed. Returning cached tree, revID 13368
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListWatchers started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListWatchers finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ListWatchers returned Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ListWatchers finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ListCloakedObjects started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListCloakedObjects started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListCloakedObjects finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ListCloakedObjects returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: ListCloakedObjects finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryOptions started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListRepositoryOptions started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetKeywordExtensions started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetKeywordExtensions finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: ListRepositoryOptions finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetIntegrations started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetRepositoryOptions returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryOptions finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryStructure started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Getting repository Structure-> Rep ID: 2 Base: 13368 Target: -1
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLatestRepositoryInfo finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled TreeManager: cache matches repository revision and folder security hasn't changed. Returning cached tree, revID 13368
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLastTreeSecurityChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetLastTreeSecurityChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled VaultServiceAPI::GetRepositoryTreeDelta() UserID:35 RepID:2 Base:13368 Target:13368 Calling VaultRepUtil.DiffRepTrees() - in-memory tree diff.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetRepositoryStructure finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetRepositoryStructure returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Getting list of checkout changes.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetCheckOutListChanges started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetUserRepositoryLastChange finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled Beginning SQL transaction 66706690
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckoutListChanges: Transaction Started
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: LockCheckoutList started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: CreateDBLockObject started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: CreateDBLockObject finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: LockCheckoutList finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetCurrentCheckoutInfo started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetCurrentCheckoutInfo finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled SQL transaction 66706690 successfully committed.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckoutListChanges: Transaction Committed
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetCheckOutListChanges returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetCheckOutListChanges finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetObjectVersionList started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetObjectVersionList started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: DoGetObjectVersionList started.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: DoGetObjectVersionList finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled DB: GetObjectVersionList finished.
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled GetObjectVersionList returned: Success
----07.02.2012 15:51:03 cc5--sg1469z.corproot.net(10.185.103.76)--SSL Disabled ASMX: GetObjectVersionList finished.

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

Re: CruiseControl.NET 1.6 and Vault 5.1.2

Post by Beth » Tue Feb 07, 2012 4:46 pm

Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?

EDIT: Email received. Thanks.
HS: 224785
Beth Kieler
SourceGear Technical Support

Post Reply