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.99k stars 1.44k forks source link

Can't restore backup from S3 #2136

Open wehmoen opened 2 years ago

wehmoen commented 2 years ago

Following the guide to restore a backup from S3 the restore commands fails with the following output:

root@box:~# sudo -E duplicity restore --force s3://s3.amazonaws.com/i-put-my-bucket-name-here/ /home/user-data/
Attempt of list Nr. 1 failed. ModuleNotFoundError: No module named 'boto3'
Attempt of list Nr. 2 failed. ModuleNotFoundError: No module named 'boto3'
Attempt of list Nr. 3 failed. ModuleNotFoundError: No module named 'boto3'
Attempt of list Nr. 4 failed. ModuleNotFoundError: No module named 'boto3'
Giving up after 5 attempts. ModuleNotFoundError: No module named 'boto3'

Are there any workarounds or fixes? It's a fresh Install of MIAB on Ubuntu 18.03

Synchro commented 2 years ago

Update to v57?

wehmoen commented 2 years ago

It's a fresh install. So it is already the latest version. Mail-in-a-Box Version: v57a

0xFelix commented 2 years ago

Does it work with boto+s3:// instead of s3://?

Forceu commented 2 years ago

Same here with version 57a, interestingly with boto+s3:// it connects, but says that the key is invalid, which is definitely not the case.

georgehanson commented 2 years ago

I too am having this issue. In the end I installed the AWS CLI and pulled the backup from S3 myself, then ran the command pointing to the file path instead of S3