Quite sure password is correct.
In corporate setting I try connecting with the .net API and it appears to fail.
The connection code:
var config = new ClientConfiguration
{
Servers = new List
{
new Uri(“http://localhost:8091/pools”),
},
UseSsl = true,
DefaultOperationLifespan = 1000,
BucketConfigs = new Dictionary<string, BucketConfiguration>
{
{“mach1”, new BucketConfiguration
{
BucketName = “mach1”,
UseSsl = true,
Password = “*****”,
DefaultOperationLifespan = 2000,
PoolConfiguration = new PoolConfiguration
{
MaxSize = 10,
MinSize = 5,
SendTimeout = 12000
}
}
}
}
};
using (var cluster = new Cluster(config))
{var bucket = cluster.OpenBucket();}
yields errors:
System.AggregateException: Could not bootstrap - check inner exceptions for details. —> System.AggregateException: One
or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.Security.Authenticati
on.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Couchbase.IO.SslConnection.Authenticate()
at Couchbase.IO.DefaultConnectionFactory.<>c__01.<GetGeneric>b__0_0(IConnectionPool
1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool
1.Couchbase.IO.IConnectionPool.Acquire()
at Couchbase.IO.Services.PooledIOService.Execute[T](IOperation`1 operation)
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName
, String password)
— End of inner exception stack trace —
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName
, String password)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials)
— End of inner exception stack trace —
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, IClusterCredentials credentials)
at Couchbase.Cluster.OpenBucket()
at DataMigrator.Entities.Repository.ExportData() in E:\mmacro\documents\visual studio 2015\Projects\DataMigrator\Data
Migrator\Entities\Repository.cs:line 66
—> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> System.AggregateException: One or
more errors occurred. —> System.Security.Authentication.AuthenticationException: The remote certificate is invalid ac
cording to the validation procedure.
at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Couchbase.IO.SslConnection.Authenticate()
at Couchbase.IO.DefaultConnectionFactory.<>c__01.<GetGeneric>b__0_0(IConnectionPool
1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool
1.Couchbase.IO.IConnectionPool.Acquire()
at Couchbase.IO.Services.PooledIOService.Execute[T](IOperation`1 operation)
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName
, String password)
— End of inner exception stack trace —
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName
, String password)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials)
—> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> System.Security.Authentication.Au
thenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Couchbase.IO.SslConnection.Authenticate()
at Couchbase.IO.DefaultConnectionFactory.<>c__01.<GetGeneric>b__0_0(IConnectionPool
1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool
1.Couchbase.IO.IConnectionPool.Acquire()
at Couchbase.IO.Services.PooledIOService.Execute[T](IOperation1 operation) at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName , String password) ---> (Inner Exception #0) System.Security.Authentication.AuthenticationException: The remote certificate is invalid acco rding to the validation procedure. at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action
1 endAction,
Task`1 promise, Boolean requiresSynchronization)<—
<—
<—
—> (Inner Exception #1) System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System
.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The underlyin
g connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. —> System.Security.Aut
hentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
— End of inner exception stack trace —
— End of inner exception stack trace —
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadString(Uri uri)
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownLoadConfig[T](Uri uri)
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs(Uri server)
at System.Linq.Enumerable.Any[TSource](IEnumerable1 source, Func
2 predicate)
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.Initialize()
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.StartProvider(String username, String pas
sword)
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.GetConfig(String bucketName, String passw
ord)
at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials)
<—