ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Unable to install ERPNext on Ubuntu 18.04

Hi, I am unable to install erpnext on my HP laptop (i7) , I have tried on another laptop (i5),

sudo python3 install.py --production


pip3 already installed!
Checking System Compatibility...
ubuntu 18 is compatible!
Not cloning already existing Bench repository at /tmp/.bench
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
Input MySQL and Frappe Administrator passwords:
Passwords saved at ~/passwords.txt
Initializing bench frappe-bench:
	Frappe Branch: version-13
	ERPNext Branch: version-13
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
Traceback (most recent call last):
  File "install.py", line 497, in <module>
    install_bench(args)
  File "install.py", line 278, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 413, in run_playbook
    success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2.

Try running these commands and run the install script again:

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

That used to do the trick for me, but for the last week or so, it’s still failing with the same error you reported.

You need to switch over to Manual install to make progress. Check if all the dependencies are installed (they should by the time you encounter the error) and you may just need to install bench, init bench and complete the commands.

Hope this helps.

Thanks

Jay

I got the same error message using instally.py script few days ago. Tried the manual method and got errors but got it to work some how fixing them. Most likely the issue is with ansible.

I tried the following and fixed it.

sudo python3 -m pip install --upgrade pip

sudo -H pip install ansible

Always better to install the dependencies manually before using install script in my opinion.