Hi I am unable to setup prodution mode on OSX High Sierra.
getting user error. any clue how to fix it
Kashifs-MacBook-Air:frappe-bench kashifbashir$ sudo bench setup production KashifBashir
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:
Site tradelink assigned port: 80
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/Users/kashifbashir/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/kashifbashir/bench-repo/bench/commands/setup.py", line 57, in setup_production
setup_production(user=user, yes=yes)
File "/Users/kashifbashir/bench-repo/bench/config/production_setup.py", line 9, in setup_production
fix_prod_setup_perms(bench_path, frappe_user=user)
File "/Users/kashifbashir/bench-repo/bench/utils.py", line 527, in fix_prod_setup_perms
gid = grp.getgrnam(frappe_user).gr_gid
KeyError: 'getgrnam(): name not found: KashifBashir'
Delvepoer mode works fine but not able to setup production mode and try to setup supervisor that also failed
Kashifs-MacBook-Air:frappe-bench kashifbashir$ bench setup supervisor
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/Users/kashifbashir/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/kashifbashir/bench-repo/bench/commands/setup.py", line 35, in setup_supervisor
generate_supervisor_config(bench_path=".", user=user, yes=yes)
File "/Users/kashifbashir/bench-repo/bench/config/supervisor.py", line 41, in generate_supervisor_config
with open(conf_path, 'w') as f:
IOError: [Errno 13] Permission denied: './config/supervisor.conf'
Kashifs-MacBook-Air:frappe-bench kashifbashir$
and also bench restart error with connection refused
Kashifs-MacBook-Air:frappe-bench kashifbashir$ bench restart
INFO:bench.utils:sudo supervisorctl restart frappe:
http://localhost:9001 refused connection
Please help me to fix it.