I spent some time installing ERPNext using the easy install script. Unfortunately with many, many errors.
I was now able to successfully install ERPNext.
Here is my story:
initial situation
Blank Debian 9 with pre installed Python2.7 & Python 3.5
procedure
- Create non root user with sudo privileg (in my case “Debian”)
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production
first error
‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’,
‘–become-user=frappe’]’ returned non-zero exit status 2`
root cause
ansible-playbook 2.8.5
config file = None
configured module search path = ['/home/frappe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
No config file found; using defaults
ERROR! the playbook: site.yml could not be found
soloution
- I’ve cloned the frappe git repo manually again into /home/frappe/.bench
- retry
sudo python install.py --production
second error
"template error while templating string: expected token 'end of print statement', got 'b0ab02aa6e17346af2f14ed0de807376de475ba90e1db3975f112fbd20bb'. String: {{ 1140b0ab02aa6e17346af2f14ed0de807376de475ba90e1db3975f112fbd20bb if ansible_architecture == \"x86_64\" else 5b2d15e738ac479e7a8ca6fd765f406c3684a48091813520f87878278d6dd22a }}"
soloution
- Changed line 75 of main.yml (
located in /home/frappe/.bench/playbooks/roles/wkhtmltopdf/tasks
) tochecksum: "sha256:{{ '1140b0ab02aa6e17346af2f14ed0de807376de475ba90e1db3975f112fbd20bb' if ansible_architecture == 'x86_64' else '5b2d15e738ac479e7a8ca6fd765f406c3684a48091813520f87878278d6dd22a' }}"
- retry
sudo python install.py --production
and here we go: Bench + Frappe + ERPNext has been successfully installed!