-
Today I purchased 5 VPS servers all from the same provider.
-
All 5 using identical hardware
-
All 5 apt-get update apt-get upgrade Ubuntu v20.04 at the same time
-
Started installing ERPNext (v13.1.1) using the easy install method (followed these steps from new user):
export LC_ALL=C.UTF-8
sudo apt install python3-minimal build-essential python3-setuptools
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
sudo python3 install.py --verbose --production --user erp_jmi --mariadb-version 10.5 --frappe-branch version-13 --erpnext-branch version13
-
The first two installed just fine this morning
-
Went to lunch
-
Came back and started installing the last 3 after lunch
-
All 3 installs failed this afternoon!!!
-
I even tried installing on another VPS Ubunutu 20.04on another provider and it fails also.
Something changed in the install functions while I was out to lunch today. Here is the traceback (identical for all the failed installs):
`<127.0.0.1> EXEC /bin/sh -c ârm -f -r /var/tmp/ansible-tmp-1619572702.3654318-65640-49925154946279/ > /dev/null 2>&1 && sleep 0â
fatal: [localhost]: FAILED! => {
âchangedâ: true,
âcmdâ: [
âbenchâ,
ââsiteâ,
âsite1.localâ,
âinstall-appâ,
âerpnextâ
],
âdeltaâ: â0:00:01.214234â,
âendâ: â2021-04-28 03:18:23.935446â,
âinvocationâ: {
âmodule_argsâ: {
â_raw_paramsâ: âbench --site site1.local install-app erpnextâ,
â_uses_shellâ: false,
âargvâ: null,
âchdirâ: â/home/erp_jmi/frappe-benchâ,
âcreatesâ: null,
âexecutableâ: null,
âremovesâ: null,
âstdinâ: null,
âstdin_add_newlineâ: true,
âstrip_empty_endsâ: true,
âwarnâ: true
}
},
âmsgâ: ânon-zero return codeâ,
ârcâ: 1,
âstartâ: â2021-04-28 03:18:22.721212â,
âstderrâ: ââ,
âstderr_linesâ: [],
âstdoutâ: âCould not find app "erpnext"â,
âstdout_linesâ: [
âCould not find app "erpnext"â
]
}
PLAY RECAP *********************************************************************
localhost : ok=78 changed=44 unreachable=0 failed=1 skipped=63 rescued=0 ignored=0
Traceback (most recent call last):
File âinstall.pyâ, line 498, in
install_bench(args)
File âinstall.pyâ, line 279, in install_bench
run_playbook(âsite.ymlâ, sudo=True, extra_vars=extra_vars)
File âinstall.pyâ, line 414, 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=bkm_erpâ]â returned non-zero exit status 2.
bkm_erp@v13b:~$`
It appears that the install script could not find the erpnext app when it was time to install it.
Any ideas how to fix this?
BKM
EDIT For some reason when redis installs on the latest Ubuntu 20.04 LTS version it has an altered redis.conf file that causes the error that started this thread. The change actually happened to the redis distro while I was out to lunch that day and when I began installing upon returning all of the errors started.
Many Thanks to @manasan for the hint about how to fix this!!
edit the redis.conf file, search for bind 127.0.0.1 : :1
and change it to just bind 127.0.0.1
then reinstall and it works.