Dropbox backup failed - Job exceeded maximum timeout value

Hi,

The backups were going fine till yesterday. And, I got this error message today on the Dropbox backup.

Backup Upload FailedOops, 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 126, 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 167, 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 213, 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)

Can anybody please help out? What settings are to be changed?

Thanks
Uma

Hi @UmaG! You might want to check the same issue here:

Regards

You need to increase the timeout in your common_site_config.json by editing or adding scheduler_interval.

1 Like

Hi @KanchanChauhan and @creamdory

Thanks for responding. I had already increased the timeout value from 300 to 1800. Should I increase it further?

Regards
Uma

I would say test it first, what is the file size?

The file size is 1GB+. It was giving timeout issues 3 weeks back, so i had increased it to 1800. And, now again, since yesterday, it is giving this same issue again.

Hi,

Even after increasing the scheduler_interval to 3000, my dropbox backup failed again. Is there anything else that i need to look into?

Thanks
Uma

Hi,

Even after changing the scheduler_interval to 6000 in common_site_config.json, I am still getting the same issue. And, surprisingly it is still showing that Job exceed maximum timeout value of 300. Could it be referring to some other place where timeout is defined.

Please help as the backups have not gone to dropbox for the last 1 month.

The database size is 1 GB +, so i understand that backup might take a little longer to go to dropbox.

The latest error messages are this:

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 126, 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 167, 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 213, 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)

Thanks
Uma