thanks for your answer. Maybe I did something wrong:
made a backup in mealie and in home assistant
stoppen
renamed the data folder
installed new one.
logged in with default credentials
uploaded backup
restored backup
error
yield
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 458, in _upgrade_revs
return self.get_revisions(target)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 565, in get_revisions
return tuple(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 566, in <genexpr>
for script in reversed(list(revs))
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 814, in iterate_revisions
revisions, heads = fn(
self._revision_for_ident(rev_id, branch_label)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 1447, in _collect_upgrade_revisions
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 637, in _revision_for_ident
raise ResolutionError(
alembic.script.revision.ResolutionError: No such revision or branch 'feecc8ffb956'
for rev in self._parse_upgrade_target(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 1234, in _parse_upgrade_target
return self.get_revisions(target)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 565, in get_revisions
return tuple(
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 566, in <genexpr>
self._revision_for_ident(rev_id, branch_label)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/revision.py", line 637, in _revision_for_ident
raise ResolutionError(
alembic.script.revision.ResolutionError: No such revision or branch 'feecc8ffb956'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/mealie/routes/admin/admin_backups.py", line 105, in import_one
backup.restore(file)
The above exception was the direct cause of the following exception:
File "/app/mealie/services/backups_v2/backup_v2.py", line 101, in restore
self.db_exporter.restore(database_json)
File "/app/mealie/services/backups_v2/alchemy_exporter.py", line 164, in restore
command.upgrade(alembic_cfg, alembic_version)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/command.py", line 406, in upgrade
Traceback (most recent call last):
script.run_env()
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 582, in run_env
File "/app/mealie/routes/admin/admin_backups.py", line 105, in import_one
util.load_python_file(self.dir, "env.py")
backup.restore(file)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
File "/app/mealie/services/backups_v2/backup_v2.py", line 101, in restore
module = load_module_py(module_id, path)
self.db_exporter.restore(database_json)
File "/app/mealie/services/backups_v2/alchemy_exporter.py", line 164, in restore
command.upgrade(alembic_cfg, alembic_version)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/command.py", line 406, in upgrade
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
script.run_env()
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/app/alembic/env.py", line 81, in <module>
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 582, in run_env
util.load_python_file(self.dir, "env.py")
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
run_migrations_online()
File "/app/alembic/env.py", line 75, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/runtime/environment.py", line 946, in run_migrations
self.get_context().run_migrations(**kw)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/runtime/migration.py", line 616, in run_migrations
for step in self._migrations_fn(heads, self):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/command.py", line 395, in upgrade
return script._upgrade_revs(revision, rev)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 446, in _upgrade_revs
with self._catch_revision_errors(
File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
module = load_module_py(module_id, path)
File "/opt/pysetup/.venv/lib/python3.10/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 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/app/alembic/env.py", line 81, in <module>
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 282, in _catch_revision_errors
run_migrations_online()
raise util.CommandError(resolution) from re
File "/app/alembic/env.py", line 75, in run_migrations_online
alembic.util.exc.CommandError: Can't locate revision identified by 'feecc8ffb956'
context.run_migrations()
File "<string>", line 8, in run_migrations
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/runtime/environment.py", line 946, in run_migrations
self.get_context().run_migrations(**kw)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/runtime/migration.py", line 616, in run_migrations
for step in self._migrations_fn(heads, self):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/command.py", line 395, in upgrade
return script._upgrade_revs(revision, rev)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 446, in _upgrade_revs
with self._catch_revision_errors(
File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/opt/pysetup/.venv/lib/python3.10/site-packages/alembic/script/base.py", line 282, in _catch_revision_errors
raise util.CommandError(resolution) from re
alembic.util.exc.CommandError: Can't locate revision identified by 'feecc8ffb956'
INFO 2024-08-27T19:36:33 - [192.168.0.1:0] 500 Internal Server Error "POST /api/admin/backups/mealie_2024.08.27.05.42.06.zip/restore HTTP/1.1"