Closed npmSteven closed 3 days ago
Hey, I just pulled the latest version of riven and there seems to be a migration issue when trying to start the server.
riven-backend | 24-11-18 14:54:56 | ❌ ERROR | env.run_migrations_online - Unexpected error during migration: Can't locate revision identified by '30a419ca143e' riven-backend | 24-11-18 14:54:56 | ❌ ERROR | db.run_migrations - Migration failed: Can't locate revision identified by '30a419ca143e' riven-backend | 24-11-18 14:54:56 | ❌ ERROR | main.<module> - Error in main thread: Can't locate revision identified by '30a419ca143e' riven-backend | 24-11-18 14:54:56 | ❌ ERROR | main.<module> - Traceback (most recent call last): riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 254, in _catch_revision_errors riven-backend | yield riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 462, in _upgrade_revs riven-backend | for script in reversed(list(revs)) riven-backend | ^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 814, in iterate_revisions riven-backend | revisions, heads = fn( riven-backend | ^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 1475, in _collect_upgrade_revisions riven-backend | current_revisions = self.get_revisions(lower) riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 542, in get_revisions riven-backend | return sum([self.get_revisions(id_elem) for id_elem in id_], ()) riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 542, in <listcomp> riven-backend | return sum([self.get_revisions(id_elem) for id_elem in id_], ()) riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 565, in get_revisions riven-backend | return tuple( riven-backend | ^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 566, in <genexpr> riven-backend | self._revision_for_ident(rev_id, branch_label) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 637, in _revision_for_ident riven-backend | raise ResolutionError( riven-backend | alembic.script.revision.ResolutionError: No such revision or branch '30a419ca143e' riven-backend | riven-backend | The above exception was the direct cause of the following exception: riven-backend | riven-backend | Traceback (most recent call last): riven-backend | File "/riven/src/main.py", line 106, in <module> riven-backend | app.program.start() riven-backend | File "/riven/src/program/program.py", line 161, in start riven-backend | run_migrations() riven-backend | File "/riven/src/program/db/db.py", line 63, in run_migrations riven-backend | command.upgrade(alembic_cfg, "head") riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/command.py", line 406, in upgrade riven-backend | script.run_env() riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 586, in run_env riven-backend | util.load_python_file(self.dir, "env.py") riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file riven-backend | module = load_module_py(module_id, path) riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py riven-backend | spec.loader.exec_module(module) # type: ignore riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "<frozen importlib._bootstrap_external>", line 940, in exec_module riven-backend | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed riven-backend | File "/riven/src/alembic/env.py", line 124, in <module> riven-backend | run_migrations_online() riven-backend | File "/riven/src/alembic/env.py", line 91, in run_migrations_online riven-backend | context.run_migrations() riven-backend | File "<string>", line 8, in run_migrations riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/runtime/environment.py", line 946, in run_migrations riven-backend | self.get_context().run_migrations(**kw) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/runtime/migration.py", line 611, in run_migrations riven-backend | for step in self._migrations_fn(heads, self): riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/command.py", line 395, in upgrade riven-backend | return script._upgrade_revs(revision, rev) riven-backend | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 450, in _upgrade_revs riven-backend | with self._catch_revision_errors( riven-backend | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ riven-backend | self.gen.throw(typ, value, traceback) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 286, in _catch_revision_errors riven-backend | raise util.CommandError(resolution) from re riven-backend | alembic.util.exc.CommandError: Can't locate revision identified by '30a419ca143e' riven-backend | riven-backend | Traceback (most recent call last): riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 254, in _catch_revision_errors riven-backend | yield riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 462, in _upgrade_revs riven-backend | for script in reversed(list(revs)) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 814, in iterate_revisions riven-backend | revisions, heads = fn( riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 1475, in _collect_upgrade_revisions riven-backend | current_revisions = self.get_revisions(lower) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 542, in get_revisions riven-backend | return sum([self.get_revisions(id_elem) for id_elem in id_], ()) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 542, in <listcomp> riven-backend | return sum([self.get_revisions(id_elem) for id_elem in id_], ()) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 565, in get_revisions riven-backend | return tuple( riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 566, in <genexpr> riven-backend | self._revision_for_ident(rev_id, branch_label) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/revision.py", line 637, in _revision_for_ident riven-backend | raise ResolutionError( riven-backend | alembic.script.revision.ResolutionError: No such revision or branch '30a419ca143e' riven-backend | riven-backend | The above exception was the direct cause of the following exception: riven-backend | riven-backend | Traceback (most recent call last): riven-backend | File "/riven/src/main.py", line 106, in <module> riven-backend | app.program.start() riven-backend | File "/riven/src/program/program.py", line 161, in start riven-backend | run_migrations() riven-backend | File "/riven/src/program/db/db.py", line 63, in run_migrations riven-backend | command.upgrade(alembic_cfg, "head") riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/command.py", line 406, in upgrade riven-backend | script.run_env() riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 586, in run_env riven-backend | util.load_python_file(self.dir, "env.py") riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file riven-backend | module = load_module_py(module_id, path) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py riven-backend | spec.loader.exec_module(module) # type: ignore riven-backend | File "<frozen importlib._bootstrap_external>", line 940, in exec_module riven-backend | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed riven-backend | File "/riven/src/alembic/env.py", line 124, in <module> riven-backend | run_migrations_online() riven-backend | File "/riven/src/alembic/env.py", line 91, in run_migrations_online riven-backend | context.run_migrations() riven-backend | File "<string>", line 8, in run_migrations riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/runtime/environment.py", line 946, in run_migrations riven-backend | self.get_context().run_migrations(**kw) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/runtime/migration.py", line 611, in run_migrations riven-backend | for step in self._migrations_fn(heads, self): riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/command.py", line 395, in upgrade riven-backend | return script._upgrade_revs(revision, rev) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 450, in _upgrade_revs riven-backend | with self._catch_revision_errors( riven-backend | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ riven-backend | self.gen.throw(typ, value, traceback) riven-backend | File "/app/.venv/lib/python3.11/site-packages/alembic/script/base.py", line 286, in _catch_revision_errors riven-backend | raise util.CommandError(resolution) from re riven-backend | alembic.util.exc.CommandError: Can't locate revision identified by '30a419ca143e' riven-backend | 24-11-18 14:54:56 | CRITICAL | main.<module> - Server has been stopped riven-backend exited with code
Hey, I just pulled the latest version of riven and there seems to be a migration issue when trying to start the server.