ERPNext Conference 2019* ERPNext.com Blog

Install.py script fails on Centos7 since changed 2019-08-28

installation_problem
erpnext

#1

Good Day Everyone.

I have previously successfully installed ERP Next on a Centos 7 x64 VM but since the install.py script has changed, the script fails pretty must in the early stages of the install process.

I have not seen any topics / posts regarding this since the script has been changed.

Guys, please assist with this as this is important to our organisation and most frustrating when installations fail.

I have attempted the same script on Ubuntu 16.04 and fails as well.

Details of VM are:
Virtualization: kvm
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-957.27.2.el7.x86_64
Architecture: x86-64

1 CPU, 4Gb Ram, 50Gb VHdd

Steps followed for install are as follows AS USER root:

  • adduser erpnext
  • passwd erpnext
  • usermod -aG wheel erpnext
  • yum update -y
  • yum groupinstall -y “Development Tools”
  • yum install -y nano wget htop net-tools
  • curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
  • yum install -y nodejs

Steps followed for install are as follows AS USER: erpnext:

The error received is as follows:
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 105, in install_bench
run_playbook(‘create_user.yml’, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib64/python2.7/subprocess.py”, line 537, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib64/python2.7/subprocess.py”, line 524, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib64/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib64/python2.7/subprocess.py”, line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

I would really appreciate some urgent assistance and attention to this topic as this is holding up my implementation of this system.

Kind Regards
Christo Boucher


#2

Hi.
I followed the Manual Install section from the following link.

 https://github.com/frappe/bench

I included the first part of the install.py script to the pre-requisites listed.
Basically the following lines:
sudo yum groupinstall -y “Development tools”’
sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel

After I tested the bench installation (bench start). I followed the “Setup Production” document.

  https://frappe.io/docs/user/en/bench/guides/setup-production.html 

I made some tweaks since I’ve already had a site hosted with nginx. Hope it helps.

Best,
Fernando Pozos.