Installation Error : Easy Install on LXC / LXD

Dear Community,

Ok, I am a newbee at installation and trying to get my hands dirty!

I am installing the easy way in an LXC / LXD container environment. And I get this error both for develop and production. Any ideas where I should look?

Thanks

TASK [locale : Check current locale] *******************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “localectl”, “delta”: “0:00:25.562541”, “end”: “2018-04-01 10:02:55.709974”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-04-01 10:02:30.147433”, “stderr”: “Could not get properties: Connection timed out”, “stderr_lines”: [“Could not get properties: Connection timed out”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

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

Traceback (most recent call last):
File “install.py”, line 400, in
install_bench(args)
File “install.py”, line 117, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 333, 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’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

“Ok, I am a newbee at installation and trying to get my hands dirty!”

me too :slight_smile:

This suggests you may have to set or generate or select your locale? Errors in Installing ERPNext - #6 by Appsland

ok, now i understand how to read the errors :).

That being said, that also didnt help. I tried to set up another LXC/LXD container system. Now I have errors with Swappiness.

TASK [swap : Set swapiness] ****************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “echo 1 | tee /proc/sys/vm/swappiness”, “delta”: “0:00:00.559332”, “end”: “2018-04-01 18:34:30.030506”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-04-01 18:34:29.471174”, “stderr”: “tee: /proc/sys/vm/swappiness: Permission denied”, “stderr_lines”: [“tee: /proc/sys/vm/swappiness: Permission denied”], “stdout”: “1”, “stdout_lines”: [“1”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP *********************************************************************
localhost : ok=9 changed=3 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 400, in
install_bench(args)
File “install.py”, line 117, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 333, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
frappe@test2:~$ exit

good news for all LXD/LXC fans.

Thanks to @codingCoffee a PR, which makes the EasyInstall script LXD/LXC ready again, is waiting to be merged.

4 Likes