100 lines
5.9 KiB
Groff
100 lines
5.9 KiB
Groff
[ERROR|on|L121] 2025-02-24T14:02:23: Traceback (most recent call last):
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/base.py", line 254, in _catch_revision_errors
|
|
yield
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/base.py", line 462, in _upgrade_revs
|
|
for script in reversed(list(revs))
|
|
^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 814, in iterate_revisions
|
|
revisions, heads = fn(
|
|
^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 1475, in _collect_upgrade_revisions
|
|
current_revisions = self.get_revisions(lower)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 542, in get_revisions
|
|
return sum([self.get_revisions(id_elem) for id_elem in id_], ())
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 565, in get_revisions
|
|
return tuple(
|
|
^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 566, in <genexpr>
|
|
self._revision_for_ident(rev_id, branch_label)
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/revision.py", line 637, in _revision_for_ident
|
|
raise ResolutionError(
|
|
alembic.script.revision.ResolutionError: No such revision or branch '7cf3054cbbcc'
|
|
|
|
The above exception was the direct cause of the following exception:
|
|
|
|
Traceback (most recent call last):
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
|
|
async with self.lifespan_context(app) as maybe_state:
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
|
|
return await anext(self.gen)
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
|
|
async with original_context(app) as maybe_original_state:
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
|
|
return await anext(self.gen)
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
|
|
async with original_context(app) as maybe_original_state:
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
|
|
return await anext(self.gen)
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
|
|
async with original_context(app) as maybe_original_state:
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
|
|
return await anext(self.gen)
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
File "/app/mealie/app.py", line 56, in lifespan_fn
|
|
init_db.main()
|
|
File "/app/mealie/db/init_db.py", line 114, in main
|
|
command.upgrade(alembic_cfg, "head")
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/command.py", line 406, in upgrade
|
|
script.run_env()
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/base.py", line 586, in run_env
|
|
util.load_python_file(self.dir, "env.py")
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
|
|
module = load_module_py(module_id, path)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
|
|
spec.loader.exec_module(module) # type: ignore
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "<frozen importlib._bootstrap_external>", line 999, in exec_module
|
|
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
|
|
File "/app/mealie/alembic/env.py", line 109, in <module>
|
|
run_migrations_online()
|
|
File "/app/mealie/alembic/env.py", line 103, in run_migrations_online
|
|
context.run_migrations()
|
|
File "<string>", line 8, in run_migrations
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/runtime/environment.py", line 946, in run_migrations
|
|
self.get_context().run_migrations(**kw)
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/runtime/migration.py", line 611, in run_migrations
|
|
for step in self._migrations_fn(heads, self):
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/command.py", line 395, in upgrade
|
|
return script._upgrade_revs(revision, rev)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/base.py", line 450, in _upgrade_revs
|
|
with self._catch_revision_errors(
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
|
|
self.gen.throw(value)
|
|
File "/opt/pysetup/.venv/lib/python3.12/site-packages/alembic/script/base.py", line 286, in _catch_revision_errors
|
|
raise util.CommandError(resolution) from re
|
|
alembic.util.exc.CommandError: Can't locate revision identified by '7cf3054cbbcc'
|
|
|
|
[ERROR|on|L59] 2025-02-24T14:02:23: Application startup failed. Exiting.
|
|
[INFO|server|L83] 2025-02-24T14:03:40: Started server process [1]
|
|
[INFO|on|L48] 2025-02-24T14:03:40: Waiting for application startup.
|
|
[INFO|app|L53] 2025-02-24T14:03:40: start: database initialization
|
|
[INFO|init_db|L93] 2025-02-24T14:03:40: Database connection established.
|
|
[INFO|migration|L207] 2025-02-24T14:03:40: Context impl SQLiteImpl.
|
|
[INFO|migration|L210] 2025-02-24T14:03:40: Will assume non-transactional DDL.
|
|
[INFO|init_db|L113] 2025-02-24T14:03:40: Migration needed. Performing migration...
|
|
[INFO|migration|L207] 2025-02-24T14:03:40: Context impl SQLiteImpl.
|
|
[INFO|migration|L210] 2025-02-24T14:03:40: Will assume non-transactional DDL.
|