I spun 2 couchbase servers in 2 docker containers. I am trying to connect to both of them from my ASP.NET Core app like following:
var cluster = new Cluster(new ClientConfiguration()
{
Servers = ConnectionConfiguration.Servers.Select(x => new Uri(x)).ToList(),
PoolConfiguration = new PoolConfiguration
{
MaxSize = ConnectionConfiguration.PoolMaxSize,
SendTimeout = ConnectionConfiguration.SendTimeout,
ConnectTimeout = ConnectionConfiguration.ConnectTimeout
},
ConnectionPoolCreator = ConnectionPoolFactory.GetFactory<CouchbaseConnectionPool<MultiplexingConnection>>()
});
//Authenticate
var authenticator = new PasswordAuthenticator(ConnectionConfiguration.UserName, ConnectionConfiguration.Password);
cluster.Authenticate(authenticator);
//Get the bucket
var bucket = cluster.OpenBucket(ConnectionConfiguration.BucketName, ConnectionConfiguration.Password);
But as soon as it gets to OpenBucket
I get an exception saying:
Could not bootstrap with CCCP. (No connection available in CouchbaseConnectionPool endpoint:172.17.0.2)