Beta Development Setup failure

Hi, just trying to setup a new development platfom using the Beta Dev Setup on a clean Ubuntu 14.04 install, but the installer fails with the following error:-

TASK [Install wkhtmltopdf deb] *************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: ‘prepared’
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible_bCcKtd/ansible_module_apt.py", line 842, in \n main()\n File "/tmp/ansible_bCcKtd/ansible_module_apt.py", line 798, in main\n force=force_yes, dpkg_options=p[‘dpkg_options’])\n File "/tmp/ansible_bCcKtd/ansible_module_apt.py", line 538, in install_deb\n diff["prepared"] += ‘\n\n’ + out\nKeyError: ‘prepared’\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “parsed”: false}
to retry, use: --limit @develop/install.retry

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

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

At this stage nothing is created in /usr/local/frappe nor in the home directory of the user.

Thanks

@Ardan

This problem is with the latest version of Ansible (Ansible 2.1 Apt Module deb option failure · Issue #3752 · ansible/ansible-modules-core · GitHub)

You will have to perform following steps,

  • sudo yum uninstall ansible
  • sudo yum install 'ansible==2.0.2.0'

And then re-run the beta installer again.

Regards,
Shreyas.

Hi @shreyasp

I simply followed the Beta Development Setup instructions at GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

I’ll give it another go with the Ansible ‘update’ and let you know.

Thanks