I’ve got a metabase container (based on metabase/metabase:v0.31.2).
java -jar metabase.jar load-from-h2
I have a h2 database in
When I run the
load-from-h2 command I get this error:
Command failed with exception: Database "/app/metabase.db" not found [90013-197]
What am I doing wrong?
Where’s the actual H2 file located? Because you’re ending with a
/app/metabase.db/, which makes me think it’s a directory and the database file is located inside.
If you actual file is located here:
/app/metabase.db/my-mb.db.mv.db then you would start with:
docker run -d -p 3000:3000 -v /app/metabase.db:/app/metabase.db -e "MB_DB_FILE=/app/metabase.db/my-mb.db" --name metabase metabase/metabase
But may I recommend that you use Postgres or MySQL as your backend, since H2 can easily become corrupted.
Ahhhh, that’s a lot more clear. Yes I’m actually doing this to switch to postgresql.