Nginx isssue when system power off and on again

nginx: [emerg] duplicate upstream “erpnext-frappe” in /etc/nginx/conf.d/frappe-bench.conf:

and if run sudo bench setup nginx it is showing:

nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:

Site erp.srisales.in assigned port: 80
ERROR: [Errno 13] Permission denied: ‘./config/nginx.conf’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.8/dist-packages/bench/cli.py”, line 121, in cli
raise e
File “/usr/local/lib/python3.8/dist-packages/bench/cli.py”, line 111, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.8/dist-packages/bench/commands/setup.py”, line 29, in setup_nginx
make_nginx_conf(bench_path=".", yes=yes)
File “/usr/local/lib/python3.8/dist-packages/bench/config/nginx.py”, line 55, in make_nginx_conf
with open(conf_path, “w”) as f:
PermissionError: [Errno 13] Permission denied: ‘./config/nginx.conf’