Skip to content
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

Liquibase ’All host(s) tried for query failed’ with Cassandra 4 #167

Open
IdleThought opened this issue Nov 23, 2022 · 0 comments
Open

Comments

@IdleThought
Copy link

Jars used:

  • CassandraJDBC42-2.0.4.jar (to establish jdbc connection)
  • liquibase-cassandra-4.16.1.jar (extension jar)
  • liquibase-core-4.6.1.jar (core liquibase jar)

All of the above was working properly with my Liquibase project with Cassandra 3.11.0, but once I upgraded to Cassandra 4.0.6 I started getting the connection issue:

Caused by: com.simba.cassandra.support.exceptions.GeneralException: [Simba]CassandraJDBCDriver Error setting/closing connection: All host(s) tried for query failed (tried: xxxx:9042 (com.simba.cassandra.shaded.datastax.driver.core.exceptions.TransportException: [xxxx:9042] Channel has been closed)).

(I xxxx’d out my server and IP for my cluster)

On the Cassandra side of things I get the error in my log:

[WARN ] [epollEventLoopGroup-5-1] cluster_id=xxxx ip_address=xxxx PreV5Handlers.java:261 - Unknown exception in client networking
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: error:100000b8:SSL routines:OPENSSL_internal:NO_SHARED_CIPHER

I was able to test that my JDBC jar is able to connect to my Cassandra DB without any issue using my JDBC url via Intellijj’s database GUI, so I don’t believe anything is wrong there. And all of my applications that speak with this Cassandra database work properly still as well, only my liquibase project is effected.

To Reproduce
I get this issue by running:
java -jar jars/liquibase-core-4.6.1.jar --defaultsFile=liquibase/liquibase.properties status
When connecting to my Cassandra 4.0.6 database.
But I get this same issue if I download Liquibase 4.17.2 and use the liquibase CLI

Expected behavior
I should be able to see the liquibase status for my given liquibase project.

Liquibase Version:

  • 4.6.1 using java -jar to run command
  • 4.17.2 using liquibase CLI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants