-
Notifications
You must be signed in to change notification settings - Fork 170
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
SNOW-1548930: No Appropiate Protocol #1839
Comments
Hi @wise-coders, Thanks for reaching out and opening this issue. I updated your comment to scrub out the hostname. That JDBC connection string doesn't look right, specifically:
The Other than that, this is a very rare issue and we haven't been able to get to the cause because other than you, there was only one more user that reported this issue: snowflakedb/snowflake-kafka-connector#825 Can you turn on debugging for your JDBC driver? The easiest way to achieve that is to use the instructions here. Please set the logging level to
Here's an example of the same log message from a working environment:
|
Thank you. Fixing the URL as suggested fixed the isssue. |
Connecting from OpenJdk 17.0.12 to Snowflake by Google Cloud, I got this error.
The JDBC URL is jdbc:snowflake://https://account.snowflakecomputing.com?client_metadata_request_use_connection_ctx=true
The driver version is 3.17.0.
What could be wrong?
net.snowflake.client.jdbc.SnowflakeSQLLoggedException: JDBC driver encountered communication error. Message: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
at net.snowflake.client.jdbc.RestRequest.execute(RestRequest.java:286)
at net.snowflake.client.jdbc.RestRequest.execute(RestRequest.java:75)
at net.snowflake.client.core.HttpUtil.executeRequestInternal(HttpUtil.java:810)
at net.snowflake.client.core.HttpUtil.executeRequest(HttpUtil.java:737)
at net.snowflake.client.core.HttpUtil.executeGeneralRequest(HttpUtil.java:652)
at net.snowflake.client.core.SessionUtil.newSession(SessionUtil.java:662)
at net.snowflake.client.core.SessionUtil.openSession(SessionUtil.java:311)
at net.snowflake.client.core.SFSession.open(SFSession.java:637)
at net.snowflake.client.jdbc.DefaultSFConnectionHandler.initialize(DefaultSFConnectionHandler.java:129)
at net.snowflake.client.jdbc.DefaultSFConnectionHandler.initializeConnection(DefaultSFConnectionHandler.java:102)
at net.snowflake.client.jdbc.SnowflakeConnectionV1.initConnectionWithImpl(SnowflakeConnectionV1.java:146)
at net.snowflake.client.jdbc.SnowflakeConnectionV1.(SnowflakeConnectionV1.java:123)
at net.snowflake.client.jdbc.SnowflakeDriver.connect(SnowflakeDriver.java:227)
at com.wisecoders.dbs.dbms.connect.model.envoy.Envoy.init(Envoy.java:101)
at com.wisecoders.dbs.dbms.connect.model.envoy.Envoy.getMetaData(Envoy.java:136)
at com.wisecoders.dbs.dbms.connect.fx.FxTestConnectivityTask.call(FxTestConnectivityTask.java:44)
at com.wisecoders.dbs.dbms.connect.fx.FxTestConnectivityTask.call(FxTestConnectivityTask.java:19)
javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at java.base/sun.security.ssl.HandshakeContext.(HandshakeContext.java:172)
at java.base/sun.security.ssl.ClientHandshakeContext.(ClientHandshakeContext.java:103)
at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:247)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:448)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
at net.snowflake.client.jdbc.internal.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
at net.snowflake.client.jdbc.internal.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at net.snowflake.client.jdbc.internal.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at net.snowflake.client.jdbc.internal.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at net.snowflake.client.jdbc.RestRequest.execute(RestRequest.java:271)
at net.snowflake.client.jdbc.RestRequest.execute(RestRequest.java:75)
at net.snowflake.client.core.HttpUtil.executeRequestInternal(HttpUtil.java:810)
at net.snowflake.client.core.HttpUtil.executeRequest(HttpUtil.java:737)
at net.snowflake.client.core.HttpUtil.executeGeneralRequest(HttpUtil.java:652)
at net.snowflake.client.core.SessionUtil.newSession(SessionUtil.java:662)
at net.snowflake.client.core.SessionUtil.openSession(SessionUtil.java:311)
at net.snowflake.client.core.SFSession.open(SFSession.java:637)
at net.snowflake.client.jdbc.DefaultSFConnectionHandler.initialize(DefaultSFConnectionHandler.java:129)
at net.snowflake.client.jdbc.DefaultSFConnectionHandler.initializeConnection(DefaultSFConnectionHandler.java:102)
at net.snowflake.client.jdbc.SnowflakeConnectionV1.initConnectionWithImpl(SnowflakeConnectionV1.java:146)
at net.snowflake.client.jdbc.SnowflakeConnectionV1.(SnowflakeConnectionV1.java:123)
at net.snowflake.client.jdbc.SnowflakeDriver.connect(SnowflakeDriver.java:227)
at com.wisecoders.dbs.dbms.connect.model.envoy.Envoy.init(Envoy.java:101)
at com.wisecoders.dbs.dbms.connect.model.envoy.Envoy.getMetaData(Envoy.java:136)
at com.wisecoders.dbs.dbms.connect.fx.FxTestConnectivityTask.call(FxTestConnectivityTask.java:44)
at com.wisecoders.dbs.dbms.connect.fx.FxTestConnectivityTask.call(FxTestConnectivityTask.java:19)
What version of JDBC driver are you using?
What operating system and processor architecture are you using?
What version of Java are you using?
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
What did you expect to see?
What should have happened and what happened instead?
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: