Dropbox backup failed

Hello team

I have tried setup a backup process for my instance but it throws the following error

Backup Upload Failed
Oops, your automated backup to Dropbox failed.
Error message:

Traceback (most recent call last):
File
“/home/ubuntu/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/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”,
line 219, in backup_to_dropbox
dropbox_client = get_dropbox_client()
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”,
line 249, in get_dropbox_client
token = dropbox_client.create_oauth2_access_token()
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/client.py”,
line 189, in create_oauth2_access_token
r = self.rest_client.POST(url, params, headers)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 322, in POST
return cls.IMPL.POST(*n, **kw)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 260, in POST
is_json_request=is_json_request)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”,
line 235, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [401] u’Access token not found.’

I have updated config.json but i dont understand where to insert access token code…

Kindly assist as reference from other related issue has not been helpful

Regards

{
“db_name”: “ab3b558dd26e42ed”,
“db_password”: “wrP6XiyTpcGedeHk”,
“dropbox_access_key”: “app_key”,
“dropbox_secret_key”: “app_secretkey”,
“encryption_key”: “AypBhVUNF_syx-mWHtmvpG8ZCV2Gts-DdpUB3mNGNzU=”,
“limits”: {
“space_usage”: {
“backup_size”: 4.0,
“database_size”: 19.02,
“files_size”: 13.0,
“total”: 36.02
}
}
}

You have followed these?

https://frappe.github.io/erpnext/user/manual/en/setting-up/integration-services/dropbox-backup

then clear cache, reload etc?

1 Like

i did follow all processes on the link, i have cleared cache but i still get same error

Please attach screenshot of config.json or file itself here.

Pls do not add password,access key etc

I deleted dropbox integration to start all over again and now i am getting error below

Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py”, line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 897, in call
return fn(*args, **newargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 111, in get_dropbox_authorize_url
request_token = sess.obtain_request_token()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/session.py”, line 216, in obtain_request_token
response = self.rest_client.POST(url, headers=headers, params=params, raw_response=True)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 322, in POST
return cls.IMPL.POST(*n, **kw)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 260, in POST
is_json_request=is_json_request)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 235, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [401] u’Unauthorized’

ok the issue is now on the other end - Dropbox responds your access request is Unauthorized. So maybe reset or reauthorize, or otherwise confirm your settings on the Dropbox side…