Getting 403 with cbdocloader

In my corporate setting, I’m trying to load sample data with cbdocloder and getting 403 (forbidden).

I’ve installed on my workstation Win7Pro64
Added rules to open the firewall to all the relevant ports ( 4369,8091-8094,9100-9105,9998,9999,11209-11211,11214,11215,18091-19093,21100-21299)

I’ve repeated the exercise at home on a different PC without issues.

What could be blocking the upload?

Hi @martin2,

I can only speculate as to what differences there may be between your home setting and your corporate setting. This may not be an issue related to Couchbase Server at all. Can you verify that you are supplying the correct credentials?

Yes. Correct credentials used.

Interestingly when I try to create the sample buckets logged in as Adminstrator on the web UI the buckets are created, but not filled with data. This may be another symptom of the same problem.

Does that help?

@martin2,

Is that happening at home or on corporate? I don’t know if it’s related.

Corporate setting is not loading sample buckets or working with cbdocloader.
My home testing has been mostly seamless.

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, Func2 endFunction, Action1 endAction, Task1 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(IConnectionPool1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.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, Func2 endFunction, Action1 endAction, Task1 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(IConnectionPool1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.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, Func2 endFunction, Action1 endAction, Task1 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(IConnectionPool1 p, IByteConverter c, BufferAll
ocator b)
at Couchbase.IO.ConnectionPool1.Acquire() at Couchbase.IO.ConnectionPool1.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.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 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, Func2 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)
<—