I’d be happy to test it! I’ve recompiled the client on linux, and its an identical result in terms of exceptions. I’ll wait for core based client. Thank you.
Here is the code I am using to connect:
open System
open Couchbase
open Couchbase.Configuration.Client
[<EntryPoint>]
let main argv =
let cfg = new ClientConfiguration()
cfg.Servers.Add(new Uri("http://mycouchbaseserver.com:8091/pools"))
let bucketcfg = new BucketConfiguration()
bucketcfg.BucketName = "bucketname" |> ignore
bucketcfg.Username = "bucketname" |> ignore
bucketcfg.Password = "!" |> ignore
bucketcfg.UseSsl = false |> ignore
cfg.BucketConfigs.Add("test",bucketcfg)
let c = new Cluster(cfg);
let bucket =
try
c.OpenBucket("bucketname")
with
e -> raise e
printfn "%A" argv
0 // return an integer exit code
and this is the exception:
Unhandled Exception:
System.AggregateException: Could not bootstrap - check inner exceptions for details. ---> System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x01463> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0
---> (Inner Exception #0) System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0 <---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast
at Couchbase.IO.Strategies.DefaultIOStrategy.Authenticate (IConnection connection) <0x40c28240 + 0x00203> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x000c3> in <filename unknown>:0 <---
--- End of inner exception stack trace ---
at <StartupCode$test>.$Test.main@ () <0x40ba0d50 + 0x00273> in <filename unknown>:0
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x01463> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0
---> (Inner Exception #0) System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0 <---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast
at Couchbase.IO.Strategies.DefaultIOStrategy.Authenticate (IConnection connection) <0x40c28240 + 0x00203> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x000c3> in <filename unknown>:0 <---
<---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.WebClient.DownloadDataInternal (System.Uri address, System.Net.WebRequest& request) <0x40c2dbb0 + 0x00323> in <filename unknown>:0
at System.Net.WebClient.DownloadString (System.Uri address) <0x40c2d9a0 + 0x0004f> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownLoadConfig[T] (System.Uri uri) <0x40c2d800 + 0x000d3> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs (System.Uri server) <0x40c2cf00 + 0x0019b> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs (System.Uri server) <0x40c2cf00 + 0x007b3> in <filename unknown>:0
at System.Linq.Enumerable.Any[TSource] (IEnumerable`1 source, System.Func`2 predicate) <0x40c2cce0 + 0x00090> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.Initialize () <0x40c2cb10 + 0x000cf> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.StartProvider (System.String username, System.String password) <0x40c2c480 + 0x000aa> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.GetConfig (System.String bucketName, System.String password) <0x40c2bf10 + 0x000d3> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0 <---
[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: Could not bootstrap - check inner exceptions for details. ---> System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x01463> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0
---> (Inner Exception #0) System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0 <---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast
at Couchbase.IO.Strategies.DefaultIOStrategy.Authenticate (IConnection connection) <0x40c28240 + 0x00203> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x000c3> in <filename unknown>:0 <---
--- End of inner exception stack trace ---
at <StartupCode$test>.$Test.main@ () <0x40ba0d50 + 0x00273> in <filename unknown>:0
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x01463> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0
---> (Inner Exception #0) System.Net.Sockets.SocketException: Connection timed out
at Couchbase.IO.DefaultConnectionFactory.<GetGeneric`1>m__0[T] (IConnectionPool`1 p, IByteConverter c, Couchbase.IO.BufferAllocator b) <0x40c18ae0 + 0x0015f> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Acquire () <0x40c1c570 + 0x002e0> in <filename unknown>:0
at Couchbase.IO.ConnectionPool`1[T].Couchbase.IO.IConnectionPool.Acquire () <0x40c1c550 + 0x0000f> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x0008c> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) <0x40c10ef0 + 0x008a4> in <filename unknown>:0 <---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast
at Couchbase.IO.Strategies.DefaultIOStrategy.Authenticate (IConnection connection) <0x40c28240 + 0x00203> in <filename unknown>:0
at Couchbase.IO.Strategies.DefaultIOStrategy.Execute[T] (IOperation`1 operation) <0x40c1d670 + 0x000c3> in <filename unknown>:0 <---
<---
---> (Inner Exception #1) System.Security.Authentication.AuthenticationException: scorebeast ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.WebClient.DownloadDataInternal (System.Uri address, System.Net.WebRequest& request) <0x40c2dbb0 + 0x00323> in <filename unknown>:0
at System.Net.WebClient.DownloadString (System.Uri address) <0x40c2d9a0 + 0x0004f> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownLoadConfig[T] (System.Uri uri) <0x40c2d800 + 0x000d3> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs (System.Uri server) <0x40c2cf00 + 0x0019b> in <filename unknown>:0
--- End of inner exception stack trace ---
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.DownloadConfigs (System.Uri server) <0x40c2cf00 + 0x007b3> in <filename unknown>:0
at System.Linq.Enumerable.Any[TSource] (IEnumerable`1 source, System.Func`2 predicate) <0x40c2cce0 + 0x00090> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpServerConfig.Initialize () <0x40c2cb10 + 0x000cf> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.StartProvider (System.String username, System.String password) <0x40c2c480 + 0x000aa> in <filename unknown>:0
at Couchbase.Configuration.Server.Providers.Streaming.HttpStreamingProvider.GetConfig (System.String bucketName, System.String password) <0x40c2bf10 + 0x000d3> in <filename unknown>:0
at Couchbase.Core.ClusterController.CreateBucket (System.String bucketName, System.String password) <0x40c10000 + 0x00361> in <filename unknown>:0 <---