You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the following deployment crash loop in the logs, where it seems like the Metabase server was trying to run its initial DB migrations on the first launch and complained it could not because the database was holding onto a migration lock:
Jan 11 03:53:05 PM 2021-01-11 07:53:05,573 INFO db.liquibase :: Checking if Database has unrun migrations...
Jan 11 03:53:16 PM 2021-01-11 07:53:16,268 INFO db.liquibase :: Database has unrun migrations. Waiting for migration lock to be cleared...
Jan 11 03:53:18 PM 2021-01-11 07:53:18,274 WARN metabase.util :: auto-retry metabase.db.liquibase$wait_for_migration_lock_to_be_cleared$fn__20958@4df6d39c: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Jan 11 03:53:20 PM 2021-01-11 07:53:20,277 WARN metabase.util :: auto-retry metabase.db.liquibase$wait_for_migration_lock_to_be_cleared$fn__20958@4df6d39c: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Jan 11 03:53:22 PM 2021-01-11 07:53:22,279 WARN metabase.util :: auto-retry metabase.db.liquibase$wait_for_migration_lock_to_be_cleared$fn__20958@4df6d39c: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Jan 11 03:53:24 PM 2021-01-11 07:53:24,281 WARN metabase.util :: auto-retry metabase.db.liquibase$wait_for_migration_lock_to_be_cleared$fn__20958@4df6d39c: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Jan 11 03:53:26 PM 2021-01-11 07:53:26,284 WARN metabase.util :: auto-retry metabase.db.liquibase$wait_for_migration_lock_to_be_cleared$fn__20958@4df6d39c: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Jan 11 03:53:28 PM 2021-01-11 07:53:28,289 ERROR metabase.core :: Metabase Initialization FAILED
Jan 11 03:53:28 PM liquibase.exception.LockException: Database has migration lock; cannot run migrations. You can force-release these locks by running `java -jar metabase.jar migrate release-locks`.
Has anyone else run into this issue on first deployment?
I was able to jump into the Shell in the Render dashboard for the Metabase service and run the java -jar metabase.jar migrate release-locks command.
But the migration lock seems to be a red herring, and the real underlying issue seems to be that the 512 MB of memory available for starter instances is simply not enough to feed the hungry, hungry JVM. It seems like Metabase crashes due to OOM in the middle of the initial migration process.
Maybe the Deploy guide should mention starter-plus as the minimum advisable plan to deploy a Metabase instance?
The text was updated successfully, but these errors were encountered:
Hey folks,
I just tried setting up a Metabase instance alongside a fresh Render Postgres DB instance per the install guide.
(https://render.com/docs/deploy-metabase)
I ran into the following deployment crash loop in the logs, where it seems like the Metabase server was trying to run its initial DB migrations on the first launch and complained it could not because the database was holding onto a migration lock:
Has anyone else run into this issue on first deployment?
I was able to jump into the Shell in the Render dashboard for the Metabase service and run the
java -jar metabase.jar migrate release-locks
command.But the migration lock seems to be a red herring, and the real underlying issue seems to be that the 512 MB of memory available for starter instances is simply not enough to feed the hungry, hungry JVM. It seems like Metabase crashes due to OOM in the middle of the initial migration process.
Maybe the Deploy guide should mention
starter-plus
as the minimum advisable plan to deploy a Metabase instance?The text was updated successfully, but these errors were encountered: