ERPNext Installation (Production) Error

Hi Everyone,

While installing ERPNext for Production, I am getting the following error messages at the end of the installation trace:

TASK [Get nodejs 6.x bash script] **********************************************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Failed to validate the SSL certificate for Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine. You can use validate_certs=False if you do not need to confirm the server\s identity but this is unsafe and not recommended Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/, /etc/ansible”}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=6 changed=2 unreachable=0 failed=1

Traceback (most recent call last):
File “”, line 342, in
File “”, line 111, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “”, line 292, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

I appreciate if anyone can put some light on it.

Ruchin Sharma


Seems like your python needs to updated to latest version.

Any idea how to update?
And after updating python do I need to run the blow command again:

# For production
sudo python --production

Ruchin Sharma

@shreyasp Actually the python version may not be the issue. But not sure.

@ruchin78 What OS and version are you using?


I am using Ubuntu 14.04.03

Ruchin Sharma

update and upgrade your ubuntu 14.04.03
sudo apt-get update
sudo apt-get upgrade

sudo python --production

#This will work for you…

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get upgrade

For development
sudo python --develop

For production
sudo python --production

If you’re logged in as root, use --user flag to create a user and install using that user
sudo python --develop --user frappe