Giter VIP home page Giter VIP logo

Comments (5)

bshepherdson avatar bshepherdson commented on June 13, 2024

That exception indicates that the address of the Postgres database could not be resolved. Nothing related to DB connections changed with 49.3. Without any further logs, there's no more I can say.

Can you include the full server log? There may be something illuminating in it.

from metabase.

saadbahir avatar saadbahir commented on June 13, 2024

That exception indicates that the address of the Postgres database could not be resolved. Nothing related to DB connections changed with 49.3. Without any further logs, there's no more I can say.

Can you include the full server log? There may be something illuminating in it.

Thank you @bshepherdson for your quick answer!

Apologies for the mistake! It's actually 49.4

I wil fix the original ticket

Here are the full logs in the meantime

2024-04-15 20:12:28,245 ERROR driver.util :: Failed to connect to Database
org.apache.sshd.common.SshException: DefaultConnectFuture[[email protected]:22]: Failed (UnresolvedAddressException) to execute: null
	at org.apache.sshd.common.future.AbstractSshFuture.lambda$verifyResult$2(AbstractSshFuture.java:146)
	at org.apache.sshd.common.future.AbstractSshFuture.formatExceptionMessage(AbstractSshFuture.java:206)
	at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:145)
	at org.apache.sshd.client.future.DefaultConnectFuture.verify(DefaultConnectFuture.java:55)
	at org.apache.sshd.client.future.DefaultConnectFuture.verify(DefaultConnectFuture.java:36)
	at metabase.util.ssh$start_ssh_tunnel_BANG_.invokeStatic(ssh.clj:81)
	at metabase.util.ssh$start_ssh_tunnel_BANG_.invoke(ssh.clj:73)
	at metabase.util.ssh$include_ssh_tunnel_BANG_.invokeStatic(ssh.clj:115)
	at metabase.util.ssh$include_ssh_tunnel_BANG_.invoke(ssh.clj:109)
	at metabase.util.ssh$do_with_ssh_tunnel.invokeStatic(ssh.clj:158)
	at metabase.util.ssh$do_with_ssh_tunnel.invoke(ssh.clj:154)
	at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invokeStatic(connection.clj:309)
	at metabase.driver.sql_jdbc.connection$do_with_connection_spec_for_testing_connection.invoke(connection.clj:305)
	at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invokeStatic(connection.clj:334)
	at metabase.driver.sql_jdbc.connection$can_connect_QMARK_.invoke(connection.clj:330)
	at metabase.driver.sql_jdbc$fn__106676.invokeStatic(sql_jdbc.clj:49)
	at metabase.driver.sql_jdbc$fn__106676.invoke(sql_jdbc.clj:47)
	at clojure.lang.MultiFn.invoke(MultiFn.java:234)
	at metabase.driver.util$can_connect_with_details_QMARK_$fn__59933.invoke(util.clj:148)
	at clojure.core$binding_conveyor_fn$fn__5823.invoke(core.clj:2047)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.nio.channels.UnresolvedAddressException
	at java.base/sun.nio.ch.Net.checkAddress(Unknown Source)
	at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.implConnect(Unknown Source)
	at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.connect(Unknown Source)
	at org.apache.sshd.common.io.nio2.Nio2Connector.connect(Nio2Connector.java:84)
	at org.apache.sshd.client.SshClient.doConnect(SshClient.java:665)
	at org.apache.sshd.client.SshClient.doConnect(SshClient.java:648)
	at org.apache.sshd.client.SshClient.connect(SshClient.java:552)
	at org.apache.sshd.client.SshClient.connect(SshClient.java:544)
	at org.apache.sshd.client.session.ClientSessionCreator.connect(ClientSessionCreator.java:74)
	at org.apache.sshd.client.session.ClientSessionCreator.connect(ClientSessionCreator.java:57)
	at metabase.util.ssh$start_ssh_tunnel_BANG_.invokeStatic(ssh.clj:80)
	... 19 more
2024-04-15 20:12:28,251 ERROR api.database :: Cannot connect to Database
clojure.lang.ExceptionInfo: DefaultConnectFuture[[email protected]:22]: Failed (UnresolvedAddressException) to execute: null {:message "DefaultConnectFuture[[email protected]:22]: Failed (UnresolvedAddressException) to execute: null"}
	at metabase.driver.util$can_connect_with_details_QMARK_.invokeStatic(util.clj:165)
	at metabase.driver.util$can_connect_with_details_QMARK_.doInvoke(util.clj:136)

The exact same connection worked fine between Metabase 47 until 49.3

from metabase.

likeshumidity avatar likeshumidity commented on June 13, 2024

Are you using a hostname or IP address for the SSH host? @saadbahir

from metabase.

saadbahir avatar saadbahir commented on June 13, 2024

Are you using a hostname or IP address for the SSH host? @saadbahir

I am using a Hostname

from metabase.

saadbahir avatar saadbahir commented on June 13, 2024

@likeshumidity I would like to note that the ssh connection works perfectly fine on the server that hosts our metabase instance
Otherwise version 49.3 wouldn't work either

I tried to find which commit might have introduced the regression but didn't find any success thus far ...

from metabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.