mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.98k stars 1.44k forks source link

Upgrade to v0.52 breaks S3 backups #1941

Open crc128 opened 3 years ago

crc128 commented 3 years ago

Backups to Amazon S3 stop working after update to MIAB v0.52. Backups working as expected prior to update.

When trying to add an S3 backup the following error message is given.

Something is wrong with the backup: ERROR 23 BackendException. BackendException: Could not initialize backend: No module named 'boto'

This is a standard MIAB install on Ubuntu 18.04.5. Manual installation of BOTO and BOTO3 does not fix the issue.

scusi commented 2 years ago

I have basically the same issue. I already had s3 backup configured prior to upgrade. After upgrade backup does not work anymore. Error message is:

Giving up after 5 attempts. ModuleNotFoundError: No module named 'boto3' Something is wrong with the backup: Attempt of list Nr. 1 failed. ModuleNotFoundError: No module named 'boto3' WARNING 1 . Attempt of list Nr. 1 failed. ModuleNotFoundError: No module named 'boto3'

Swishington commented 2 years ago

I too have the same issue but on v0.56

Giving up after 5 attempts. ModuleNotFoundError: No module named 'boto3' Something is wrong with the backup: Attempt of list Nr. 1 failed. ModuleNotFoundError: No module named 'boto3' WARNING 1

curtiser commented 2 years ago

Hello, my backups have stopped working due to boto3. The error message I'm now getting is below. It says that we must upgrade to Python 3.7. Is MiaB supported in Python 3.7?

Thanks.

`/usr/local/lib/python3.6/dist-packages/boto3/compat.py:88: PythonDeprecationWarning: Boto3 will no longer support Python 3.6 starting May 30, 2022. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.7 or later. More information can be found here: https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/ warnings.warn(warning, PythonDeprecationWarning) Giving up after 5 attempts. AttributeError: 'NoneType' object has no attribute 'objects' Something is wrong with the backup: Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden WARNING 1 . Attempt of list Nr. 1 failed. ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden

Attempt of list Nr. 2 failed. AttributeError: 'NoneType' object has no attribute 'objects' WARNING 1 . Attempt of list Nr. 2 failed. AttributeError: 'NoneType' object has no attribute 'objects'

Attempt of list Nr. 3 failed. AttributeError: 'NoneType' object has no attribute 'objects' WARNING 1 . Attempt of list Nr. 3 failed. AttributeError: 'NoneType' object has no attribute 'objects'

Attempt of list Nr. 4 failed. AttributeError: 'NoneType' object has no attribute 'objects' WARNING 1 . Attempt of list Nr. 4 failed. AttributeError: 'NoneType' object has no attribute 'objects'

ERROR 50 list . Giving up after 5 attempts. AttributeError: 'NoneType' object has no attribute 'objects'`

curtiser commented 2 years ago

The solution posted in discourse worked for me. Downgrade Duplicity.

https://discourse.mailinabox.email/t/cannot-backup-since-duplicity-update/9119