【问题标题】:Metabase DB connection to postgres :Failed to connect to database: Timed out after 5000 milliseconds与 postgres 的配置数据库连接:无法连接到数据库:5000 毫秒后超时
【发布时间】:2023-01-30 20:16:38
【问题描述】:

我有一个在元数据库命名空间中运行的元数据库 pod 和在 db 命名空间中运行的 postgresql db,而 postgresql pod 已启动并正在运行,但元数据库 pod 无法启动容器,因为它无法连接到 postgres db。

注意:此配置从过去 1 年开始运行,最近发生故障,配置等没有任何更改。

错误

01-25 07:15:17 INFO metabase.core :: Setting up and migrating Metabase DB. Please sit tight, this may take a minute...
01-25 07:15:17 INFO metabase.db :: Verifying postgres Database Connection ...
01-25 07:15:22 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))
01-25 07:15:22 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 07:15:22 INFO metabase.core :: Metabase Shutting Down ...
01-25 07:15:22 INFO metabase.core :: Metabase Shutdown COMPLETE

【问题讨论】:

  • 参考这个 Github link1link2。让我知道这是否有帮助。
  • @FariyaRahmat 不,这没有任何帮助

标签: postgresql kubernetes metabase


【解决方案1】:

此问题是由于元数据库中的错误主机配置引起的。通过正确的主机解决了这个问题

【讨论】:

    猜你喜欢
    • 2017-11-12
    • 2015-11-21
    • 2014-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-31
    • 2015-05-08
    • 1970-01-01
    相关资源
    最近更新 更多