I am trying to setup a backup on S3, have used following settings, with positive response at first:
Right after it shows a greyed screen with “Loading” and after a while it comes back with an error message and “Something went wrong. Sorry.”
I have run sudo /root/mailinabox/management/backup.py > ~/logfile.log 2>&1 on a terminal and got following log:
Traceback (innermost last):
File “/usr/bin/duplicity”, line 92, in
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(‘PUT’, bucket_name, headers=headers,
File “/usr/local/lib/python3.10/dist-packages/boto/s3/connection.py”, line 667, in make_request
return super(S3Connection, self).make_request(
File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 1070, in make_request
return self._mexe(http_request, sender, override_num_retries,
File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 1030, in _mexe
raise ex
File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 942, in _mexe
connection.request(request.method, request.path,
File “/usr/lib/python3.10/http/client.py”, line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.10/http/client.py”, line 1329, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.10/http/client.py”, line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.10/http/client.py”, line 1038, in _send_output
self.send(msg)
File “/usr/lib/python3.10/http/client.py”, line 976, in send
self.connect()
File “/usr/lib/python3.10/http/client.py”, line 1448, in connect
super().connect()
File “/usr/lib/python3.10/http/client.py”, line 942, in connect
self.sock = self._create_connection(
File “/usr/lib/python3.10/socket.py”, line 824, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File “/usr/lib/python3.10/socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
Something is wrong with the backup: ERROR 30 gaierror
. Traceback (innermost last):
. File “/usr/bin/duplicity”, line 92, in
. 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(‘PUT’, bucket_name, headers=headers,
. File “/usr/local/lib/python3.10/dist-packages/boto/s3/connection.py”, line 667, in make_request
. return super(S3Connection, self).make_request(
. File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 1070, in make_request
. return self._mexe(http_request, sender, override_num_retries,
. File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 1030, in _mexe
. raise ex
. File “/usr/local/lib/python3.10/dist-packages/boto/connection.py”, line 942, in _mexe
. connection.request(request.method, request.path,
. File “/usr/lib/python3.10/http/client.py”, line 1283, in request
. self._send_request(method, url, body, headers, encode_chunked)
. File “/usr/lib/python3.10/http/client.py”, line 1329, in _send_request
. self.endheaders(body, encode_chunked=encode_chunked)
. File “/usr/lib/python3.10/http/client.py”, line 1278, in endheaders
. self._send_output(message_body, encode_chunked=encode_chunked)
. File “/usr/lib/python3.10/http/client.py”, line 1038, in _send_output
. self.send(msg)
. File “/usr/lib/python3.10/http/client.py”, line 976, in send
. self.connect()
. File “/usr/lib/python3.10/http/client.py”, line 1448, in connect
. super().connect()
. File “/usr/lib/python3.10/http/client.py”, line 942, in connect
. self.sock = self._create_connection(
. File “/usr/lib/python3.10/socket.py”, line 824, in create_connection
. for res in getaddrinfo(host, port, 0, SOCK_STREAM):
. File “/usr/lib/python3.10/socket.py”, line 955, in getaddrinfo
. for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
. socket.gaierror: [Errno -2] Name or service not known
.
I can’t find any easy reason why the socket.gaierror.
Any ideas what can be wrong? I am using MIAB v68 and have not modified anything.