I have tried a million times to setup ERPNext using the Easy Install Guide here GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps .
However, when I run
sudo bench setup production
I get the below error
ubuntu@ip:/home/frappe/frappe-bench$ sudo bench setup production
Usage: bench setup production [OPTIONS] USER
Error: Missing argument “user”.
Anyone know what I’m doing wrong?
sudo bench setup production frappe
2 Likes
A million thanks, this worked like a charm.
One more question, What are the exact steps DNS based multitenancy?
I’ve seen this document Setup Multitenancy. Are there other changes I need to make besides what is written in this documentation?
Following message shown after putting above command
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 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/setup.py”, line 67, in setup_production
setup_production(user=user, yes=yes)
File “/home/frappe/.bench/bench/config/production_setup.py”, line 15, in setup_production
generate_supervisor_config(bench_path=bench_path, user=user, yes=yes)
File “/home/frappe/.bench/bench/config/supervisor.py”, line 41, in generate_supervisor_config
with open(conf_path, ‘w’) as f:
IOError: [Errno 2] No such file or directory: ‘./config/supervisor.conf’
any solutions there…?
the setup command should be run from frappe home.
On my machine is it at /home/frappe/frappe-bench
cd /home/frappe/frappe-bench
sudo bench setup production frappe
This should work
by using above command it gives an error
sudo bench setup production frappe
ERROR
INFO:bench.utils:sudo pip install ansible
Traceback (most recent call last):
File “/usr/bin/pip”, line 9, in
from pip import main
ImportError: cannot import name main
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/satish/Desktop/Testing/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/satish/.local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/satish/Desktop/Testing/bench-repo/bench/commands/setup.py”, line 60, in setup_production
exec_cmd(“sudo pip install ansible”)
File “/home/satish/Desktop/Testing/bench-repo/bench/utils.py”, line 161, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo pip install ansible
Also i am trying to install ansible it gives an error
Traceback (most recent call last):
File “/usr/bin/pip”, line 9, in
from pip import main
ImportError: cannot import name main
How to solve both issues?please help me to fix these issuse…
Are you using the Easy-Install Script?