【发布时间】: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
【问题讨论】:
标签: postgresql kubernetes metabase