ERPNext 9.1.2 installation error - ansible-playbook install error

ERPNext version 9 looks promising. Tried installing on fresh Ubuntu 16.04 LTS, got this error. Can anyone help me resolve the issue.

    TASK [nodejs : Add apt key for node repo] *********************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to download key at https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280: Connection failure: ('The read operation timed out',)"}

RUNNING HANDLER [mariadb : restart mysql] *********************************************************
	to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP ****************************************************************************************
localhost                  : ok=35   changed=23   unreachable=0    failed=1   

Traceback (most recent call last):
  File "install.py", line 388, in <module>
    install_bench(args)
  File "install.py", line 114, in install_bench
    run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 326, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 541, 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
1 Like

Welcome to erpnext hellodjango…

Your traceback matches this post so you may want to follow that?

Error ansible-playbook - #6 by achillesrasquinha

Thank you so much for such a quick response @clarkej . ERPNext seems to be a complete platform for small business.

I think the redirected post is still unsolved. Need a bit guidance to solve this error.

Yes this is truly a swiss army knife of potential for ambitious types.

Some rough and sharp edges for sure. So you really need dedicated IT support to get things running implemented and stable.

A search of ‘ansible playbook erro install’ will point to npm and node install version issues it seems?

This may solve your problem hellodjango?

Install Error on Ubuntu 16.04

Seems issue in referred post is unsolved. I feel like this is setup script issue, can anyone help to resolve this issue.

TASK [nodejs : Add apt key for node repo] *********************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to download key at https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280: Connection failure: ('The read operation timed out',)"}

RUNNING HANDLER [mariadb : restart mysql] *********************************************************
	to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP ****************************************************************************************
localhost                  : ok=35   changed=23   unreachable=0    failed=1   

Traceback (most recent call last):
  File "install.py", line 388, in <module>
    install_bench(args)
  File "install.py", line 114, in install_bench
    run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 326, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 541, 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

@hellodjango Hopefully, this post will help in solving the issue Install Error on Ubuntu 16.04 - #5 by mainul

I am getting the same error but I don’t see any proper solution at all.

Traceback (most recent call last):
  File "install.py", line 489, in <module>
    install_bench(args)
  File "install.py", line 275, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 405, in run_playbook
    success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
  File "/usr/lib/python3.8/subprocess.py", line 364, 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.
1 Like

I gave up on this error. completely. There isn’t a clear answer or a way to solve this. Each member is giving a vague answer and not a general.