2
我無法初始化配置數據庫設置,因爲在將配置數據庫連接到h2數據庫時出現錯誤。無法連接到配置數據庫h2 DB
我這樣做是遠遠如下
1.Downloaded metabase.jar從here
2.從命令提示符我執行Java的罐子metabase.jar
我收到以下錯誤
04-25 12:03:07 INFO metabase.core :: Setting up and migrating Metabase DB. Please sit tight, this may take a minute...
04-25 12:03:07 INFO metabase.db :: Verifying h2 Database Connection ...
04-25 12:03:12 ERROR metabase.driver :: Failed to connect to database: Timed out after 5000 milliseconds.
java.lang.AssertionError: Assert failed: Unable to connect to Metabase h2 DB.
(binding [*allow-potentailly-unsafe-connections* true] (require (quote metabase.driver)) ((resolve (quote metabase.drive
r/can-connect-with-details?)) engine details))
at metabase.db$verify_db_connection.invokeStatic(db.clj:320)
at metabase.db$verify_db_connection.invoke(db.clj:313)
at metabase.db$verify_db_connection.invokeStatic(db.clj:316)
at metabase.db$verify_db_connection.invoke(db.clj:313)
at metabase.db$setup_db_BANG_.invokeStatic(db.clj:368)
at metabase.db$setup_db_BANG_.doInvoke(db.clj:362)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at metabase.core$init_BANG_.invokeStatic(core.clj:102)
at metabase.core$init_BANG_.invoke(core.clj:81)
at metabase.core$start_normally.invokeStatic(core.clj:186)
at metabase.core$start_normally.invoke(core.clj:180)
at metabase.core$_main.invokeStatic(core.clj:278)
at metabase.core$_main.doInvoke(core.clj:273)
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)
04-25 12:03:12 ERROR metabase.core :: Metabase Initialization FAILED: Assert failed: Unable to connect to Metabase h2 D
B.
(binding [*allow-potentailly-unsafe-connections* true] (require (quote metabase.driver)) ((resolve (quote metabase.drive
r/can-connect-with-details?)) engine details))
04-25 12:03:12 INFO metabase.core :: Metabase Shutting Down ...
04-25 12:03:12 INFO metabase.core :: Metabase Shutdown COMPLETE
最初我沒有得到一個錯誤。我在元數據庫中做了所有事情。 2天后,當我嘗試相同的時候,我得到這個錯誤。即使刪除了所有內容並嘗試從頭再次啓動,並與管理員權限。沒有工作相同的錯誤。