Hello,
I’d like to use HTTPS for ERPNext but I got this below error
INFO:bench.utils:sudo systemctl start nginx
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/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/frappe/.bench/bench/commands/setup.py”, line 104, in setup_letsencrypt
setup_letsencrypt(site, custom_domain, bench_path=‘.’)
File “/home/frappe/.bench/bench/config/lets_encrypt.py”, line 42, in setup_letsencrypt
setup_crontab()
File “/home/frappe/.bench/bench/config/lets_encrypt.py”, line 89, in setup_crontab
user_crontab.write()
File “/usr/local/lib/python2.7/dist-packages/crontab.py”, line 311, in write
raise IOError(“Please specify user or filename to write.”)
IOError: Please specify user or filename to write.
same issue. when i load the url in my browser, i can the top nav bar, but the login widget doesnt appear.
Uncaught TypeError: Cannot read property ‘/login’ of undefined
at Object.trigger_ready (frappe-web.min.js:130)
at HTMLDocument. (frappe-web.min.js:152)
at HTMLDocument.dispatch (jquery.min.js:3)
at HTMLDocument.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:3)
at HTMLDocument. (jquery.min.js:3)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at n.fn.init.trigger (jquery.min.js:3)
at HTMLDocument. (frappe-web.min.js:152)
The error appeared after I used “sudo -H bench setup lets-encrypt mysite.com”.
However, everything looks okay currently after I restarted the server. The site can be accessed and works perfectly even I didn’t re-run the command. I just need to know about the cause of the error because it should not be invoked.