After updating to the latest version i hab trouble with the backup script. after downgrading duplicity to a 1.2.x Version i got a problem with the boto3 python lib:
‘’’
BackendException: Could not initialize backend: No module named ‘boto’
Something is wrong with the backup: ERROR 23 BackendException
. BackendException: Could not initialize backend: No module named ‘boto’
‘’’
Starting python from the command line and importing boto3 works. Testing the backup script manually shows the error.
the backup script imports boto3. Installing boto fixes the ERROR23 but i get some new errors when i start the backup.py from the console manually. → ERROR 30 gaierror
Looks like a connection error to AWS S3.
Does the manual backup work or you?
mailinabox/management/backup.py
Here is my error log:
Something is wrong with the backup: ERROR 30 gaierror
. Traceback (innermost last):
. File "/usr/bin/duplicity", line 92, in <module>
. with_tempdir(main)
. File "/usr/bin/duplicity", line 75, in with_tempdir
. fn()
. File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1555, in main
. action = commandline.ProcessCommandLine(sys.argv[1:])
. File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1223, in ProcessCommandLine
. config.backend = backend.get_backend(args[0])
. File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 223, in get_backend
. obj = get_backend_object(url_string)
. File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 209, in get_backend_object
. return factory(pu)
. File "/usr/lib/python3/dist-packages/duplicity/backends/_boto_single.py", line 174, in __init__
. self.resetConnection()
. File "/usr/lib/python3/dist-packages/duplicity/backends/_boto_single.py", line 199, in resetConnection
. self.bucket = self.conn.create_bucket(self.bucket_name,
. File "/usr/local/lib/python3.10/dist-packages/boto/s3/connection.py", line 618, in create_bucket
. response = self.make_request(
I’m going to look into downgrading to the previous version until it’s fixed. Could someone please share a link to instructions on how to downgrade mailinabox? Thank you!
After unmarking duplicity, updating to version 1.2.x and the restart the installation script as suggested by @hrunk my backup works again. Thanks for all of your help.
Thank you @MuckiSG for the heads up! I’m traveling until tomorrow and can’t ssh into my server (so I can’t unmark Duplicity) but will report back when I’m back home!
Seems like the new version (v2.1) which replaced v2.0 has the same issue and I appear to be unable to source 1.2.3 as it’s not found as an available release to install.
Have had no choice but to install 0.8.21
I’m back to the Error 23…No module named boto error now from the Backup status screen or Error 30 gaierror from a manual run