NoHostAvailableException in DBeaver when connecting to remote Cassandra docker container -


i have cassandra instance running in docker container on intel nuc. mac, can ssh onto , connect cqlsh fine. however, when try connect using dbeaver enterprise get:

com.datastax.driver.core.exceptions.nohostavailableexception: host(s) tried query failed (tried: myhostname/xx.xx.xx.xx:9042 (com.datastax.driver.core.exceptions.transportexception: [myhostname/xx.xx.xx.xx] cannot connect)) 

this occurs , without ssl enabled. have ssh tunnel enabled configured, have tried disabled.

on nuc, appear have 3 ethernet interfaces; usual enp0s25 , docker0 , br-65e6f96b0e4f. have tried associated ip addresses these 2 interfaces seem appear doing more, pause few seconds, throw same exception.

versions:

  • cassandra - 2.2.8
  • cqlsh - 5.0.1
  • dbeaver enterprise - 3.7.8

looking in debug log see following messages (ssh tunnel enabled public key auth):

2016-11-10 15:45:45.616 - connect 'cql://xx.xx.xx.xx:9042/mwih_ks' (cql-1582dfdf6b1-3209dg9f13234351a) 2016-11-10 15:45:45.622 - instantiate ssh tunnel 2016-11-10 15:45:45.623 - connect tunnel host 2016-11-10 15:45:45.623 - ssh info: connecting xx.xx.xx.xx port 22 2016-11-10 15:45:45.632 - ssh info: connection established ... 2016-11-10 15:45:45.759 - ssh info: host 'xx.xx.xx.xx' known , matches rsa host key 2016-11-10 15:45:45.760 - ssh info: ssh_msg_newkeys sent 2016-11-10 15:45:45.760 - ssh info: ssh_msg_newkeys received 2016-11-10 15:45:45.761 - ssh info: ssh_msg_service_request sent 2016-11-10 15:45:45.761 - ssh info: ssh_msg_service_accept received 2016-11-10 15:45:45.763 - ssh info: authentications can continue: publickey 2016-11-10 15:45:45.763 - ssh info: next authentication method: publickey 2016-11-10 15:45:45.806 - ssh info: authentication succeeded (publickey). 2016-11-10 15:45:45.814 - connection failed (cql-1582dfdf6b1-3209dg9f13234351a) 2016-11-10 15:53:18.364 - org.jkiss.dbeaver.model.exec.dbcexception: host(s) tried query failed (tried: /xx.xx.xx.xx:9042 (com.datastax.driver.core.exceptions.transportexception: [/xx.xx.xx.xx] cannot connect)) org.jkiss.dbeaver.model.exec.dbcexception: host(s) tried query failed (tried: /192.168.2.2:9042 (com.datastax.driver.core.exceptions.transportexception: [/xx.xx.xx.xx] cannot connect))     @ com.jkiss.dbeaver.ent.cassandra.model.casexecutioncontext.connect(casexecutioncontext.java:56)     @ com.jkiss.dbeaver.ent.cassandra.model.casdatasource.<init>(casdatasource.java:103)     @ com.jkiss.dbeaver.ent.cassandra.casdatasourceprovider.opendatasource(casdatasourceprovider.java:65)     @ org.jkiss.dbeaver.registry.datasourcedescriptor.connect(datasourcedescriptor.java:644)     @ org.jkiss.dbeaver.runtime.jobs.connectjob.run(connectjob.java:74)     @ org.jkiss.dbeaver.ui.dialogs.connection.connectionwizard$connectiontester.run(connectionwizard.java:223)     @ org.jkiss.dbeaver.model.runtime.abstractjob.run(abstractjob.java:103)     @ org.eclipse.core.internal.jobs.worker.run(worker.java:55) caused by: com.datastax.driver.core.exceptions.nohostavailableexception: host(s) tried query failed (tried: /xx.xx.xx.xx:9042 (com.datastax.driver.core.exceptions.transportexception: [/xx.xx.xx.xx] cannot connect))     @ com.datastax.driver.core.controlconnection.reconnectinternal(controlconnection.java:231)     @ com.datastax.driver.core.controlconnection.connect(controlconnection.java:77)     @ com.datastax.driver.core.cluster$manager.init(cluster.java:1382)     @ com.datastax.driver.core.cluster.init(cluster.java:162)     @ com.datastax.driver.core.cluster.connectasync(cluster.java:333)     @ com.datastax.driver.core.cluster.connect(cluster.java:283)     @ com.jkiss.dbeaver.ent.cassandra.model.casexecutioncontext.reconnect(casexecutioncontext.java:112)     @ com.jkiss.dbeaver.ent.cassandra.model.casexecutioncontext.connect(casexecutioncontext.java:52)     ... 7 more 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -