配置数据库崩溃,无法重新启动导致h2.db错误的原因

时间:2019-07-15 09:11:36

标签: h2 metabase

元数据库崩溃,并且重新启动导致以下错误。

尝试使用以下方法恢复数据库

java -cp metabase.jar org.h2.tools.Shell -url jdbc:h2:/opt/metabase_backup/new/metabase.db.h2.db

07-15 10:38:06 INFO metabase.core :: System-Zeitsone ist "Europe/Berlin" ...
WARNING: any? already refers to: #'clojure.core/any? in namespace: monger.collection, being replaced by: #'monger.collection/any?
07-15 10:38:07 INFO metabase.core :: Einrichten und Migrieren der Metabase DB. Bitte warten, dies kann eine Minute in Anspruch nehmen...
07-15 10:38:07 INFO metabase.db :: Überprüfe h2 Datenbankverbindung ...
07-15 10:38:08 ERROR metabase.driver :: Fehler beim Verbinden mit der Datenbank: org.h2.jdbc.JdbcSQLException: Zeile nicht gefunden beim Löschen von Index """"".I63: ( /* key:61650 */ X'6757750231595157d046b6dcbe62d995788b874c1588f4f3e03da2fa97ed2559', 10, SPACE(739 /* table: 61 id: 16525034 */))"
Row not found when trying to delete from index """"".I63: ( /* key:61650 */ X'6757750231595157d046b6dcbe62d995788b874c1588f4f3e03da2fa97ed2559', 10, SPACE(739 /* table: 61 id: 16525034 */))" [90112-197]
07-15 10:38:08 ERROR metabase.core :: Metabase Initialisierung FEHLGESCHLAGEN
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.driver/can-connect-with-details?)) engine details))
    at metabase.db$verify_db_connection.invokeStatic(db.clj:402)
    at metabase.db$verify_db_connection.invoke(db.clj:395)
    at metabase.db$verify_db_connection.invokeStatic(db.clj:398)
    at metabase.db$verify_db_connection.invoke(db.clj:395)
    at metabase.db$setup_db_BANG_.invokeStatic(db.clj:464)
    at metabase.db$setup_db_BANG_.doInvoke(db.clj:458)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at metabase.core$init_BANG_.invokeStatic(core.clj:162)
    at metabase.core$init_BANG_.invoke(core.clj:139)
    at metabase.core$start_normally.invokeStatic(core.clj:246)
    at metabase.core$start_normally.invoke(core.clj:240)
    at metabase.core$_main.invokeStatic(core.clj:266)
    at metabase.core$_main.doInvoke(core.clj:261)
    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)
07-15 10:38:08 INFO metabase.core :: Metabase fährt herunter ...
07-15 10:38:08 INFO metabase.core :: Herunterfahren von Metabase abgeschlossen

0 个答案:

没有答案