About 2 months ago, I started having issues with backups. My email notices consistently show the following:
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
This seems to happen regardless of the backup method. I’ve tried backing up to the server, backing up to my NAS using rsync, and backing up to Amazon S3. In all instances, the report is the same. The full email is as follows:
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: AES256.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
===== End GnuPG log =====
Traceback (most recent call last):
File "/home/ubuntu/mailinabox/management/backup.py", line 647, in <module>
perform_backup(full_backup)
File "/home/ubuntu/mailinabox/management/backup.py", line 318, in perform_backup
shell('check_call', [
File "/home/ubuntu/mailinabox/management/utils.py", line 126, in shell
ret = getattr(subprocess, method)(cmd_args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/duplicity', 'full', '--verbosity', 'warning', '--no-print-statistics', '--archive-dir', '/home/user-data/backup/cache', '--exclude', '/home/user-data/backup', '--volsize', '250', '--gpg-options', "'--cipher-algo=AES256'", '--allow-source-mismatch', '/home/user-data', 'file:///home/user-data/backup/encrypted']'7; returned non-zero exit status 31.
I have tried rerunning sudo mailinabox
, deleting the secret key and the running curl -s https://mailinabox.email/setup.sh | sudo -E bash
. None of that has fixed anything. I still get the GPG error.
At the moment, I have no backups and this concerns me. Any help would be greatly appreciated!