But this method still generates error log due to missing URI. I have generated the ssl certificated yet not able to figure out the correct Redirect uri path. Could you help me with that.
Sorry, I had skipped adding of access and secret key. Now it generates no error. But the Dropbox pop up window reads the following error.
Error (400)
It seems the app you were using submitted a bad request. If you would like to report this error to the app’s developer, include the information below.
I am a newbie to ERPNext. But whiIe i love the ease of getting most things setup on the front-end am having serious issues setting up dropbox for my ERPNext setup and not so much on the backend. I get the ./site does not exist error when i try to view directory. my ERPNext app is running fine but i cannot change the url to the public domain i have as i cannot seem to find any instruction that works for me. My instance is hosted on amazon aws and i can already access it remotely using the public ip. Can someone point me to guides on how to do the following:
Change my url to www.mydomain.com so it can be accessed like the demo video above
I have tried using this command to setup/add my domain but i keep getting no such file or directory error. See the full process below and the error at the bottom. Is there something i’m doing wrong?
ubuntu@ip-172-31-26-211:~/frappe-bench/sites$ bench setup add-domain saandb.com Site: office.saandb.com
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/ubuntu/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/bench-repo/bench/commands/setup.py”, line 147, in add_domain
add_domain(site, domain, ssl_certificate, ssl_certificate_key, bench_path=‘.’)
File “/home/ubuntu/bench-repo/bench/config/site_config.py”, line 57, in add_domain
update_site_config(site, { “domains”: domains }, bench_path=bench_path)
File “/home/ubuntu/bench-repo/bench/config/site_config.py”, line 21, in update_site_config
put_site_config(site, config, bench_path=bench_path)
File “/home/ubuntu/bench-repo/bench/config/site_config.py”, line 15, in put_site_config
with open(config_path, ‘w’) as f:
IOError: [Errno 2] No such file or directory: u’./sites/office.saandb.com/site_config.json’
i’ve successfully backed up my installation following the video above. I still can’t change my default website url though. It still shows my external ip address. Would appreciate if someone can help me achieve this.
Dropbox Access Token
but i added it using the customization to follow your video
and i didnt check using site jeson
and i didnt press allow access
but same result
if i press allow access 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 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 54, in get_dropbox_authorize_url
request_token = sess.obtain_request_token()
File “/home/frappe/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/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: [400] u’v1_retired’
I’m facing another interesting issue. After saving the dropbox settings, if I click “Take backup now” it backs up the database; but schedule backup is not working at all; and it used to work just fine. I don’t remember what did I change; maybe I upgraded the bench version or restored old database to the new(current) server.
@kolate_sambhaji your write up on this tread has been a great help to me in dropbox back.But i noticed in Installed Apps ERPNext: v11.1.35 (master),Frappe Framework: v11.1.32 (master) the Customized Form for Dropbox Setting is not available.So there is no means of customizing Dropbox Setup via Site Config in the dropbox setting.
Any way out to still use your approach of backup?Kindly help