Amazon S3 backups are failing suddently

My 3 MIAB boxes are all suddenly failing backups to S3…

This is what i get…

sudo management/backup.py
Traceback (most recent call last):
File “/usr/bin/duplicity”, line 5, in
from duplicity.main import dup_run
ModuleNotFoundError: No module named ‘duplicity.main
Something is wrong with the backup:

I ran Linux patches on all 3 servers this morning and since then they are failing

My apt log from this morning - just realised duplicity was updated!!:

Log started: 2025-06-19 23:01:16
(Reading database … 117052 files and directories currently installed.)
Preparing to unpack …/libpam0g_1.4.0-11ubuntu2.6_amd64.deb …
Unpacking libpam0g:amd64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) …
Setting up libpam0g:amd64 (1.4.0-11ubuntu2.6) …
(Reading database … 117052 files and directories currently installed.)
Preparing to unpack …/libpam-modules-bin_1.4.0-11ubuntu2.6_amd64.deb …
Unpacking libpam-modules-bin (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) …
Setting up libpam-modules-bin (1.4.0-11ubuntu2.6) …
(Reading database … 117052 files and directories currently installed.)
Preparing to unpack …/libpam-modules_1.4.0-11ubuntu2.6_amd64.deb …
Unpacking libpam-modules:amd64 (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) …
Setting up libpam-modules:amd64 (1.4.0-11ubuntu2.6) …
Installing new version of config file /etc/security/namespace.init …
(Reading database … 117052 files and directories currently installed.)
Preparing to unpack …/libpam-runtime_1.4.0-11ubuntu2.6_all.deb …
Unpacking libpam-runtime (1.4.0-11ubuntu2.6) over (1.4.0-11ubuntu2.5) …
Setting up libpam-runtime (1.4.0-11ubuntu2.6) …
(Reading database … 117052 files and directories currently installed.)
Preparing to unpack …/00-duplicity_3.0.5-ppa202506191602~ubuntu22.04.1_amd64.deb …
Unpacking duplicity (3.0.5-ppa202506191602~ubuntu22.04.1) over (3.0.4-ppa202502081832~ubuntu22.04.1) …
Preparing to unpack …/01-libblockdev-utils2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-utils2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/02-libblockdev-crypto2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-crypto2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/03-libblockdev-part-err2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-part-err2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/04-libblockdev-fs2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-fs2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/05-libblockdev-loop2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-loop2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/06-libblockdev-part2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-part2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/07-libblockdev-swap2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev-swap2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/08-libblockdev2_2.26-1ubuntu0.1_amd64.deb …
Unpacking libblockdev2:amd64 (2.26-1ubuntu0.1) over (2.26-1) …
Preparing to unpack …/09-libudisks2-0_2.9.4-1ubuntu2.2_amd64.deb …
Unpacking libudisks2-0:amd64 (2.9.4-1ubuntu2.2) over (2.9.4-1ubuntu2) …
Preparing to unpack …/10-linux-libc-dev_5.15.0-142.152_amd64.deb …
Unpacking linux-libc-dev:amd64 (5.15.0-142.152) over (5.15.0-141.151) …
Preparing to unpack …/11-linux-tools-common_5.15.0-142.152_all.deb …
Unpacking linux-tools-common (5.15.0-142.152) over (5.15.0-141.151) …
Preparing to unpack …/12-cloud-init_25.1.2-0ubuntu0~22.04.2_all.deb …
Unpacking cloud-init (25.1.2-0ubuntu0~22.04.2) over (24.4.1-0ubuntu0~22.04.2) …
Setting up cloud-init (25.1.2-0ubuntu0~22.04.2) …
Installing new version of config file /etc/cloud/templates/sources.list.debian.deb822.tmpl …
Installing new version of config file /etc/cloud/templates/sources.list.ubuntu.deb822.tmpl …
Setting up linux-libc-dev:amd64 (5.15.0-142.152) …
Setting up libblockdev-utils2:amd64 (2.26-1ubuntu0.1) …
Setting up duplicity (3.0.5-ppa202506191602~ubuntu22.04.1) …
Setting up libblockdev-part-err2:amd64 (2.26-1ubuntu0.1) …
Setting up linux-tools-common (5.15.0-142.152) …
Setting up libudisks2-0:amd64 (2.9.4-1ubuntu2.2) …
Setting up libblockdev-crypto2:amd64 (2.26-1ubuntu0.1) …
Setting up libblockdev-swap2:amd64 (2.26-1ubuntu0.1) …
Setting up libblockdev-loop2:amd64 (2.26-1ubuntu0.1) …
Setting up libblockdev2:amd64 (2.26-1ubuntu0.1) …
Setting up libblockdev-part2:amd64 (2.26-1ubuntu0.1) …
Setting up libblockdev-fs2:amd64 (2.26-1ubuntu0.1) …
Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) …
Processing triggers for man-db (2.10.2-1) …
Processing triggers for libc-bin (2.35-0ubuntu3.10) …
Log ended: 2025-06-19 23:01:22

Any ideas anyone? or do we need to wait for duplicity app to be patched (again)

I recall this happened late last year or earlier this year also

Terry

1 Like

I have fixed my 3 MIAB Servers as follows:

  1. Download 3.0.4 version .deb from:
    https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-release-git/+files/duplicity_3.0.4-ppa202502081832~ubuntu22.04.1_amd64.deb
  2. FTP the .deb to your server home dir
  3. run: sudo dpkg -i duplicity_3.0.4-ppa202502081832~ubuntu22.04.1_amd64.deb
  4. sudo apt-mark hold duplicity

And sit back and wait for the replacement 3.0.5 PPA to come out.

1 Like

Just wanted to chime in to say that I woke up and had a mail that I am now experiencing this error as well. Instead of doing the workaround I’ll wait and see if it can be fixed with updates.