Upgrade from 0.44 to 0.51 and all mailboxes gone. a restore does not work. all backups done via gui

root@box:/home/user-data# sudo -E duplicity restore --force s3://s3-eu-central-1.amazonaws.com/mybackupfolder/mail-server-backup /home/user-data/
Synchronizing remote metadata to local cache…
Copying duplicity-full-signatures.20200324T100006Z.sigtar.gpg to local cache.
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256 encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====

this is after upgrading to 0.51 from 0.44 and suddenly seeing all mailboxes gone…
all backups were done via GUI.
nothing was touched manually.
https://mailinabox.email/maintenance.html#updating-software was followed…


Available backups

The backup location currently contains the backups listed below. The total size of the backups is currently 530 MB.

When Type Size Deleted in…
2020-12-08 03:00:11 PST 3 hours, 22 minutes ago increment 1.2 MB approx. 26 days
2020-12-07 03:00:13 PST 1 day, 3 hours ago increment 559 KB approx. 26 days
2020-12-06 03:00:09 PST 2 days, 3 hours ago increment 896 KB approx. 26 days
2020-12-05 03:00:09 PST 3 days, 3 hours ago increment 1.8 MB approx. 26 days
2020-12-04 03:00:09 PST 4 days, 3 hours ago increment 857 KB approx. 26 days
2020-12-03 03:00:09 PST 5 days, 3 hours ago full 525 MB approx. 26 days

BUT even a local backup doesn’t exist…

sudo -E duplicity restore --force file:///home/user-data/backup /home/user-data/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Traceback (innermost last):
File “/usr/bin/duplicity”, line 1555, in
File “/usr/bin/duplicity”, line 1541, in with_tempdir
File “/usr/bin/duplicity”, line 1393, in main
File “/usr/bin/duplicity”, line 1472, in do_backup
File “/usr/bin/duplicity”, line 728, in restore
File “/usr/bin/duplicity”, line 750, in restore_get_patched_rop_iter
backup_chain = col_stats.get_backup_chain_at_time(time)
File “/usr/lib/python2.7/dist-packages/duplicity/collections.py”, line 974, in get_backup_chain_at_time
raise CollectionsError("No backup chains

BUT the MAIB GUI NOW sets the backups to the local box and before I had set it to S3!

ALSO, I can’t send mail, even though user exists and logs in ok, i get SMTP Error (530): Failed to set sender “user@domain.com” (5.7.0 Must issue a STARTTLS command first)

never mind… it’s all there. I had to run mailinabox 2x after and logout and then login again…

1 Like