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