Hi ,
I came across following error while running " bench set-nginx-port site2name 82" command on Debian 7
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 37, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 213, in set_nginx_port
_set_nginx_port(site, port)
File “/home/frappe/bench-repo/bench/utils.py”, line 244, in set_nginx_port
generate_nginx_config()
File “/home/frappe/bench-repo/bench/config.py”, line 62, in generate_nginx_config
with open(“config/nginx.conf”, ‘w’) as f:
IOError: [Errno 13] Permission denied: ‘config/nginx.conf’
I tried using root login also but not successful. Can anyone help me
Regards