Can't start metabase

Can’t start fresh metabase on RHEL 7.

I have installed openjdk 11.0.6.
openjdk 11.0.6 2020-01-14 LTS

When I try to start metabase, I’m always getting the following error:
Metabase Initialization FAILED
liquibase.exception.UnexpectedLiquibaseException: Cannot find ChangeLogHistoryService for unsupported

It created a metabase.db.mv.db file but can’t start metabase.

@noesberger I’m sure there’s more errors than just the final one. Can you post the entire startup log?

[myuser@myserver ~]$ java -jar metabase.jar
02-07 10:53:00 DEBUG plugins.classloader :: Using NEWLY CREATED classloader as shared context classloader: clojure.lang.DynamicClassLoader@fb713e7
02-07 10:53:01 INFO metabase.util :: Loading Metabase…
02-07 10:53:01 INFO metabase.util :: Maximum memory available to JVM: 944.0 MB
02-07 10:53:02 WARN servicelocator.DefaultPackageScanClassResolver :: Cannot search jar file ‘/home/myuser/metabase.jar’ for classes due to an IOException: invalid distance too far back
java.util.zip.ZipException: invalid distance too far back
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:165)
at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
at java.base/java.util.jar.JarInputStream.read(JarInputStream.java:207)
at java.base/java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:141)
at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:119)
at java.base/java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:142)
at java.base/java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:179)
at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplementationsInJar(DefaultPackageScanClassResolver.java:433)
at liquibase.servicelocator.DefaultPackageScanClassResolver.findAllClasses(DefaultPackageScanClassResolver.java:231)
at liquibase.servicelocator.DefaultPackageScanClassResolver.find(DefaultPackageScanClassResolver.java:121)
at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplementations(DefaultPackageScanClassResolver.java:89)
at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:226)
at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:201)
at liquibase.database.DatabaseFactory.(DatabaseFactory.java:28)
at liquibase.database.DatabaseFactory.getInstance(DatabaseFactory.java:46)
at metabase.db$fn__21336.invokeStatic(db.clj:259)
at metabase.db$fn__21336.invoke(db.clj:259)
at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
02-07 10:53:04 INFO util.encryption :: Saved credentials encryption is DISABLED for this Metabase instance.
02-07 10:53:10 INFO metabase.core :: Starting Metabase in STANDALONE mode
02-07 10:53:10 INFO metabase.server :: Launching Embedded Jetty Webserver with config:
{:port 3000}

02-07 10:53:10 INFO metabase.core :: Starting Metabase version v0.34.1 (265695c release-0.34.x) …
02-07 10:53:10 INFO metabase.core :: System info:
{“java.runtime.name” “OpenJDK Runtime Environment”,
“java.runtime.version” “11.0.6+10-LTS”,
“java.vendor” “Oracle Corporation”,
“java.vendor.url”
“java.version” “11.0.6”,
“java.vm.name” “OpenJDK 64-Bit Server VM”,
“java.vm.version” “11.0.6+10-LTS”,
“os.name” “Linux”,
“os.version” “3.10.0-1062.9.1.el7.x86_64”,
“user.language” “en”,
“user.timezone” “Europe/Zurich”}

02-07 10:53:10 INFO metabase.plugins :: Loading plugins in /home/myuser/plugins…
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :hive-like…
02-07 10:53:11 INFO driver.impl :: Registered abstract driver :sql ??
Load driver :sql took 91.5 ms
02-07 10:53:11 INFO driver.impl :: Registered abstract driver :sql-jdbc (parents: [:sql]) ??
Load driver :sql-jdbc took 188.2 ms
02-07 10:53:11 INFO driver.impl :: Registered abstract driver :hive-like (parents: [:sql-jdbc]) ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :sparksql…
02-07 10:53:11 INFO driver.impl :: Registered driver :sparksql (parents: [:hive-like]) ??
02-07 10:53:11 INFO plugins.dependencies :: Plugin ‘Metabase BigQuery Driver’ depends on plugin ‘Metabase Google Drivers Shared Dependencies’
02-07 10:53:11 INFO plugins.dependencies :: Metabase BigQuery Driver dependency {:plugin Metabase Google Drivers Shared Dependencies} satisfied? false
02-07 10:53:11 INFO plugins.dependencies :: Plugins with unsatisfied deps: [“Metabase BigQuery Driver”]
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :sqlserver…
02-07 10:53:11 INFO driver.impl :: Registered driver :sqlserver (parents: [:sql-jdbc]) ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :sqlite…
02-07 10:53:11 INFO driver.impl :: Registered driver :sqlite (parents: [:sql-jdbc]) ??
02-07 10:53:11 INFO plugins.dependencies :: Metabase cannot initialize plugin Metabase Vertica Driver due to required dependencies. Metabase requires the Vertica JDBC driver in order to connect to Vertica databases, but we can’t ship it as part of Metabase due to licensing restrictions.
02-07 10:53:11 INFO plugins.dependencies :: Metabase Vertica Driver dependency {:class com.vertica.jdbc.Driver} satisfied? false
02-07 10:53:11 INFO plugins.dependencies :: Plugins with unsatisfied deps: [“Metabase Vertica Driver” “Metabase BigQuery Driver”]
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :redshift…
02-07 10:53:11 INFO driver.impl :: Registered driver :postgres (parents: [:sql-jdbc]) ??
Load driver :postgres took 29.9 ms
02-07 10:53:11 INFO driver.impl :: Registered driver :redshift (parents: [:postgres]) ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :presto…
02-07 10:53:11 INFO driver.impl :: Registered driver :presto (parents: [:sql]) ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :druid…
02-07 10:53:11 INFO driver.impl :: Registered driver :druid ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :mongo…
02-07 10:53:11 INFO driver.impl :: Registered driver :mongo ??
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :google…
02-07 10:53:11 INFO driver.impl :: Registered abstract driver :google ??
02-07 10:53:11 INFO plugins.dependencies :: Metabase BigQuery Driver dependency {:plugin Metabase Google Drivers Shared Dependencies} satisfied? true
02-07 10:53:11 DEBUG plugins.initialize :: Dependencies satisfied; these plugins will now be loaded: [“Metabase BigQuery Driver”]
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :bigquery…
02-07 10:53:11 INFO driver.impl :: Registered driver :bigquery (parents: [:sql :google]) ??
02-07 10:53:11 INFO plugins.dependencies :: Metabase cannot initialize plugin Metabase Oracle Driver due to required dependencies. Metabase requires the Oracle JDBC driver in order to connect to Oracle databases, but we can’t ship it as part of Metabase due to licensing restrictions.
02-07 10:53:11 INFO plugins.dependencies :: Metabase Oracle Driver dependency {:class oracle.jdbc.OracleDriver} satisfied? false
02-07 10:53:11 INFO plugins.dependencies :: Plugins with unsatisfied deps: [“Metabase Vertica Driver” “Metabase Oracle Driver”]
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :snowflake…
02-07 10:53:11 INFO driver.impl :: Registered driver :snowflake (parents: [:sql-jdbc]) ??
02-07 10:53:11 INFO plugins.dependencies :: Plugin ‘Metabase Google Analytics Driver’ depends on plugin ‘Metabase Google Drivers Shared Dependencies’
02-07 10:53:11 INFO plugins.dependencies :: Metabase Google Analytics Driver dependency {:plugin Metabase Google Drivers Shared Dependencies} satisfied? true
02-07 10:53:11 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :googleanalytics…
02-07 10:53:11 INFO driver.impl :: Registered driver :googleanalytics (parents: [:google]) ??
02-07 10:53:11 INFO metabase.util :: Reading Metabase namespaces from namespaces.edn
02-07 10:53:11 INFO driver.impl :: Registered driver :h2 (parents: [:sql-jdbc]) ??
Load driver :h2 took 19.3 ms
02-07 10:53:11 INFO driver.impl :: Registered driver :mysql (parents: [:sql-jdbc]) ??
Load driver :mysql took 18.2 ms
02-07 10:53:11 INFO metabase.core :: Setting up and migrating Metabase DB. Please sit tight, this may take a minute…
02-07 10:53:11 WARN metabase.db :: WARNING: Using Metabase with an H2 application database is not recommended for production deployments. For production deployments, we highly recommend using Postgres, MySQL, or MariaDB instead. If you decide to continue to use H2, please be sure to back up the database file regularly. For more information, seehttps://metabase.com/docs/latest/operations-guide/migrating-from-h2.html
02-07 10:53:11 INFO metabase.db :: Verifying h2 Database Connection …
02-07 10:53:11 INFO driver.impl :: Initializing driver :sql…
02-07 10:53:11 INFO driver.impl :: Initializing driver :sql-jdbc…
02-07 10:53:11 INFO driver.impl :: Initializing driver :h2…
02-07 10:53:12 INFO metabase.db :: Verify Database Connection … ?
02-07 10:53:12 INFO metabase.db :: Running Database Migrations…
02-07 10:53:12 INFO metabase.db :: Setting up Liquibase…
02-07 10:53:12 WARN database.DatabaseFactory :: Unknown database: H2
02-07 10:53:12 INFO metabase.db :: Liquibase is ready.
02-07 10:53:12 INFO metabase.db :: Checking if Database has unrun migrations…
02-07 10:53:12 WARN metabase.util :: auto-retry metabase.db$run_schema_migrations_BANG_$fn__21413@e1affe8: Cannot find ChangeLogHistoryService for unsupported
02-07 10:53:12 INFO metabase.db :: Setting up Liquibase…
02-07 10:53:12 WARN database.DatabaseFactory :: Unknown database: H2
02-07 10:53:12 INFO metabase.db :: Liquibase is ready.
02-07 10:53:12 INFO metabase.db :: Checking if Database has unrun migrations…
02-07 10:53:12 ERROR metabase.core :: Metabase Initialization FAILED
liquibase.exception.UnexpectedLiquibaseException: Cannot find ChangeLogHistoryService for unsupported
at liquibase.changelog.ChangeLogHistoryServiceFactory.getChangeLogService(ChangeLogHistoryServiceFactory.java:73)
at liquibase.Liquibase.checkLiquibaseTables(Liquibase.java:1217)
at liquibase.Liquibase.listLocks(Liquibase.java:1240)
at metabase.db$migration_lock_exists_QMARK_.invokeStatic(db.clj:198)
at metabase.db$migration_lock_exists_QMARK_.invoke(db.clj:195)
at metabase.db$release_lock_if_needed_BANG_.invokeStatic(db.clj:294)
at metabase.db$release_lock_if_needed_BANG_.invoke(db.clj:290)
at metabase.db$migrate_BANG_$fn__21356.invoke(db.clj:356)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:799)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:834)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:782)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:769)
at metabase.db$migrate_BANG_.invokeStatic(db.clj:321)
at metabase.db$migrate_BANG_.invoke(db.clj:300)
at metabase.db$run_schema_migrations_BANG_$fn__21413.invoke(db.clj:454)
at metabase.util$do_with_auto_retries.invokeStatic(util.clj:415)
at metabase.util$do_with_auto_retries.invoke(util.clj:407)
at metabase.util$do_with_auto_retries.invokeStatic(util.clj:422)
at metabase.util$do_with_auto_retries.invoke(util.clj:407)
at metabase.db$run_schema_migrations_BANG_.invokeStatic(db.clj:453)
at metabase.db$run_schema_migrations_BANG_.invoke(db.clj:436)
at metabase.db$setup_db_BANG__STAR_$fn__21420.invoke(db.clj:475)
at metabase.util$do_with_us_locale.invokeStatic(util.clj:688)
at metabase.util$do_with_us_locale.invoke(util.clj:674)
at metabase.db$setup_db_BANG__STAR_.invokeStatic(db.clj:473)
at metabase.db$setup_db_BANG__STAR_.invoke(db.clj:469)
at metabase.db$setup_db_from_env_BANG__STAR_.invokeStatic(db.clj:483)
at metabase.db$setup_db_from_env_BANG__STAR_.invoke(db.clj:480)
at metabase.db$fn__21425$fn__21426.invoke(db.clj:490)
at clojure.lang.Delay.deref(Delay.java:42)
at clojure.core$deref.invokeStatic(core.clj:2320)
at clojure.core$deref.invoke(core.clj:2306)
at clojure.core$partial$fn__5839.invoke(core.clj:2623)
at metabase.core$init_BANG_.invokeStatic(core.clj:76)
at metabase.core$init_BANG_.invoke(core.clj:55)
at metabase.core$start_normally.invokeStatic(core.clj:122)
at metabase.core$start_normally.invoke(core.clj:116)
at metabase.core$_main.invokeStatic(core.clj:142)
at metabase.core$_main.doInvoke(core.clj:137)
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)
02-07 10:53:12 INFO metabase.core :: Metabase Shutting Down …
02-07 10:53:12 INFO metabase.server :: Shutting Down Embedded Jetty Webserver
02-07 10:53:12 INFO metabase.core :: Metabase Shutdown COMPLETE

@noesberger So the error is Cannot search jar file ‘/home/myuser/metabase.jar’ for classes due to an IOException: invalid distance too far back
I think your JAR file might be corrupted.
Download the latest and verify the check on the release page ( https://github.com/metabase/metabase/releases ) with the downloaded file: sha256sum /home/myuser/metabase.jar

Thanks, this was the problem.
I think the proxy was blocking something.