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 deb.nodesource.com:443. 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/cacert.org, /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 “install.py”, line 342, in
install_bench(args)
File “install.py”, line 111, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 292, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, 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.

Regards
Ruchin Sharma

@ruchin78

Seems like your python needs to updated to latest version.

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

# For production
sudo python install.py --production

Regards
Ruchin Sharma

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

@ruchin78 What OS and version are you using?

@vjFaLk

I am using Ubuntu 14.04.03

Regards
Ruchin Sharma

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

sudo python install.py --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 install.py --develop

For production
sudo python install.py --production

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