CouchbaseNetClient mismatch in CouchbaseAspNet


#1

We are woking on upgrading our CouchbaseNetClient to the most recent version (2.1.4) and we are getting compatibility issues with the newest CouchbaseAspNet package. The most recent package found was the 2.0 beta version for CouchbaseAspNet and it was outdated when using version 2.1.4 of CouchbaseNetClient, but things are fine when I create a local package from master.

Is there any information on when there will be a published package for the most recent changes made to CouchbaseAspNet?

Thanks,

Patrick


#2

@jmorris I’m working with @pdavis on this; Is this something that can be done? Otherwise we’ll need to manage this on our own until an updated release is made.

Thanks much!


#3

@pdavis, @unhuman -

You should be able to upgrade the CouchbaseNetClient 2.0 beta using the NuGet Package Manager. If you have a Couchbase SDK dependency, you’ll probably have to remove it, make a dependency on CouchbaseNetClient and then update the Couchbase SDK version to the latest.

-Jeff


#4

@jmorris

Thanks for the info… Working fine in our development environment now

We get the following problem when pushing to a different environment:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

We do have connectivity for the servers in the cluster, I verified ports 8091, 8092, 11207, 11210, 11211 on both hosts.

Event code: 3008
Event message: A configuration error has occurred.
Event time: 9/2/2015 4:17:01 PM
Event time (UTC): 9/2/2015 8:17:01 PM
Event ID: 12708d0e467c471b8108d02f33760817
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/4/ROOT/Subscribers-4-130856986075824071
Trust level: Full
Application Virtual Path: /Subscribers
Application Path: ** REDACTED **
Machine name: HQ04A1APP102

Process information:
Process ID: 7936
Process name: w3wp.exe
Account name: A1\IISMan

Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not bootstrap - check inner exceptions for details. (D:\WebApps** REDACTED **\web.config line 214)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.SessionState.SessionStateModule.SecureInstantiateProvider(ProviderSettings settings)
at System.Web.SessionState.SessionStateModule.InitCustomStore(SessionStateSection config)
at System.Web.SessionState.SessionStateModule.InitModuleFromConfig(HttpApplication app, SessionStateSection config)
at System.Web.SessionState.SessionStateModule.Init(HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Could not bootstrap - check inner exceptions for details.
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName)
at Couchbase.Cluster.OpenBucket(String bucketname)
at Couchbase.ClusterHelper.b__0(String name)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Couchbase.ClusterHelper.GetBucket(String bucketName)
at Couchbase.AspNet.CouchbaseBucketFactory.GetBucket(String name, NameValueCollection config)
at Couchbase.AspNet.ProviderHelper.GetBucket(String name, NameValueCollection config)
at Couchbase.AspNet.SessionState.CouchbaseSessionStateProvider.Initialize(String name, NameValueCollection config)
at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)

One or more errors occurred.
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName, String password)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password)

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at Couchbase.IO.DefaultConnectionFactory.b__0[T](IConnectionPool1 p, IByteConverter c, BufferAllocator b) at Couchbase.IO.ConnectionPool1.Acquire()
at Couchbase.IO.ConnectionPool1.Couchbase.IO.IConnectionPool.Acquire() at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T](IOperation1 operation)
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName, String password)

Request information:
Request URL: http://** REDACTED **
Request path: ** REDACTED **
User host address: 10.50.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: A1\IISMan

Thread information:
Thread ID: 33
Thread account name: A1\IISMan
Is impersonating: False
Stack trace: at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
at System.Web.SessionState.SessionStateModule.SecureInstantiateProvider(ProviderSettings settings)
at System.Web.SessionState.SessionStateModule.InitCustomStore(SessionStateSection config)
at System.Web.SessionState.SessionStateModule.InitModuleFromConfig(HttpApplication app, SessionStateSection config)
at System.Web.SessionState.SessionStateModule.Init(HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Custom event details:

And, here’s our Web.config info related to Couchbase:

<section name="couchbase" type="Couchbase.Configuration.Client.Providers.CouchbaseClientSection, Couchbase.NetClient" />

<sessionState cookieless="false" mode="Custom" customProvider="Couchbase" timeout="59">
  <providers>
    <!-- This is line 214 --><add name="Couchbase" type="Couchbase.AspNet.SessionState.CouchbaseSessionStateProvider, Couchbase.AspNet" bucket="transient1" headerPrefix="header::" dataPrefix="session::" />
  </providers>
</sessionState>

< couchbase>

 <servers>
   <add uri="http://10.15.16.27:8091/pools" />
   <add uri="http://10.15.16.72:8091/pools" />
 </servers>
 <buckets>
   <add name="transient1" password="" useSsl="false">
     <connectionPool name="custom" minSize="5" maxSize="5" waitTimeout="5000" shutdownTimeout="3000">
     </connectionPool>
   </add>
 </buckets>

< /couchbase>

^ I had to do goofy stuff in the editor to get the couchbase<> tags to show