How to find the log file?

Hello,

I am trying to upgrade Metabase from version 0.49.13 to 0.50.8, but the upgrade process is failing. The health status is stuck in a loop with the message {"status":"initializing","progress":0.3}.

I am running Metabase as a service on Windows using NSSM, and I would like to retrieve the log files, but I am unable to locate them. I followed the advice from Where is the logfile? I can't seem to find it - #3 by crimanysakes I and added the parameter -Dlogfile.path, but no log file is created when I run the service.

Here is the parameter I used:

-Dlogfile.path=C:\Metabase -jar metabase.jar

I am using Java from Eclipse Adoptium (version jre-11.0.23.9-hotspot), and the database is MySQL 8.

What am I missing?

EDIT:

Performed manually:

C:\Metabase>set MB_DB_TYPE=mysql

C:\Metabase>set MB_DB_DBNAME=metabaseappdb

C:\Metabase>set MB_DB_PORT=3306

C:\Metabase>set MB_DB_USER=USER

C:\Metabase>set MB_DB_PASS=SECRET

C:\Metabase>set MB_DB_HOST=localhost

C:\Metabase>"C:\Program Files\Eclipse Adoptium\jre-11.0.23.9-hotspot\bin\java.exe" -Dlogfile.path=C:\Metabase -jar metabase.jar
2024-07-01 10:32:00,848 INFO metabase.util :: Maximum memory available to JVM: 4,0 GB
2024-07-01 10:32:04,176 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
2024-07-01 10:32:11,301 INFO driver.impl :: Registered abstract driver :sql
2024-07-01 10:32:11,317 INFO driver.impl :: Registered abstract driver :sql-jdbc (parents: [:sql])
2024-07-01 10:32:11,332 INFO metabase.util :: Load driver :sql-jdbc took 55,4 ms
2024-07-01 10:32:11,332 INFO driver.impl :: Registered driver :h2 (parents: [:sql-jdbc])
2024-07-01 10:32:11,567 INFO driver.impl :: Registered driver :mysql (parents: [:sql-jdbc])
2024-07-01 10:32:11,629 INFO driver.impl :: Registered driver :postgres (parents: [:sql-jdbc])
2024-07-01 10:32:13,989 INFO metabase.core ::
Metabase v0.50.8 (dc9e68b)

Copyright ® 2024 Metabase, Inc.

Metabase Enterprise Edition extensions are NOT PRESENT.
2024-07-01 10:32:14,004 INFO metabase.core :: Starting Metabase in STANDALONE mode
2024-07-01 10:32:14,082 INFO metabase.server :: Launching Embedded Jetty Webserver with config:
 {:port 3000}

2024-07-01 10:32:14,129 ERROR metabase.core :: Metabase Initialization FAILED
java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:3000
        at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:304)
        at org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:402)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
        at org.eclipse.jetty.server.Server.doStart(Server.java:398)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
        at metabase.server$start_web_server_BANG_.invokeStatic(server.clj:120)
        at metabase.server$start_web_server_BANG_.invoke(server.clj:106)
        at metabase.core$start_normally.invokeStatic(core.clj:180)
        at metabase.core$start_normally.invoke(core.clj:176)
        at metabase.core$entrypoint.invokeStatic(core.clj:215)
        at metabase.core$entrypoint.doInvoke(core.clj:209)
        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:31)
        at metabase.bootstrap$_main.doInvoke(bootstrap.clj:28)
        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)
Caused by: java.net.BindException: Address already in use: bind
        at java.base/sun.nio.ch.Net.bind0(Native Method)
        at java.base/sun.nio.ch.Net.bind(Unknown Source)
        at java.base/sun.nio.ch.Net.bind(Unknown Source)
        at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:339)
        ... 32 more

C:\Metabase>

Failed to bind to 0.0.0.0/0.0.0.0:3000 means that some other service is already using that port ... You are having a similar issue as this one

You need to free that port