Hi all,
I have these problem when I try to convert from developer to production mode
admintah@TAH-TERP-01:/home/frappe/frappe-bench$ sudo bench setup production TAH-TERP-01
sudo: unable to resolve host TAH-TERP-01
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:
Site thkom assigned port: 1197
Site site1.local 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
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/setup.py”, line 56, in setup_production
setup_production(user=user)
File “/home/frappe/.bench/bench/config/production_setup.py”, line 9, in setup_production
fix_prod_setup_perms(bench_path, frappe_user=user)
File “/home/frappe/.bench/bench/utils.py”, line 459, in fix_prod_setup_perms
uid = pwd.getpwnam(frappe_user).pw_uid
KeyError: ‘getpwnam(): name not found: TAH-TERP-01’
admintah@TAH-TERP-01:/home/frappe/frappe-bench$
How can i solve it?