script fails on Centos7 since changed 2019-08-28

Good Day Everyone.

I have previously successfully installed ERP Next on a Centos 7 x64 VM but since the 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 | sudo bash -
  • yum install -y nodejs

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

The error received is as follows:
File “”, line 413, in
File “”, line 105, in install_bench
run_playbook(‘create_user.yml’, extra_vars=extra_vars)
File “”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib64/python2.7/”, line 537, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib64/python2.7/”, line 524, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib64/python2.7/”, line 711, in init
errread, errwrite)
File “/usr/lib64/python2.7/”, 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

I followed the Manual Install section from the following link.

I included the first part of the 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. 

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

Fernando Pozos.

I was stuck in the installation process and your post was of a great assistance to me. It fixed the issue with my installation process on CentOS 7.

Thank you very much.