Unable to Authenticate when doing failover and Clients never seem to recover

Hi,

Server is 3.0
.NET SDK is ga 2.0.0.1

I have some clients that runs against a 4 Server couchbase cluster in a test environment.

It runs smooth…

Operation “Add`1” succeeded 0 for key “envelopemessage:19875392-0280-4e65-b247-44a4873f1843” : “”

until…

When i do a Failover I get the following errors:
Could not authenticate “testbucket” using Couchbase.Authentication.SASL.CramMd5Mechanism

at Couchbase.IO.Strategies.DefaultIOStrategy.Authenticate(IConnection connection)
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T](IOperation1 operation) at Couchbase.Core.Server.Send[T](IOperation1 operation)

After this it fails consistently with the following errors:
Failed to acquire a connection after 5 tries.

at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.Acquire()
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.Acquire()
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.Couchbase.IO.IConnectionPool.Acquire()
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T](IOperation1 operation) at Couchbase.Core.Server.Send[T](IOperation1 operation)

This is how i set couchbase up in code:

var couchbaseConfiguration = new ClientConfiguration()

        couchbaseConfiguration.Servers.Clear();

        foreach (var node in _connectionString.Split(';'))
        {
            Serilog.Log.Debug("Couchbase node: {0}", node);
            couchbaseConfiguration.Servers.Add(new Uri(node));
        }

        ClusterHelper.Initialize(couchbaseConfiguration);
        var cluster = ClusterHelper.Get();
        return cluster.OpenBucket(_bucket, _bucketPassword);

Any help as to what is wrong would be appreciated.

Im a bit puzzled as to why, it is suddenly unable to authenticate…

Regards,
Casper

@CasperSkydt -

I am a bit puzzled as well because this a scenario we explicitly test against.

A couple of questions:

  • Are you running the client on windows or linux (via Mono)?
  • Are you using the default port configuration or custom ports on the server?
  • What CLR/Mono version are you using?

It would be useful if we could get a look at the client logs; perhaps you can create an NCBC and attach them? http://www.couchbase.com/issues/browse/NCBC

Thanks,

Jeff

Hi Jeff,

Opened an issue with logs.

https://www.couchbase.com/issues/browse/NCBC-734

Are you running the client on windows or linux (via Mono)? Windows
Are you using the default port configuration or custom ports on the server? Default
What CLR/Mono version are you using? CLR: v4.0.30319