Hi all
we are trying to install ERPNext.
I tried official guide at GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
I used Centos7 on a Google Cloud Compute node with this characteristics : g1-small (1 vCPU, 1.7 GB memory)
We are following from Ofificial guide the PRODUCTION installation path.
Again, I limited my acitivty to follow the official guide but the installation fail all the time with this error :
[ict@instance-erpnext ~]$ wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh | 454 B 00:00:00
[ict@instance-erpnext ~]$ sudo bash setup_frappe.sh --setup-production
Installing for centos 7 amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding centos mariadb repo
Installing packages for centos. This might take time…
Installing wkhtmltopdf
Configuring CentOS services
Starting services
Adding frappe user
Installing frappe-bench
Setting up first site
Restarted supervisord
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.servic
e” and “journalctl -xe” for details.
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/ict/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/ict/bench-repo/bench/commands/setup.py”, line 43, in setup_production
setup_production(user=user)
File “/home/ict/bench-repo/bench/config/production_setup.py”, line 30, in setup_production
restart_service(‘nginx’)
File “/home/ict/bench-repo/bench/config/production_setup.py”, line 35, in restart_service
exec_cmd(“{service_manager} restart {service}”.format(service_manager=‘systemctl’, service=service))
File “/home/ict/bench-repo/bench/utils.py”, line 100, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: systemctl restart nginx
[ict@instance-erpnext ~]$ systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-05-19 08:00:57 UTC; 5min ago
Process: 12977 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 15114 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 15113 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Main PID: 12980 (code=exited, status=0/SUCCESS)
May 19 08:00:57 instance-erpnext systemd[1]: Starting The nginx HTTP and reverse proxy server…
May 19 08:00:57 instance-erpnext nginx[15114]: nginx: [emerg] open() “/etc/nginx/conf.d/frappe-bench.conf” f…f:33
May 19 08:00:57 instance-erpnext nginx[15114]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 19 08:00:57 instance-erpnext systemd[1]: nginx.service: control process exited, code=exited status=1
May 19 08:00:57 instance-erpnext systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
May 19 08:00:57 instance-erpnext systemd[1]: Unit nginx.service entered failed state.
May 19 08:00:57 instance-erpnext systemd[1]: nginx.service failed.
I checked the permissions and they are ok. Any Clue?
Most important : OFFICIAL installation guide seems to be very elegant and easy to follow… but sadly it generate errors all the time I tried it. Last but not least, as required we are using a completely blanked system.
Maybe that there are more specific guide availble for Centos? if so where is it?
many thanks for your support.
have a nice day