Backup Timeout!

Dears
how can i increase the timeout of (1500 seconds) to get dropbox backup job done ??

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 45, 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 98, in backup_to_dropbox
upload_file_to_dropbox(filename, “/database”, dropbox_client)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 166, in upload_file_to_dropbox
dropbox_client.files_upload_session_append(f.read(chunk_size), cursor.session_id,cursor.offset)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py”, line 1301, in files_upload_session_append
f,
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 239, in request
timeout=timeout)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 330, in request_json_string_with_retry
timeout=timeout)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py”, line 414, in request_json_string
timeout=timeout,
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 555, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 508, in request
resp = self.send(prep, **send_kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py”, line 618, in send
r = adapter.send(request, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py”, line 440, in send
timeout=timeout
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py”, line 601, in urlopen
chunked=chunked)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py”, line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File “/usr/lib/python2.7/httplib.py”, line 1017, in request
self._send_request(method, url, body, headers)
File “/usr/lib/python2.7/httplib.py”, line 1051, in _send_request
self.endheaders(body)
File “/usr/lib/python2.7/httplib.py”, line 1013, in endheaders
self._send_output(message_body)
File “/usr/lib/python2.7/httplib.py”, line 864, in _send_output
self.send(msg)
File “/usr/lib/python2.7/httplib.py”, line 840, in send
self.sock.sendall(data)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py”, line 316, in sendall
sent = self._send_until_done(data[total_sent:total_sent + SSL_WRITE_BLOCKSIZE])
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py”, line 306, in _send_until_done
wr = util.wait_for_write(self.socket, self.socket.gettimeout())
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/wait.py”, line 40, in wait_for_write
return _wait_for_io_events(socks, EVENT_WRITE, timeout)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/wait.py”, line 26, in _wait_for_io_events
selector.select(timeout) if key[1] & events]
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/selectors.py”, line 438, in select
maxevents=max_events)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/selectors.py”, line 94, in _syscall_wrapper
result = func(*args, **kwargs)
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 (1500 seconds)
Please contact your system manager for more information.

Compare your total backup size with dropbox size

it was working well until i`v migrated the system to internal server which has only 128Kb/s uplink

so i thin it takes more time to upload backup so what i need is to increase that timeout

which file should i edit ??

A search turned up this that may provide answers @Mahmoud_Ghoneem

Dropbox backup failed - Job exceeded maximum timeout value - #2 by creamdory

is that http_timeout ??

and its 600 not 1500

my file contains :

{
“auto_update”: false,
“background_workers”: 1,
“dns_multitenant”: true,
“file_watcher_port”: 6787,
“frappe_user”: “frappe”,
“gunicorn_workers”: 1,
“http_timeout”: 600,
“rebase_on_pull”: false,
“redis_cache”: “redis://localhost:13000”,
“redis_queue”: “redis://localhost:11000”,
“redis_socketio”: “redis://localhost:12000”,
“restart_supervisor_on_update”: true,
“serve_default_site”: true,
“shallow_clone”: true,
“socketio_port”: 9000,
“update_bench_on_update”: true,
“webserver_port”: 8000
}

Seek and you will find @Mahmoud_Ghoneem

here are more notes Dropbox backup upload failed due to timeout?

One can browse the code from the stacktrace.

It looks to be an SSL session connection timeout.

Where or at what level that is set whether app, os at either client or server end is the question…