i transfer my old site To the new one and then i dropped the old site
i convert my site to work with a certificate
now i am trying to use dropox backup that was working well before make all those changes
Note : i added also Dropbox info in my site_config.json
Now it didn’t work and i got this error
===========================================
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 896, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 110, in get_dropbox_authorize_url
sess = doc.get_dropbox_session()
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 57, in get_dropbox_session
raise_exception=False) if self.app_secret_key else frappe.conf.dropbox_secret_key
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 657, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/password.py”, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/password.py”, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.py”, line 103, in decrypt
raise InvalidToken
InvalidToken
The issue is with the encryption_key, please try to save the Dropbox Settings document again so that the app_access_key and app_secret_key will be saved using new encryption key
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 219, in backup_to_dropbox
dropbox_client = get_dropbox_client()
File “/home/frappe/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/frappe/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/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 322, in POST
return cls.IMPL.POST(*n, **kw)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 260, in POST
is_json_request=is_json_request)
File “/home/frappe/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.’
Please contact your system manager for more information.
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 219, in backup_to_dropbox
dropbox_client = get_dropbox_client()
File “/home/frappe/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/frappe/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/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 322, in POST
return cls.IMPL.POST(*n, **kw)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 260, in POST
is_json_request=is_json_request)
File “/home/frappe/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.’
Please contact your system manager for more information.