New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saved credentials encryption is DISABLED for this Metabase instance. #8368
Comments
Is it that I have executed the migration command before? |
Before I run export MB_DB_TYPE=mysql |
Yes it’s possible, i have never tried doing that. It certainly complicates running for development a bit. I would just run it as default with H2 as application database.
This is no problem or error. Just information that it’s running without encryption for credentials according to the link included there. Again, just fine for local development with H2 and test data. |
On startup we create a string to identify ourselves (and our queries) to BigQuery. The string is "Metabase" + version info. When your Metabase instance starts up, for some reason it's finding no version information. When running from source, it will grab the git SHA from the repo, did your git metadata somehow get removed? |
@senior if that’s what makes Metabase fail here I think I know the cause. If you just make a zip download from GitHub instead of doing a git clone you don’t have git metadata locally (yeah I know it’s an appalling thought, but it can happen 😜) Sorry for not reporting this finding earlier! |
@zhangdoudou make sure when you get the Metabase code from GitHub that you do it as a When building Metabase the git SHA info is used to label the version - and normally puts it where you have
@senior if those Also it seems https://github.com/metabase/metabase/blob/master/bin/version effectively puts |
@jornh Ok,I see,I just make a zip download from GitHub ,not git clone ,I will amend this question,thank you very much. |
It looks like the frontend code isn't running and/or you are having networking issues. Are you seeing any errors from the |
When connecting to a Google service, we identify ourselves with a string that includes version, hash and branch information. If a user downloads a Metabase tarball from Github, it won't have that Git metadata and we will throw a NullPointerException on startup. This commit just ensures we always have a value for that string, even when there is no git metadata available. Fixes #8368
when I run “yarn run build-hot” |
@zhangdoudou hmm, your “yarn run build-hot” output looks as far as I know good. The only thing I can think of is that you must keep Maybe, that's already what you're doing - just wanted to be 100% sure. Other than that one thing you can do is to fall back to do a full |
yeah,I use two windows to run "yarn run build-hot" and "lein ring server",when I run "./bin/build",after |
closed via #8385 |
Bugs
When I run lein ring server,
will show this:
Compiling metabase.logger
Compiling metabase.task.DynamicClassLoadHelper
08-21 10:27:10 INFO metabase.util :: Loading Metabase...
08-21 10:27:17 INFO util.encryption :: Saved credentials encryption is DISABLED for this Metabase instance. 🔓
For more information, see https://www.metabase.com/docs/latest/operations-guide/start.html#encrypting-your-database-connection-details-at-rest
08-21 10:28:18 INFO metabase.core :: Starting Metabase version v0.30.1 (null null) ...
08-21 10:28:18 INFO metabase.core :: System timezone is 'Asia/Shanghai' ...
Exception in thread "main" java.lang.NullPointerException, compiling:(google.clj:51:3)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3700)
at clojure.lang.Compiler$DefExpr.eval(Compiler.java:457)
at clojure.lang.Compiler.eval(Compiler.java:7067)
at clojure.lang.Compiler.load(Compiler.java:7514)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn__6548.invoke(core.clj:6046)
at clojure.core$load.invokeStatic(core.clj:6045)
at clojure.core$load.doInvoke(core.clj:6029)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5848)
at clojure.core$load_one.invoke(core.clj:5843)
at clojure.core$load_lib$fn__6493.invoke(core.clj:5888)
at clojure.core$load_lib.invokeStatic(core.clj:5887)
at clojure.core$load_lib.doInvoke(core.clj:5868)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5929)
at clojure.core$load_libs.doInvoke(core.clj:5909)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5947)
at clojure.core$require.doInvoke(core.clj:5947)
at clojure.lang.RestFn.invoke(RestFn.java:1289)
at metabase.driver.bigquery$eval65222$loading__6434__auto____65223.invoke(bigquery.clj:1)
at metabase.driver.bigquery$eval65222.invokeStatic(bigquery.clj:1)
at metabase.driver.bigquery$eval65222.invoke(bigquery.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7062)
at clojure.lang.Compiler.eval(Compiler.java:7051)
at clojure.lang.Compiler.load(Compiler.java:7514)
at clojure.lang.RT.loadResourceScript(RT.java:379)
at clojure.lang.RT.loadResourceScript(RT.java:370)
at clojure.lang.RT.load(RT.java:460)
at clojure.lang.RT.load(RT.java:426)
at clojure.core$load$fn__6548.invoke(core.clj:6046)
at clojure.core$load.invokeStatic(core.clj:6045)
at clojure.core$load.doInvoke(core.clj:6029)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5848)
at clojure.core$load_one.invoke(core.clj:5843)
at clojure.core$load_lib$fn__6493.invoke(core.clj:5888)
at clojure.core$load_lib.invokeStatic(core.clj:5887)
at clojure.core$load_lib.doInvoke(core.clj:5868)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$load_libs.invokeStatic(core.clj:5925)
at clojure.core$load_libs.doInvoke(core.clj:5909)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:659)
at clojure.core$require.invokeStatic(core.clj:5947)
at clojure.core$require.doInvoke(core.clj:5947)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at metabase.driver$init_driver_in_namespace_BANG_.invokeStatic(driver.clj:323)
at metabase.driver$init_driver_in_namespace_BANG_.invoke(driver.clj:322)
at metabase.driver$find_and_load_drivers_BANG_.invokeStatic(driver.clj:334)
at metabase.driver$find_and_load_drivers_BANG_.invoke(driver.clj:328)
at metabase.core$init_BANG_.invokeStatic(core.clj:156)
at metabase.core$init_BANG_.invoke(core.clj:138)
at clojure.lang.Var.invoke(Var.java:377)
at ring.server.standalone$serve.invokeStatic(standalone.clj:96)
at ring.server.standalone$serve.doInvoke(standalone.clj:75)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at ring.server.leiningen$serve.invokeStatic(leiningen.clj:19)
at ring.server.leiningen$serve.invoke(leiningen.clj:16)
at user$eval65026.invokeStatic(form-init2588511176082585470.clj:1)
at user$eval65026.invoke(form-init2588511176082585470.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:7062)
at clojure.lang.Compiler.eval(Compiler.java:7052)
at clojure.lang.Compiler.load(Compiler.java:7514)
at clojure.lang.Compiler.loadFile(Compiler.java:7452)
at clojure.main$load_script.invokeStatic(main.clj:278)
at clojure.main$init_opt.invokeStatic(main.clj:280)
at clojure.main$init_opt.invoke(main.clj:280)
at clojure.main$initialize.invokeStatic(main.clj:311)
at clojure.main$null_opt.invokeStatic(main.clj:345)
at clojure.main$null_opt.invoke(main.clj:342)
at clojure.main$main.invokeStatic(main.clj:424)
at clojure.main$main.doInvoke(main.clj:387)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:702)
at clojure.main.main(main.java:37)
Caused by: java.lang.NullPointerException
at metabase.driver.google$fn__65244.invokeStatic(google.clj:52)
at metabase.driver.google$fn__65244.invoke(google.clj:51)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3695)
... 82 more
08-21 10:28:19 INFO metabase.core :: Metabase Shutting Down ...
08-21 10:28:19 INFO metabase.core :: Metabase Shutdown COMPLETE
Subprocess failed
browser and the version: (Chrome 52.1)
operating system: ( OS X 10)
databases: (sample)
version: ( 0.30.1)
internal database: (e.x. H2 (default),)
I don't know what caused it. It was possible to run successfully before.
The text was updated successfully, but these errors were encountered: