Hi All,
I was just finished ERPNext Installation with the latest version.
Now, when I was installing the using the site it is giving me an error and same is not working with the sudo as well.
However, I can clearly see that there is a permission error but how to overcome this.
Apart from that, I am facing the same issue (permission denied) with all the bench commands however as a solution of those commands, I did run with sudo whereas in this case it is not working.
Edit: Error Message is:
vishnu@vishnu-VirtualBox:/home/frappe/frappe-bench$ bench use library
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 245, in _use
use(site, sites_path=sites_path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 248, in use
with open(os.path.join(sites_path, "currentsite.txt"), "w") as sitefile:
IOError: [Errno 13] Permission denied: u'./currentsite.txt'
Any idea about this?
Regards
Ruchin Sharma