-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gocql throwing 'unable to connect to initial hosts: tls: DialWithDialer timed out' #1472
Comments
I'd try ruling out networking issues by running native binary instead of container. Can any other local apps access Cosmos? |
It looks like either a connectivity issue or perhaps the protocol mismatch. Does cqlsh work? |
@nutharsh I'd also recommend turning on gocql debug logs to capture more data. |
@yurishkuro @vprithvi : I, too ran into the same issue while making the collector component talk to an internal Cassandra Cluster.
=== Working go program ===
I've tried to do the same thing in Jaeger config code, but unable to connect to initial hosts: tls: DialWithDialer timed out seems to persists. I did try passing the gocql_debug tag to the build command as follows, but no additional information was thrown in the logs.
Any pointers here would be extremely helpful. |
|
@yurishkuro : Tried with some more debugging and looks like this happens when the connectTimeout parameter in Cassandra cluster config is less than a particular threshold. Was able to successfully connect to Cassandra by hardcoding a larger connectTimeout in cluster config. Do you think this parameter can be driven from the flags? |
Sounds reasonable. Don't need a separate issue, just a PR. |
@yurishkuro : Raised the PR #1647 as per above discussion. Please review. Thanks |
Solution -> i used docer compose from this location and every thing worked AWESOME |
Hello,
I am unable to connect to Cassandra flavor of cosmos db. I am trying to run docker all in one image to remote cosmos db cassandra API from my local mac machine.
Appreciate any help in resolving below issue.
I am able to connect and create schema via cqlsh. But, docker image is unable to pass through ssl stage it seems.
On docker image run command, it throws below error,
{"level":"fatal","ts":1555153542.5605443,"caller":"query/main.go:87","msg":"Failed to init storage factory","error":"gocql: unable to create session: control: unable to connect to initial hosts: tls: DialWithDialer timed out","stacktrace":"main.main.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/query/main.go:87\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:762\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:852\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:800\nmain.main\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/query/main.go:147\nruntime.main\n\t/home/travis/.gimme/versions/go1.12.1.linux.amd64/src/runtime/proc.go:200"}
cmd used to run and connect to remote cassandra
docker run --rm
--name jaeger
-e SPAN_STORAGE_TYPE=cassandra
-e CASSANDRA_SERVERS=abcd.cassandra.cosmos.azure.com
-e CASSANDRA_PORT=10350
-e CASSANDRA_PASSWORD=pwd
-e CASSANDRA_USERNAME=user
-e CASSANDRA_TLS=false
-e CASSANDRA_KEYSPACE=jaeger_v1_test
-e CASSANDRA_CONNECTIONS_PER_HOST=1
-e CASSANDRA_TLS_VERIFY_HOST=false
jaegertracing/all-in-one:latest
The text was updated successfully, but these errors were encountered: