ERPNext Conference 2019* ERPNext.com Blog

Error installing erpnext on centos 7 - help

installation_problem

#1

Hi Guys, I am facing problem with installation of erpnext on centos 7.

While running command “sudo python install.py --production”, getting the following error,

TASK [move /tmp/.bench if it exists] *******************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“cp”, “-R”, “/tmp/.bench”, “/home/root/.bench”], “delta”: “0:00:00.005966”, “end”: “2017-10-11 23:35:32.874006”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2017-10-11 23:35:32.868040”, “stderr”: “cp: cannot create directory ‘/home/root/.bench’: No such file or directory”, “stderr_lines”: [“cp: cannot create directory ‘/home/root/.bench’: No such file or directory”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

Please guide me to sort out this issue. I am new to Centos 7 & Erpnext. I look forward to hear from you. Thanks in advance.


#2

Welcome Raghav_Tharani,

What install guide are you using?

My search found this Installing ErpNext on CentOs 7 - Guide

that has this caution that you may have run afoul on:
works on on centos 7 x86_64 Minimal 1611 fresh install (no update)

does not work on centos 7 x86_64 Minimal 1708 fresh install

FWIW I run ERPNext on Centos 7 - but have yet to do a bare install, instead I download the VirtualBox vmdk and convert it to an ova to run on qemu-kvm.


#3

Hi Sir,

I am using the same guide, but running the script ‘sudo python install.py --production’

Now I am getting the error,

ASK [mariadb : include] *******************************************************
fatal: [localhost]: FAILED! => {“failed”: true, “reason”: “Unable to retrieve file contents\nCould not find or access ‘/tmp/.bench/playbooks/prerequisites/mysql_secure_installation.yml’”}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=21 changed=5 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 388, in
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/lib64/python2.7/subprocess.py”, line 542, 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 look forward for your guidance to resolve the same. Thanks in advance.


#4

I have no bare install instance to for eg look into this error you get:

ASK [mariadb : include] *******************************************************
fatal: [localhost]: FAILED! => {“failed”: true, “reason”: “Unable to retrieve file contents\nCould not find or access ‘/tmp/.bench/playbooks/prerequisites/mysql_secure_installation.yml’”}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

A forum search for eg ‘ansible playbook’ gives recent posts that may give you clues or pointers

Install Error on Ubuntu 16.04
Error ansible-playbook
[INSTALL PROBLEM]: Debian 8 - fresh install Frappe and ERPNext 7