Using Ubuntu 14.04 fresh install on Vultr 2GB RAM 40GB SSD.
I have tried doing this with Ubuntu 16.04 twice with same result.
I am trying a third time and will post the specifics.
Without any errors, I run:
apt-get install python-minimal
apt-get install build-essential python-setuptools
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
python install.py --production --user frappe
enter the passwords when prompted
Done! No issues, front-end http works.
However, I can’t install ssl:
root@erp:~# chown root /etc/nginx/conf.d/ssl/private.key
root@erp:~# chmod 600 /etc/nginx/conf.d/ssl/private.key
root@erp:~# bench set-ssl-certificate site1.local /etc/nginx/conf.d/ssl/certificate_bundle.crt
You should not run this command as root
root@erp:~# su - frappe
frappe@erp:~$ bench set-ssl-certificate site1.local /etc/nginx/conf.d/ssl/certificate_bundle.crt
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
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 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/utils.py", line 37, in set_ssl_certificate
set_ssl_certificate(site, ssl_certificate_path)
File "/home/frappe/.bench/bench/config/site_config.py", line 27, in set_ssl_certificate
set_site_config_nginx_property(site, {"ssl_certificate": ssl_certificate}, bench_path=bench_path, gen_config=gen_config)
File "/home/frappe/.bench/bench/config/site_config.py", line 33, in set_site_config_nginx_property
if site not in get_sites(bench_path=bench_path):
File "/home/frappe/.bench/bench/utils.py", line 204, in get_sites
sites = [site for site in os.listdir(sites_dir)
OSError: [Errno 2] No such file or directory: './sites'
And out of curiosity, I have tried another command:
frappe@erp:~$ bench new-site site2.local
INFO:bench.utils:creating new site site2.local
frappe app is not installed. Run the following command to install frappe
bench get-app https://github.com/frappe/frappe.git
INFO:bench.utils:/home/frappe/env/bin/frappe site2.local --install a46003081c --root_password chesirE2675 --admin_password chesirE2675
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
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 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/make.py", line 58, in new_site
new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File "/home/frappe/.bench/bench/utils.py", line 177, in new_site
), cwd=os.path.join(bench_path, 'sites'))
File "/home/frappe/.bench/bench/utils.py", line 132, in exec_cmd
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr, universal_newlines=True)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: './sites'