couchbaselabs / sdk-doctor

Application-server-side cluster connection diagnostics.
https://couchbase.com/
Apache License 2.0
18 stars 12 forks source link

not enough output when ssl case fails #22

Open ingenthr opened 5 years ago

ingenthr commented 5 years ago

In a case where TLS and multi-network configuration are both in place, sdk-doctor is failing but doesn't give sufficient diagnostic output to show why. Note that the same environment works with .NET and lcb. Unrelated issues are coming up in Java and there is a separate gocb issue which appears to have to do with the handling of altnames without altports being listed.

13:23:08.848 INFO ▶ Parsing connection string `couchbases://cb-example-0000.cb-example.marabine.co.uk/default?network=external`
13:23:09.078 INFO ▶ Connection string specifies to use secured connections
13:23:09.078 INFO ▶ Connection string identifies the following CCCP endpoints:
13:23:09.078 INFO ▶   1. cb-example-0000.cb-example.marabine.co.uk:11207
13:23:09.078 INFO ▶ Connection string identifies the following HTTP endpoints:
13:23:09.078 INFO ▶ Connection string specifies bucket `default`
13:23:09.078 WARN ▶ Your connection string specifies only a single host.  You should consider adding additional static nodes from your cluster to this list to improve your applications fault-tolerance
13:23:09.078 INFO ▶ Performing DNS lookup for host `cb-example-0000.cb-example.marabine.co.uk`
13:23:09.115 INFO ▶ Bootstrap host `cb-example-0000.cb-example.marabine.co.uk` refers to a server with the address `35.166.164.45`
13:23:09.214 WARN ▶ The FTS service within Couchbase Server is not currently capable of serving data through SSL.  As this is the case, your application will not be able to perform FTS queries with your SSL bootstrap configuration.
13:23:09.214 INFO ▶ Attempting to connect to cluster via CCCP
13:23:09.214 INFO ▶ Attempting to fetch config via cccp from `cb-example-0000.cb-example.marabine.co.uk:11207`
13:23:09.355 ERRO ▶ Failed to fetch configuration via cccp from `cb-example-0000.cb-example.marabine.co.uk:11207` (error: EOF)
13:23:09.355 INFO ▶ Not attempting HTTP (Terse), as the connection string does not support it
13:23:09.355 INFO ▶ Not attempting HTTP (Full), as the connection string does not support it
13:23:09.355 INFO ▶ Selected the following network type:
13:23:09.355 ERRO ▶ All endpoints specified by your connection string were unreachable, further cluster diagnostics are not possible
13:23:09.355 INFO ▶ Diagnostics completed