undeploy + restore: KeyError: 'gitea_test_foo_org' #59

Closed
opened 2024-10-28 14:50:47 +00:00 by decentral1se · 0 comments
Owner

Docs say:

It is recommended to shutdown/undeploy an app before restoring the data

But you get a stack trace when you do it:

🌻 ./abra app undeploy gitea.test.foo.org
...
🌻 ./abra app restore -C gitea.test.foo.org
Uncaught exception
Traceback (most recent call last):
  File "/usr/bin/backup", line 550, in <module>
    cli()
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/backup", line 119, in restore
    app_settings = {SERVICE: app_settings[SERVICE]}
                             ~~~~~~~~~~~~^^^^^^^^^
KeyError: 'gitea_test_foo_org'

coop-cloud/abra#447

Docs say: > It is recommended to shutdown/undeploy an app before restoring the data But you get a stack trace when you do it: ``` 🌻 ./abra app undeploy gitea.test.foo.org ... 🌻 ./abra app restore -C gitea.test.foo.org Uncaught exception Traceback (most recent call last): File "/usr/bin/backup", line 550, in <module> cli() File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/backup", line 119, in restore app_settings = {SERVICE: app_settings[SERVICE]} ~~~~~~~~~~~~^^^^^^^^^ KeyError: 'gitea_test_foo_org' ``` https://git.coopcloud.tech/coop-cloud/abra/pulls/447
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/backup-bot-two#59
No description provided.