ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Dropbox Backup has failed. How to fix?


#1

Hello. Been using dropbox backup with no issues since v8. Recently i got this notification that it has failed. Can anyone tell me what is wrong? Any fix? I’m currently running v10. Using Dropbox basic account 2GB.

./site1.local/public/files/20462.jpg - Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 148, in upload_from_folder
upload_file_to_dropbox(filepath, dropbox_folder, dropbox_client)
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 169, in upload_file_to_dropbox
dropbox_client.files_upload(f.read(), path, mode)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py”, line 1267, in files_upload
f,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 239, in request
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 330, in request_json_string_with_retry
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 414, in request_json_string
timeout=timeout,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 511, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 468, in request
resp = self.send(prep, **send_kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 576, in send
r = adapter.send(request, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py”, line 449, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPSConnectionPool(host=‘content.dropboxapi.com’, port=443): Read timed out. (read timeout=30)

./site1.local/public/files/34571_small.jpg - Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 148, in upload_from_folder
upload_file_to_dropbox(filepath, dropbox_folder, dropbox_client)
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 169, in upload_file_to_dropbox
dropbox_client.files_upload(f.read(), path, mode)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py”, line 1267, in files_upload
f,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 239, in request
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 330, in request_json_string_with_retry
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 414, in request_json_string
timeout=timeout,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 511, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 468, in request
resp = self.send(prep, **send_kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 576, in send
r = adapter.send(request, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py”, line 426, in send
raise ConnectionError(err, request=request)
ConnectionError: (‘Connection aborted.’, timeout())

./site1.local/public/files/20190326_154954.jpg - Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 148, in upload_from_folder
upload_file_to_dropbox(filepath, dropbox_folder, dropbox_client)
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 169, in upload_file_to_dropbox
dropbox_client.files_upload(f.read(), path, mode)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py”, line 1267, in files_upload
f,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 239, in request
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 330, in request_json_string_with_retry
timeout=timeout)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 414, in request_json_string
timeout=timeout,
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 511, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 468, in request
resp = self.send(prep, **send_kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 576, in send
r = adapter.send(request, **kwargs)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py”, line 376, in send
timeout=timeout
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py”, line 559, in urlopen
body=body, headers=headers)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py”, line 376, in _make_request
httplib_response = conn.getresponse(buffering=True)
File “/usr/lib/python2.7/httplib.py”, line 1089, in getresponse
response.begin()
File “/usr/lib/python2.7/httplib.py”, line 444, in begin
version, status, reason = self._read_status()
File “/usr/lib/python2.7/httplib.py”, line 400, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File “/usr/lib/python2.7/socket.py”, line 476, in readline
data = self._sock.recv(self._rbufsize)
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py”, line 193, in recv
[self.socket], [], [], self.socket.gettimeout())
File “/home/administrator/frappe-bench/env/local/lib/python2.7/site-packages/rq/timeouts.py”, line 51, in handle_death_penalty
‘value ({0} seconds)’.format(self._timeout))
JobTimeoutException: Job exceeded maximum timeout value (1500 seconds)

Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 48, in take_backup_to_dropbox
if did_not_upload: raise Exception
Exception


#2

Hi, would also like to report that this is happening to us. Been using dropbox integration for quite sometime now and this happens. Currently looking into this.


#3

Tagging @fkardame as we also use DB on V10 but don’t have such issue. Maybe he can point out what to do


#4

@creamdory - this too has been happening to us too for a while


#5

JobTimeoutException is being handled in v11 but not v10. Maybe a PR can be raised for backporting this.


#6

I’m facing another interesting issue. After saving the dropbox settings, if I click “Take backup now” it backs up the database; but schedule backup is not working at all; and it used to work just fine. I don’t remember what did I change; maybe I upgraded the bench version or restored old database to the new(current) server.


#7

Currently, my scheduled backups are still getting synced but i do not get any email notification if it was successful or failed. One thing i did was just disable then enable the feature.


#8

I’m actually using this integration method for dropbox integration. Setup dropbox backup [User Manual]