S3 backup not functioning - "Something went wrong, sorry"

I am setting up a new MIAB install and configuring the S3 backup functionality. However, I am struggling to make the backup work. When I attempt to use the GUI, I consistently get the “Something went wrong, sorry.” error. I poked around the discussion boards to find a solution, and tried different suggestions, but the previous suggestions were not resolving the issue.

MIAB Version: “Mail-in-a-Box is up to date. You are running version v56.”
Bucket region: “US East (N. Virginia) us-east-1”
S3 URL: s3://folder/bucket/ [redacted]

custom.yaml
target: s3://s3.amazonaws.com/folder/bucket/
target_pass: [AWS Access key Password]
target_user: [AWS Access key ID]

####I attempted the following “fixes”:

  1. checked the user-data/backup/custom.yaml file. The access key information is correct.
  2. sudo pip2 install --upgrade boto
	Result: 
		Requirement already up-to-date: boto in /usr/local/lib/python2.7/dist-packages
  1. apt-get purge python-boto
	Result:
		Package 'python-boto' is not installed, so not removed
  1. apt-get install python-boto
	Result:
		Reading package lists... Done
		Building dependency tree
		Reading state information... Done
		The following additional packages will be installed:
			python-certifi python-chardet python-openssl python-requests python-urllib3
		[a bunch of information....truncated results]
		Setting up python-urllib3 (1.22-1ubuntu0.18.04.2) ...
		Setting up python-chardet (3.0.4-1) ...
		Setting up python-openssl (17.5.0-1ubuntu1) ...
		Setting up python-certifi (2018.1.18-2) ...
		Setting up python-requests (2.18.4-2ubuntu0.1) ...
		Setting up python-boto (2.44.0-1ubuntu2.18.04.1) ...
		Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
  1. manually ran ./root/mailinabox/management/backup.py
	Result:
		Traceback (most recent call last):
		File "backup.py", line 11, in <module>
			import dateutil.parser, dateutil.relativedelta, dateutil.tz
		ImportError: No module named dateutil.parser
  1. pip2 install python-dateutil
	Result:
		Collecting python-dateutil
		Cache entry deserialization failed, entry ignored
		  Using cached https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl
		Requirement already satisfied: six>=1.5 in /usr/lib/python2.7/dist-packages (from python-dateutil)
		Installing collected packages: python-dateutil
		Successfully installed python-dateutil-2.8.2
  1. manually ran ./root/mailinabox/management/backup.py
	Result:
		Traceback (most recent call last):
		  File "backup.py", line 12, in <module>
			import rtyaml
		  ImportError: No module named rtyaml
  1. pip2 install rtyaml
	Result:
		Collecting rtyaml
		  Cache entry deserialization failed, entry ignored
		  Cache entry deserialization failed, entry ignored
		  Downloading https://files.pythonhosted.org/packages/d4/4d/85fe9543ce72365a631ae6afe279b7b28fa72574d5618da5d25f1c8c739b/rtyaml-1.0.0-py2.py3-none-any.whl
		Collecting pyyaml (from rtyaml)
		  Cache entry deserialization failed, entry ignored
		  Downloading https://files.pythonhosted.org/packages/ba/d4/3cf562876e0cda0405e65d351b835077ab13990e5b92912ef2bf1a2280e0/PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl (574kB)
		    100% |████████████████████████████████| 583kB 1.3MB/s
		Installing collected packages: pyyaml, rtyaml
		Successfully installed pyyaml-5.4.1 rtyaml-1.0.0
  1. manually ran ./root/mailinabox/management/backup.py
	Result:
		Traceback (most recent call last):
		  File "backup.py", line 13, in <module>
			from exclusiveprocess import Lock
		ImportError: No module named exclusiveprocess
  1. pip2 install exclusiveprocess
	Result:
		Collecting exclusiveprocess
		  Cache entry deserialization failed, entry ignored
		  Cache entry deserialization failed, entry ignored
		  Downloading https://files.pythonhosted.org/packages/ff/a3/d142e7a677c4634b9563883981e7e4863a6ec7f282513d29669d10f1ef8a/exclusiveprocess-0.9.4.tar.gz
		Building wheels for collected packages: exclusiveprocess
		  Running setup.py bdist_wheel for exclusiveprocess ... done
		  Stored in directory: /root/.cache/pip/wheels/9c/9a/dc/3bc124333e146eadcb3c2a733ffe1600c7c17a61e0d967ce0b
		Successfully built exclusiveprocess
		Installing collected packages: exclusiveprocess
		Successfully installed exclusiveprocess-0.9.4
  1. manually ran ./root/mailinabox/management/backup.py
	Result:
		Traceback (most recent call last):
		  File "backup.py", line 13, in <module>
			from exclusiveprocess import Lock
		  File "/usr/local/lib/python2.7/dist-packages/exclusiveprocess/__init__.py", line 19
			def __init__(self, *args, name=None, die=False):
                                         ^

Before I dig myself into a hole (or deeper into one), can anyone offer a next step to resolve? Thanks in advance :slight_smile:

Did you find this forum post:

Just saw this error on my box (been lazy lately) and I did follow the link to that other forum post for a possible fix, but…

This doesn’t work as of at least today – the older deb for 0.8.22 is completely gone from the archives now.

Is this a duplicity team problem, I guess? Should we be filing bug reports with them to “unbreak” duplicity on Ubuntu 18.04?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.