V0.45.1 can't initialized plugins

Hi, I'm trying to connect to athena using metabasev0.45.1.

But I get an error after running jave -jar metabase.jar.v0.45.1 on my EC2 instance.

Is there any workaround for this issue?

## environment

$ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

$ ls -l
-rwx------ 1 root root 271633006 Dec  8 05:43 metabase.jar.v0.45.1
drwxr-xr-x 2 root root      4096 Dec 21 13:48 plugins

$ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2017.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2017.09"
PRETTY_NAME="Amazon Linux AMI 2017.09"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2017.09:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"

$ cat /proc/version
Linux version 4.9.77-31.58.amzn1.x86_64 (mockbuild@gobi-build-64011) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) )
## error info

$ java -jar metabase.jar.v0.45.1

arning: protocol #'java-time.core/Amount is overwriting function abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: java-time.core, being replaced by: #'java-time.core/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: java-time, being replaced by: #'java-time/abs
2022-12-21 14:10:53,520 INFO metabase.util :: Maximum memory available to JVM: 974.0 MB
2022-12-21 14:10:54,952 INFO util.encryption :: Saved credentials encryption is DISABLED for this Metabase instance. ?
 For more information, see https://metabase.com/docs/latest/operations-guide/encrypting-database-details-at-rest.html
WARNING: abs already refers to: #'clojure.core/abs in namespace: taoensso.encore, being replaced by: #'taoensso.encore/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: kixi.stats.math, being replaced by: #'kixi.stats.math/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: kixi.stats.test, being replaced by: #'kixi.stats.math/abs
WARNING: abs already refers to: #'clojure.core/abs in namespace: kixi.stats.distribution, being replaced by: #'kixi.stats.math/abs
2022-12-21 14:11:01,060 INFO driver.impl :: Registered abstract driver :sql  ?
2022-12-21 14:11:01,065 INFO metabase.util ::  ? Load driver :sql took 98.2 ms
2022-12-21 14:11:01,076 INFO driver.impl :: Registered abstract driver :sql-jdbc (parents: [:sql]) ?
2022-12-21 14:11:01,081 INFO metabase.util :: Load driver :sql-jdbc took 119.6 ms
2022-12-21 14:11:01,081 INFO driver.impl :: Registered driver :h2 (parents: [:sql-jdbc]) ?
2022-12-21 14:11:01,221 INFO driver.impl :: Registered driver :mysql (parents: [:sql-jdbc]) ?
2022-12-21 14:11:01,277 INFO driver.impl :: Registered driver :postgres (parents: [:sql-jdbc]) ?
2022-12-21 14:11:03,760 INFO metabase.core ::
Metabase v0.45.1 (019d31c release-x.45.x)

Copyright ? 2022 Metabase, Inc.

Metabase Enterprise Edition extensions are NOT PRESENT.
2022-12-21 14:11:03,771 INFO metabase.core :: Starting Metabase in STANDALONE mode
2022-12-21 14:11:03,828 INFO metabase.server :: Launching Embedded Jetty Webserver with config:
 {:port 5000}

2022-12-21 14:11:03,871 INFO metabase.core :: Starting Metabase version v0.45.1 (019d31c release-x.45.x) ...
2022-12-21 14:11:03,957 INFO metabase.core :: System info:
 {"file.encoding" "ANSI_X3.4-1968",
 "java.runtime.name" "OpenJDK Runtime Environment",
 "java.runtime.version" "11.0.2+9",
 "java.vendor" "Oracle Corporation",
 "java.vendor.url" "http://java.oracle.com/",
 "java.version" "11.0.2",
 "java.vm.name" "OpenJDK 64-Bit Server VM",
 "java.vm.version" "11.0.2+9",
 "os.name" "Linux",
 "os.version" "4.9.77-31.58.amzn1.x86_64",
 "user.language" "en",
 "user.timezone" "Asia/Tokyo"}

2022-12-21 14:11:03,960 INFO metabase.plugins :: Loading plugins in /home/stmn/metabase/takuya-wakazono...
2022-12-21 14:11:03,982 ERROR metabase.core :: Metabase Initialization FAILED
java.nio.file.FileSystemNotFoundException
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:169)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:155)
        at java.base/java.nio.file.Path.of(Path.java:208)
        at java.base/java.nio.file.Paths.get(Paths.java:97)
        at metabase.util.files$do_with_open_path_to_resource.invokeStatic(files.clj:118)
        at metabase.util.files$do_with_open_path_to_resource.invoke(files.clj:109)
        at metabase.plugins$extract_system_modules_BANG_.invokeStatic(plugins.clj:67)
        at metabase.plugins$extract_system_modules_BANG_.invoke(plugins.clj:64)
        at metabase.plugins$load_BANG_.invokeStatic(plugins.clj:167)
        at metabase.plugins$load_BANG_.invoke(plugins.clj:165)
        at metabase.plugins$load_plugins_BANG_.invokeStatic(plugins.clj:196)
        at metabase.plugins$load_plugins_BANG_.invoke(plugins.clj:175)
        at metabase.core$init_BANG__STAR_.invokeStatic(core.clj:97)
        at metabase.core$init_BANG__STAR_.invoke(core.clj:87)
        at metabase.core$init_BANG_.invokeStatic(core.clj:144)
        at metabase.core$init_BANG_.invoke(core.clj:139)
        at metabase.core$start_normally.invokeStatic(core.clj:156)
        at metabase.core$start_normally.invoke(core.clj:150)
        at metabase.core$_main.invokeStatic(core.clj:189)
        at metabase.core$_main.doInvoke(core.clj:183)
        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 clojure.lang.Var.applyTo(Var.java:705)
        at clojure.core$apply.invokeStatic(core.clj:667)
        at clojure.core$apply.invoke(core.clj:662)
        at metabase.bootstrap$_main.invokeStatic(bootstrap.clj:23)
        at metabase.bootstrap$_main.doInvoke(bootstrap.clj:20)
        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.bootstrap.main(Unknown Source)
2022-12-21 14:11:04,000 INFO metabase.core :: Metabase Shutting Down ...
2022-12-21 14:11:04,002 INFO metabase.server :: Shutting Down Embedded Jetty Webserver
2022-12-21 14:11:04,019 INFO metabase.core :: Metabase Shutdown COMPLETE

Thanks, takuya wakazono

Hi @takuya-wakazono
You have defined MB_PLUGINS_DIR to point to /home/stmn/metabase/takuya-wakazono, which is likely not a directory that exist or there isn't sufficient permissions.

Hi, flamber!

Thank you for your reply.
As you pointed out, there was a problem with directory permissions, and now it works.

In another case, an error like the screen is displayed when connecting with Google Analytics.
Do you have any effective means to solve it?

The operating environment is as in the first question.

@takuya-wakazono Check the Metabase log for the full stacktrace.