ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

New installation failed


#1

while i`m trying to install a new bench on ubuntu 16 i faced the following error message

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [locale : Check current locale] *******************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “localectl”, “delta”: “0:00:00.038738”, “end”: “2017-11-11 15:48:43.310533”, “failed”: true, “rc”: 1, “start”: “2017-11-11 15:48:43.271795”, “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=2 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


Easy Install fails inside xc container (ubuntu16.04 guest) in proxmox5.1 fails
#2

That’s because you try to install it in a LXC container, right?


#3

mmm, i had a problem before with installation like this .
Check if you have enough memory and if you add SWAP to you ubuntu instances
you can check by typing
free -m
check the swap
if you don’t have it just look at this link


#4

no i have 2GB ram and 2GB SWAP


#5

check your locale settings
For ubuntu+locale (tune to suit your locale)
sudo locale-gen
sudo localectl set-locale LANG=en_ZA.utf8
should fix it

grep -v '^#' /etc/locale.gen
will tell you which locale’s are present


#6

root@erp:~# localectl set-locale LANG=en_ZA.utf8
Failed to create bus connection: No such file or directory


#7

Try this one first
grep -v '^#' /etc/locale.gen
to see which locales are available, then select the one that suits your environment for the
localectl set-locale LANG=en_ZA.utf8
In my case (South Africa) = en_ZA


#8

root@erp:~# grep -v ‘^#’ /etc/locale.gen

en_US.UTF-8 UTF-8
root@erp:~# localectl set-locale LANG=en_US.UTF-8
Failed to create bus connection: No such file or directory
root@erp:~# localectl set-locale LANG=en_US.UTF-8 UTF-8
Failed to create bus connection: No such file or directory
root@erp:~#


#9

You need to first create the locales
sudo locale-gen en_US.UTF-8


#10

root@erp:~# locale-gen en_US.UTF-8
Generating locales (this might take a while)…
en_US.UTF-8… done
Generation complete.
root@erp:~# grep -v ‘^#’ /etc/locale.gen

en_US.UTF-8 UTF-8
root@erp:~# localectl set-locale LANG=en_US.UTF-8
Failed to create bus connection: No such file or directory


#11

Jeez…strange behaviour
Try these…

sudo cp /etc/locale.conf{,.orig}

sudo cat > /etc/locale.conf << "EOF"
LANG=en_US.UTF-8
EOF

sudo localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US"

Also check if your hostname is set
cat /etc/hostname


#12

root@erp:~# cp /etc/locale.conf{,.orig}
cp: cannot stat ‘/etc/locale.conf’: No such file or directory
root@erp:~# cd …
root@erp:/# cp /etc/locale.conf{,.orig}
cp: cannot stat ‘/etc/locale.conf’: No such file or directory
root@erp:/# cd etc
root@erp:/etc# nano locale.conf
Use “fg” to return to nano.


#13

OK, let’s go back a bit and see what you have
sudo ls /etc/local*


#14

root@erp:/etc# ls /etc/local*
/etc/locale.alias /etc/locale.gen /etc/localtime


#15

sudo touch /etc/locale.conf
sudo echo “LANG=en_US.UTF-8” > /etc/locale.conf
sudo localectl set-locale LANG=“en_US.UTF-8” LC_CTYPE=“en_US”


#16

root@erp:~# touch /etc/locale.conf
root@erp:~# echo LANG=en_US.UTF-> /etc/locale.conf
root@erp:~# localectl set-locale LANG=“en_US.UTF-8” LC_CTYPE=“en_US”
Failed to create bus connection: No such file or directory
root@erp:~#


#17

try
systemd-nspawn


#18

root@erp:~# systemd-nspawn
-bash: systemd-nspawn: command not found


#19

Seems like dependancies are not installed
Try
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales

or maybe

echo "LANG=en_US.UTF-8" > /etc/defaults/locale

Make sure package glibc-locale is installed


#20

Generating locales (this might take a while)…
en_US.UTF-8… done
Generation complete.
root@erp:~# locale
LANG=
LANGUAGE=
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=“en_US.UTF-8”
LC_TIME=“en_US.UTF-8”
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=“en_US.UTF-8”
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=“en_US.UTF-8”
LC_NAME=“en_US.UTF-8”
LC_ADDRESS=“en_US.UTF-8”
LC_TELEPHONE=“en_US.UTF-8”
LC_MEASUREMENT=“en_US.UTF-8”
LC_IDENTIFICATION=“en_US.UTF-8”
LC_ALL=en_US.UTF-8

can i install now ?