I think the plugins are replaced and updated but i am struggling to understand what i’m experiencing, as described:
- start by building jar from release branch
- download official jar as well
- run it and attempt to add a Snowflake database (should work)
- after the release branch build is complete, run it from the repo with
java -jar target/uberjar/metabase.jar
and attempt to add a Snowflake database (should also work) - in step 3 and 4, a
/plugins
directory and a couple ofmetabase.db.*
files get created. the plugins got logged as:
05-01 11:47:15 INFO metabase.plugins :: Loading plugins in /Users/jerome.truong/Applications/metabase/plugins...
Extract file /modules/sparksql.metabase-driver.jar -> /Users/jerome.truong/Applications/metabase/plugins/sparksql.metabase-driver.jar took 376.1 ms
Extract file /modules/bigquery.metabase-driver.jar -> /Users/jerome.truong/Applications/metabase/plugins/bigquery.metabase-driver.jar took 3.6 ms
Extract file /modules/sqlserver.metabase-driver.jar -> /Users/jerome.truong/Applications/metabase/plugins/sqlserver.metabase-driver.jar took 7.0 ms
...
Extract file /modules/snowflake.metabase-driver.jar -> /Users/jerome.truong/Applications/metabase/plugins/snowflake.metabase-driver.jar took 148.7 ms
Extract file /modules/googleanalytics.metabase-driver.jar -> /Users/jerome.truong/Applications/metabase/plugins/googleanalytics.metabase-driver.jar took 4.4 ms
- i see that gets logged and the
/plugins
folder gets updated each time i switch between the two jars, still in the same directory. so if i ranjava -jar ~/Downloads/metabase.jar
from the repo root,/plugins
get updated, and because themetabase.db.*
files also exists, i can view the Snowflake database info i entered, previously. I can edit and save, no issue. - now here’s where things break; i run
yarn dev
from the repo and i can no longer save or add a Snowflake database. There were no discerning differences with the relevant drivers between the result ofyarn dev
and the built jar. - if i run either jar from this tainted directory, when neither had issues with the Snowflake driver before, they both have it now. Removing/recreating
/plugins/
and/metabase.db.*
had no effect. - rebuilding fixes the issue
I had to stop there, but let me know if you have an idea or something i can try that might hint at a solution. I’m no longer blocked since simply using the jar suffices. Thanks for your help.