Install.py does not work

Hello.

The install.py script is failing on a new Ubuntu 18.04 KVM guest. So not a container.

I am getting the dreaded error 2 on switch user

erpnext@bizman:~$ sudo python3 install.py --production --user erpnext
Logs are saved under /tmp/logs/easy-install__2020-05-30__18-14.log
Checking System Compatibility…
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’
Input MySQL and Frappe Administrator passwords:
Passwords saved at ~/passwords.txt
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’
[WARNING]: Could not find aptitude. Using apt-get instead
[WARNING]: Consider using the get_url or uri module rather than running ‘curl’. If you need to use command because get_url or
uri is insufficient you can add ‘warn: false’ to this command task or set ‘command_warnings=False’ in ansible.cfg to get rid of
this message.
Traceback (most recent call last):
File “install.py”, line 437, in
install_bench(args)
File “install.py”, line 241, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 362, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.6/subprocess.py”, line 311, 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=erpnext’]’ returned non-zero exit status 2.
erpnext@bizman:~$

Is there any way to save the ansible recipe so I can re-run it / isolate the problem / help fix the issue?

Oh yes…

erpnext@bizman:~$ echo $LC_ALL
en_US.UTF-8
erpnext@bizman:~$

I googled quite a bit before posting. I wanted todo as much troubleshooting as I could.

I got it working.

I had glances installed on the server. This pulls in the system package of python-psutils. I figured this out by using —verbose with the install script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.