Skip to content

Create session faild with timout error #1380

@GingerMoon

Description

@GingerMoon

Please answer these questions before submitting your issue. Thanks!

What version of Cassandra are you using?

3.4.4

What version of Gocql are you using?

github.com/gocql/gocql v0.0.0-20191126110522-1982a06ad6b9

What did you do?

Create session failed:
session, err := cluster.CreateSession()
err is not nil.
I am able to connect to the same host:port via telnet, netcat, or golang net.Dial.

What did you expect to see?

Create session should succeed.

What did you see instead?

unable to create session: unable to discover protocol version: gocql: no response to connection startup within timeout

If you are having connectivity related issues please share the following additional information

Describe your Cassandra cluster

please provide the following information

  • output of nodetool status
./nodetool status
Datacenter: eu-ireland
======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address         Load       Tokens       Owns (effective)  Host ID                               Rack
UN  192.168.23.160  103.63 KiB  256          100.0%            c2950c74-2ac8-498a-9de3-6af325842c19  1c
  • output of SELECT peer, rpc_address FROM system.peers
cassandra@cqlsh> SELECT peer, rpc_address FROM system.peers;

 peer | rpc_address
------+-------------

(0 rows)
  • rebuild your application with the gocql_debug tag and post the output
Would you please tell me how to rebuild your application with the `gocql_debug` tag ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions