← Back to team overview

duplicity-team team mailing list archive

Re: [Question #291337]: Dropbox extremely slow?

 

Question #291337 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/291337

edso proposed the following answer:
On 19.04.2016 10:47, Henrik Farre wrote:
> Question #291337 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/291337
> 
> Henrik Farre posted a new comment:
> Hi
> 
> Small update:
> 
> If I change DPBX_UPLOAD_CHUNK_SIZE in /usr/lib/python2.7/site-
> packages/duplicity/backends/dpbxbackend.py from 16 MB to 128 MB,
> duplicitys progress switch reports up to 20MB/s instead of 2-3MB/s,
> which also changes the ETA from 2-3 days to ~8Hours.

good to know! there are some comments surrounding the code you
mentioned. taking these into account and maybe researching what the
variables do (python dropbox mailing list?) should shed some light on
this.

maybe we should make them tunable, so users with broadband upload can
utilize their connection better. can you research and come back with
some more detailed infos, links to docs?

..ede/duply.net

> If I increase DPBX_UPLOAD_CHUNK_SIZE to the same size as volsize (500),
> I get this error:
> 
> Exception [('Connection aborted.', error(104, 'Connection reset by peer'))]:
> | Traceback (most recent call last):
> |   File "/usr/lib/python2.7/site-packages/duplicity/backends/dpbxbackend.py", line 79, in wrapper
> |     return f(self, *args)
> |   File "/usr/lib/python2.7/site-packages/duplicity/backends/dpbxbackend.py", line 186, in _put
> |     upload_sid = self.api_client.files_upload_session_start(buf)
> |   File "/usr/lib/python2.7/site-packages/dropbox/base.py", line 815, in files_upload_session_start
> |     f,
> |   File "/usr/lib/python2.7/site-packages/dropbox/dropbox.py", line 220, in request
> |     request_binary)
> |   File "/usr/lib/python2.7/site-packages/dropbox/dropbox.py", line 303, in request_json_string_with_retry
> |     request_binary)
> |   File "/usr/lib/python2.7/site-packages/dropbox/dropbox.py", line 374, in request_json_string
> |     verify=True,
> |   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 511, in post
> |     return self.request('POST', url, data=data, json=json, **kwargs)
> |   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 468, in request
> |     resp = self.send(prep, **send_kwargs)
> |   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
> |     r = adapter.send(request, **kwargs)
> |   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 426, in send
> |     raise ConnectionError(err, request=request)
> | ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))
> dpbx code error "('Connection aborted.', error(104, 'Connection reset by peer'))"
>

-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.