I got the following backup status email:
------
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'
Attempt of list Nr. 2 failed. ModuleNotFoundError: No module named 'boto3'
WARNING 1
. Attempt of list Nr. 2 failed. ModuleNotFoundError: No module named 'boto3'
Attempt of list Nr. 3 failed. ModuleNotFoundError: No module named 'boto3'
WARNING 1
. Attempt of list Nr. 3 failed. ModuleNotFoundError: No module named 'boto3'
Attempt of list Nr. 4 failed. ModuleNotFoundError: No module named 'boto3'
WARNING 1
. Attempt of list Nr. 4 failed. ModuleNotFoundError: No module named 'boto3'
ERROR 50 list
. Giving up after 5 attempts. ModuleNotFoundError: No module named 'boto3'
----------------------
When I manually run from SSH:
cd mailinabox
sudo management/backup.py
I get the same errors.
Ubuntu pushed out an update for Duplicity last week and it was installed on my Ubuntu 18.04 instance:
--------------------------
The following packages will be upgraded:
duplicity
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 330 kB of archives.
After this operation, 4096 B of additional disk space will be used.
Get:1 http://ppa.launchpad.net/duplicity-team/duplicity-release-git/ubuntu bionic/main amd64 duplicity amd64 0.8.23-ppa202205151528~ubuntu18.04.1 [330 kB]
Fetched 330 kB in 1s (542 kB/s)
(Reading database ... 134021 files and directories currently installed.)
Preparing to unpack .../duplicity_0.8.23-ppa202205151528~ubuntu18.04.1_amd64.deb ...
Unpacking duplicity (0.8.23-ppa202205151528~ubuntu18.04.1) over (0.8.22-ppa202203041847~ubuntu18.04.1) ...
Setting up duplicity (0.8.23-ppa202205151528~ubuntu18.04.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
----------------------------------------------
On several cloned instances of this mail server, I have tried:
- Remove and re-install Duplicity
- Install Boto3 using: sudo python3 -m pip install boto3 or
sudo -H pip install boto3
or
sudo apt install boto3
or
python3 -m pip install boto3
My understanding is that the boto3 module is only used for transfers to Amazon AWS S3. Thus other backup methods should continue to function.
I have one question:
Does anyone have a solution for this?
Note: I changed the backup method from the admin page to backups on the machine running MIAB. I then successfully ran the backup.py script and confirmed full backups were in /home/user-data/backup/encrypted
In the meantime, I will make daily snapshots of the instance. All help is appreciated.