添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi All,

I am running the metabase pod in k8s and trying to connect the postgres db to metabase.
Unable to connect to postgres db. This application was running until yesterday and there is no configuration changes done and getting below error.
Metabase version is 0.27.0 which is old version but this is not wrt version I believe.May I know what might be the cause?

01-25 08:10:44 INFO metabase.util :: Loading Metabase...

01-25 08:10:51 INFO util.encryption :: DB details encryption is DISABLED for this Metabase instance.

See http://www.metabase.com/docs/latest/operations-guide/start.html#encrypting-your-database-connection-details-at-rest for more information.

01-25 08:10:58 INFO metabase.core :: Starting Metabase in STANDALONE mode

01-25 08:10:58 INFO metabase.core :: Launching Embedded Jetty Webserver with config:

{:port 3000, :host "0.0.0.0", :ssl? true, :ssl-port 8300, :keystore "/opt/metabase/config/keystore.jks", :truststore "/opt/metabase/config/truststore.jks"}

01-25 08:10:58 INFO metabase.core :: Starting Metabase version v0.27.2 (35acf6e release-0.27.0) ...

01-25 08:10:58 INFO metabase.core :: System timezone is 'UTC' ...

01-25 08:11:00 WARN metabase.driver :: No -init-driver function found for 'metabase.driver.google'

01-25 08:11:01 INFO metabase.core :: Setting up and migrating Metabase DB. Please sit tight, this may take a minute...

01-25 08:11:01 INFO metabase.db :: Verifying postgres Database Connection ...

01-25 08:11:06 ERROR metabase.driver :: Failed to connect to database: Timed out after 5000 milliseconds.

java.lang.AssertionError: Assert failed: Unable to connect to Metabase postgres DB.

(binding [ allow-potentailly-unsafe-connections true] (require (quote metabase.driver)) ((resolve (quote metabase.driver/can-connect-with-details?)) engine details))

at metabase.db$verify_db_connection.invokeStatic(db.clj:334)

at metabase.db$verify_db_connection.invoke(db.clj:327)

at metabase.db$verify_db_connection.invokeStatic(db.clj:330)

at metabase.db$verify_db_connection.invoke(db.clj:327)

at metabase.db$setup_db_BANG_.invokeStatic(db.clj:382)

at metabase.db$setup_db_BANG_.doInvoke(db.clj:376)

at clojure.lang.RestFn.invoke(RestFn.java:421)

at metabase.core$init_BANG_.invokeStatic(core.clj:108)

at metabase.core$init_BANG_.invoke(core.clj:87)

at metabase.core$start_normally.invokeStatic(core.clj:194)

at metabase.core$start_normally.invoke(core.clj:188)

at metabase.core$_main.invokeStatic(core.clj:292)

at metabase.core$_main.doInvoke(core.clj:287)

at clojure.lang.RestFn.invoke(RestFn.java:397)

at clojure.lang.AFn.applyToHelper(AFn.java:152)

at clojure.lang.RestFn.applyTo(RestFn.java:132)

at metabase.core.main(Unknown Source)

01-25 08:11:06 ERROR metabase.core :: Metabase Initialization FAILED: Assert failed: Unable to connect to Metabase postgres DB.

(binding [ allow-potentailly-unsafe-connections true] (require (quote metabase.driver)) ((resolve (quote metabase.driver/can-connect-with-details?)) engine details))

01-25 08:11:06 INFO metabase.core :: Metabase Shutting Down ...

01-25 08:11:06 INFO metabase.core :: Metabase Shutdown COMPLETE