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

Hi,

Trying to install frappe/bench under ubuntu 16.04 lxc container with two CPUs and 4GB RAM+SWAP allocated running in proxmox5.1. The output is as follows:

root@frappe-bench:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

All dependcies are satisfied, yet:

root@frappe-bench:~# python install.py --develop --user frappe
Hit:1 Index of /ubuntu xenial InRelease
Get:2 Index of /ubuntu xenial-updates InRelease [102 kB]
Get:3 Index of /ubuntu xenial-security InRelease [102 kB]
Get:4 Index of /ubuntu xenial-updates/main amd64 Packages [687 kB]
Get:5 Index of /ubuntu xenial-updates/main Translation-en [287 kB]
Get:6 Index of /ubuntu xenial-updates/restricted amd64 Packages [7,576 B]
Get:7 Index of /ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:8 Index of /ubuntu xenial-updates/universe amd64 Packages [566 kB]
Get:9 Index of /ubuntu xenial-security/main amd64 Packages [409 kB]
Get:10 Index of /ubuntu xenial-security/main Translation-en [180 kB]
Get:11 Index of /ubuntu xenial-security/restricted amd64 Packages [7,232 B]
Get:12 Index of /ubuntu xenial-security/restricted Translation-en [2,156 B]
Fetched 2,352 kB in 4s (587 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.1ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
python-dev is already the newest version (2.7.11-1).
python-setuptools is already the newest version (20.7.0-1).
git is already the newest version (1:2.7.4-0ubuntu1.3).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.10).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Cloning into ‘/tmp/.bench’…
remote: Counting objects: 245, done.
remote: Compressing objects: 100% (193/193), done.
remote: Total 245 (delta 10), reused 158 (delta 7), pack-reused 0
Receiving objects: 100% (245/245), 7.07 MiB | 820.00 KiB/s, done.
Resolving deltas: 100% (10/10), done.
Checking connectivity… done.
Traceback (most recent call last):
File “install.py”, line 388, in
install_bench(args)
File “install.py”, line 98, in install_bench
run_playbook(‘develop/create_user.yml’, 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 536, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 523, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

Certainly this is not a swap issue as it has 4GB RAM and 4GB Swap allocated:

root@frappe-bench:~# free -m
total used free shared buff/cache available
Mem: 4096 16 3811 59 268 3811
Swap: 4096 0 4096

Definitely not a locale issue:

root@frappe-bench:~# locale
LANG=en_US.UTF-8
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=POSIX
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=

Similar to unresolved issues discussed at New installation failed and Install Error on Ubuntu 16.04 - #2 by Helios

Any input?

Seems like you already have bench installed? Are you trying to create a new bench, if yes try bench init command from home directory

also don’t run as root

https://jwrober.github.io/erpnext_admin_guide/i-u-b/install

Nope, it was not. It is a vanilla server, fyi. You might be confused with the hostname ‘frappe-bench’ part following ‘root’, I guess.

GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps categorically points out the ‘–user frappe’ flag deploys as a non-root user, fyi.

1 Like