Backups not going to Dropbox

Hi,

The backup is not going to dropbox. I have created the app, and have added the app key and secret key inside site_config.json file. I have also clicked on ‘Allow Dropbox backup’ inside the dropbox settings and allowed it. I tried to run bench --site site1.local --force trigger-scheduler-event daily_long
as per the instructions given on discussion forum. But, it looks like its taking a long time to execute and not sure if anything is happening at all.

What should I do to check whether I have done the right connections and setup or not?

Hello Uma,

Have you checked this? https://frappe.github.io/erpnext/user/manual/en/setting-up/integration-services/dropbox-backup

Regards,
Prakash

Yes Prakash. I have. But, the dropbox backup is still not going through.

Regards
Uma

Have you checked the Background Jobs page? Do you see it in the failed jobs?

Where do you find the Background Jobs?

You’ll find them in the developer module. Or you can search ‘background jobs’ in the search bar.

Hi,

I got this as error message. Why is this coming? any ideas?

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”,
line 182, in take_backup_to_dropbox
did_not_upload, error_log = backup_to_dropbox()
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”,
line 223, in backup_to_dropbox
dropbox_client = upload_file_to_dropbox(filename, “/database”,
dropbox_client)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”,
line 269, in upload_file_to_dropbox
uploader.upload_chunked()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/client.py”,
line 1182, in upload_chunked
BytesIO(self.last_block), next_chunk_size, self.offset, self.upload_id)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/client.py”,
line 259, in upload_chunk
reply = self.rest_client.PUT(url, file_obj, headers)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 327, in PUT
return cls.IMPL.PUT(*n, **kw)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 264, in PUT
return self.request(“PUT”, url, body=body, headers=headers,
raw_response=raw_response)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 226, in request
preload_content=False
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/poolmanager.py”,
line 244, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py”,
line 600, in urlopen
chunked=chunked)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py”,
line 379, in _make_request
httplib_response = conn.getresponse(buffering=True)
File “/usr/lib/python2.7/httplib.py”, line 1136, in getresponse
response.begin()
File “/usr/lib/python2.7/httplib.py”, line 453, in begin
version, status, reason = self._read_status()
File “/usr/lib/python2.7/httplib.py”, line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File “/usr/lib/python2.7/socket.py”, line 480, in readline
data = self._sock.recv(self._rbufsize)
File “/usr/lib/python2.7/ssl.py”, line 756, in recv
return self.read(buflen)
File “/usr/lib/python2.7/ssl.py”, line 643, in read
v = self._sslobj.read(len)
File “/home/frappe/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 (300 seconds)

Please contact your system manager for more information.

What ports does the Dropbox App use? I can see the following from Dropbox’s site:

Allow Dropbox access to ports 80 (HTTP) and 443 (HTTPS)
The Open button requires access to ports 17600 and 17603.
The LAN Sync feature requires access to port 17500 (recommended).

Are all these required, or only a few?

Thanks

Jay