[Borgbackup] borg delete failure with stack trace
Thomas Waldmann
tw at waldmann-edv.de
Sat Oct 19 16:52:16 EDT 2019
On 10/19/19 1:55 AM, jonikelee at gmail.com wrote:
> I am testing out borg, and accidentally did:
>
> borg create borgrepo::test4 ~
>
> after 3 previous test archives were created using an
> --exclude-if-present .nobackup option. When I noticed the missing
> --exclude-if-present in the above create (because it was taking too
> long), I ^C'ed it, then tried:
As the new archive was not finished / committed yet, the repo did not
contain test4 yet.
> borg delete borgrepo::test4
So you tried to delete a non-existing archive here.
> and got this failure (<...> obfuscations added):
>
> Local Exception
> Traceback (most recent call last):
> File "/usr/lib/python3.7/site-packages/borg/archiver.py", line 4501, in main
> exit_code = archiver.run(args)
> File "/usr/lib/python3.7/site-packages/borg/archiver.py", line 4433, in run
> return set_ec(func(args))
> File "/usr/lib/python3.7/site-packages/borg/archiver.py", line 166, in wrapper
> return method(self, args, repository=repository, **kwargs)
> File "/usr/lib/python3.7/site-packages/borg/archiver.py", line 1257, in do_delete
> return self._delete_archives(args, repository)
> File "/usr/lib/python3.7/site-packages/borg/archiver.py", line 1304, in _delete_archives
> logger.info(msg.format(format_archive(manifest.archives[archive_name]), i, len(archive_names)))
> File "/usr/lib/python3.7/site-packages/borg/helpers.py", line 244, in __getitem__
> raise KeyError
> KeyError
Uuh, yeah, that is a rather unpretty way to say "archive test4 not found".
I opened an issue for this: https://github.com/borgbackup/borg/issues/4793
> Is this borgrepo now fried? If not, how can I recover it?
Everything is fine.
--
GPG ID: 9F88FB52FAF7B393
GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393
More information about the Borgbackup
mailing list