I am trying to install Erpnext from Script on ubuntu 16.04.
But getting the following error.
TASK [locale : Check current locale] *******************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “localectl”, “delta”: “0:00:00.003378”, “end”: “2018-01-01 08:00:39.905630”, “failed”: true, “rc”: 1, “start”: “2018-01-01 08:00:39.902252”, “stderr”: “Failed to create bus connection: No such file or directory”, “stderr_lines”: [“Failed to create bus connection: No such file or directory”], “stdout”: “”, “stdout_lines”: }
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry
PLAY RECAP *********************************************************************
localhost : ok=5 changed=0 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/lib/python2.7/subprocess.py”, line 541, 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 am not great at installations of any scripts, But let me voice out one thing.
I was trying to install ERPNext on an OpenVZ, I tried 3 different providers I faced a lot of issues, As soon as I tried KVM’s I tried it with DigitalOcean, Vultr and I followed the same steps they worked like a charm.
I dont know if this will work for you, But just sharing what worked for me.
Below mentioned are the only steps I followed.
Ubuntu 16.04 64bit Minimal Fresh install.
Logged in with Root -
Appreciate your response, I am using this on VPS as and it is on OpenVZ.
I am trying same thing on my internal server with script and post the output.
But I was using the erpnext on this server earlier but when I upgraded it from 9 to 10, it crashed and update went unsuccessful, as I take daily backup so I decided to make fresh installation and restore the data, and at the time of installation it was giving me the above mentioned error.
I am using erpnext from 7 version on this server with the easy install script, so I am wondering now what is wrong with the openvz now and why it is not going ahead with the latest script.
I assume that the script does the same thing which we do manually (Please correct me if I am wrong here), and that is why I am able to install it manually.
I am just sharing my experience.
Any how let me check it on other hyper visors and I will post soon.
one more addition if any errors pop out relating to ‘The repository ‘cdrom://Ubuntu-Server 16.04.4 LTS Xenial Xerus - Release amd64 (20180228) xenial Release’ does not have a Release file.’
do the following;
sudo nano /etc/apt/sources.list
–and comment the following line
deb cdrom:[Ubuntu-Server 16.04 LTS Xenial Xerus - Release amd64 (20160420.3)]/ xenial main restricted