Help needed upgrading a box with broken backups

Hi all,
I’ve got a box I’d like to upgrade (still running Ubuntu 18.04). The problrem is, when lack of space in the box made it unavailable I manually deleted my backups. This is all fine but I might have broke something in the system, because now it gives me this message in the mail every few days:

Traceback (innermost last):
  File "/usr/bin/duplicity", line 86, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 70, in with_tempdir
    fn()
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1575, in main
    do_backup(action)
  File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1597, in do_backup
    action).set_values()
  File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 751, in set_values
    backup_chains)
  File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 764, in set_matched_chain_pair
    sig_chains = sig_chains and self.get_sorted_chains(sig_chains)
  File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 969, in get_sorted_chains
    assert len(chain_list) == 2
 AssertionError

Something is wrong with the backup: ERROR 30 AssertionError
. Traceback (innermost last):
.   File "/usr/bin/duplicity", line 86, in <module>
.     with_tempdir(main)
.   File "/usr/bin/duplicity", line 70, in with_tempdir
.     fn()
.   File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1575, in main
.     do_backup(action)
.   File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1597, in do_backup
.     action).set_values()
.   File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 751, in set_values
.     backup_chains)
.   File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 764, in set_matched_chain_pair
.     sig_chains = sig_chains and self.get_sorted_chains(sig_chains)
.   File "/usr/lib/python3/dist-packages/duplicity/dup_collections.py", line 969, in get_sorted_chains
.     assert len(chain_list) == 2
.  AssertionError

I assume this means something is wrong with the backups, which is fair, as I tampered with them.

I’d like to upgrade my box (and get it some more space while doing that). I’d like to get the stuff that’s in the mail now, if possible, to the upgraded box, which seems to rely on my backup working… Which I suspect it isn’t.

Can anyone point me in the right direction?

What you can try is: 1) spinup a new VPS with Ubuntu 2204. 2) install Mailinabox 3) copy over /home/userdata to the new box 4) rerun sudo mailinabox

Do this on a separate vps first to try it out. If all is well after step 4, you should be able to do it to your real installation

If I’m spinning a copy of the machine don’t I need to make it identical in the dns server and such? won’t that cause problems?

You don’t need that to check that the installation works. Obviously you can’t use it for receiving mail until you change the dns.