Installation Error:OSError: [Errno 2] No such file or directory: '/root/bench/playbooks'

Trying to setup bench on a new server using the usual procedure from GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps. Any help will be highly appreciated as this is an attempt to restore my Production server after Linode’s emergency migration this morning.

Tried several times now on Ubuntu 14, 16, and Debian 8. I’ve tried using the frappe user and root user passing --user frappe. All keep giving me the same issue:

Successfully installed MarkupSafe-1.0 PyYAML-3.12 ansible-2.4.1.0 asn1crypto-0.24.0 bcrypt-3.1.4 cffi-1.11.5 cryptography-2.1.4 enum34-1.1.6 idna-2.6 ipaddress-1.0.19 jinja2-2.10 paramiko-2.4.0 pyasn1-0.4.2 pycparser-2.18 pynacl-1.2.1 six-1.11.0
Traceback (most recent call last):
  File "install.py", line 387, in <module>
    install_bench(args)
  File "install.py", line 96, in install_bench
    run_playbook('create_user.yml', extra_vars=extra_vars)
  File "install.py", line 325, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 181, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/root/bench/playbooks'

Full Log:

root@localhost:~# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
--2018-03-04 11:22:09--  https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11975 (12K) [text/plain]
Saving to: β€˜install.py’

install.py         100%[===============>]  11.69K  --.-KB/s    in 0s      

2018-03-04 11:22:10 (111 MB/s) - β€˜install.py’ saved [11975/11975]

root@localhost:~# apt-get install python-minimal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-minimal is already the newest version (2.7.13-2).
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
root@localhost:~# apt-get install build-essential python-setuptools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils cpp cpp-6 dpkg-dev fakeroot g++ g++-6 gcc gcc-6 gcc-6-base
  libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan3 libatomic1 libc-dev-bin libc6-dev
  libcc1-0 libcilkrts5 libdpkg-perl libfakeroot libfile-fcntllock-perl
  libgcc-6-dev libgcc1 libgomp1 libisl15 libitm1 liblsan0 libmpc3
  libmpfr4 libmpx2 libquadmath0 libstdc++-6-dev libstdc++6 libtsan0
  libubsan0 linux-libc-dev make manpages-dev patch python-pkg-resources
Suggested packages:
  binutils-doc cpp-doc gcc-6-locales debian-keyring g++-multilib
  g++-6-multilib gcc-6-doc libstdc++6-6-dbg gcc-multilib autoconf
  automake libtool flex bison gdb gcc-doc gcc-6-multilib libgcc1-dbg
  libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg
  libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  glibc-doc libstdc++-6-doc make-doc ed diffutils-doc
  python-setuptools-doc
The following NEW packages will be installed:
  binutils build-essential cpp cpp-6 dpkg-dev fakeroot g++ g++-6 gcc
  gcc-6 libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libasan3 libatomic1 libc-dev-bin libc6-dev
  libcc1-0 libcilkrts5 libdpkg-perl libfakeroot libfile-fcntllock-perl
  libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4
  libmpx2 libquadmath0 libstdc++-6-dev libtsan0 libubsan0 linux-libc-dev
  make manpages-dev patch python-pkg-resources python-setuptools
The following packages will be upgraded:
  gcc-6-base libgcc1 libstdc++6
3 upgraded, 40 newly installed, 0 to remove and 35 not upgraded.
Need to get 41.1 MB of archives.
After this operation, 165 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.linode.com/debian stretch/main amd64 binutils amd64 2.28-5 [3,770 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 gcc-6-base amd64 6.3.0-18+deb9u1 [180 kB]
Get:3 http://mirrors.linode.com/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u1 [259 kB]
Get:4 http://mirrors.linode.com/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u1 [2,365 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 libstdc++6 amd64 6.3.0-18+deb9u1 [396 kB]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 libgcc1 amd64 1:6.3.0-18+deb9u1 [38.0 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 linux-libc-dev amd64 4.9.82-1+deb9u3 [1,320 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 cpp-6 amd64 6.3.0-18+deb9u1 [6,584 kB]
Get:9 http://mirrors.linode.com/debian stretch/main amd64 libisl15 amd64 0.18-1 [564 kB]
Get:10 http://mirrors.linode.com/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]
Get:11 http://mirrors.linode.com/debian stretch/main amd64 libmpc3 amd64 1.0.3-1+b2 [39.9 kB]
Get:12 http://mirrors.linode.com/debian stretch/main amd64 cpp amd64 4:6.3.0-4 [18.7 kB]
Get:13 http://mirrors.linode.com/debian stretch/main amd64 gcc amd64 4:6.3.0-4 [5,196 B]
Get:14 http://mirrors.linode.com/debian stretch/main amd64 g++ amd64 4:6.3.0-4 [1,546 B]
Get:15 http://mirrors.linode.com/debian stretch/main amd64 make amd64 4.1-9.1 [302 kB]
Get:16 http://mirrors.linode.com/debian stretch/main amd64 libdpkg-perl all 1.18.24 [1,283 kB]
Get:17 http://mirrors.linode.com/debian stretch/main amd64 patch amd64 2.7.5-1+b2 [112 kB]
Get:18 http://mirrors.linode.com/debian stretch/main amd64 dpkg-dev all 1.18.24 [1,592 kB]
Get:19 http://mirrors.linode.com/debian stretch/main amd64 build-essential amd64 12.3 [7,346 B]
Get:20 http://mirrors.linode.com/debian stretch/main amd64 libfakeroot amd64 1.21-3.1 [45.7 kB]
Get:21 http://mirrors.linode.com/debian stretch/main amd64 fakeroot amd64 1.21-3.1 [85.6 kB]
Get:22 http://mirrors.linode.com/debian stretch/main amd64 libalgorithm-diff-perl all 1.19.03-1 [48.7 kB]
Get:23 http://mirrors.linode.com/debian stretch/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4+b2 [11.6 kB]
Get:24 http://mirrors.linode.com/debian stretch/main amd64 libalgorithm-merge-perl all 0.08-3 [12.7 kB]
Get:25 http://mirrors.linode.com/debian stretch/main amd64 libfile-fcntllock-perl amd64 0.22-3+b2 [35.3 kB]
Get:26 http://mirrors.linode.com/debian stretch/main amd64 manpages-dev all 4.10-2 [2,145 kB]
Get:27 http://mirrors.linode.com/debian stretch/main amd64 python-pkg-resources all 33.1.1-1 [166 kB]
Get:28 http://security.debian.org/debian-security stretch/updates/main amd64 libcc1-0 amd64 6.3.0-18+deb9u1 [30.6 kB]
Get:29 http://mirrors.linode.com/debian stretch/main amd64 python-setuptools all 33.1.1-1 [297 kB]
Get:30 http://security.debian.org/debian-security stretch/updates/main amd64 libgomp1 amd64 6.3.0-18+deb9u1 [73.3 kB]
Get:31 http://security.debian.org/debian-security stretch/updates/main amd64 libitm1 amd64 6.3.0-18+deb9u1 [27.3 kB]
Get:32 http://security.debian.org/debian-security stretch/updates/main amd64 libatomic1 amd64 6.3.0-18+deb9u1 [8,966 B]
Get:33 http://security.debian.org/debian-security stretch/updates/main amd64 libasan3 amd64 6.3.0-18+deb9u1 [311 kB]
Get:34 http://security.debian.org/debian-security stretch/updates/main amd64 liblsan0 amd64 6.3.0-18+deb9u1 [115 kB]
Get:35 http://security.debian.org/debian-security stretch/updates/main amd64 libtsan0 amd64 6.3.0-18+deb9u1 [257 kB]
Get:36 http://security.debian.org/debian-security stretch/updates/main amd64 libubsan0 amd64 6.3.0-18+deb9u1 [107 kB]
Get:37 http://security.debian.org/debian-security stretch/updates/main amd64 libcilkrts5 amd64 6.3.0-18+deb9u1 [40.5 kB]
Get:38 http://security.debian.org/debian-security stretch/updates/main amd64 libmpx2 amd64 6.3.0-18+deb9u1 [11.2 kB]
Get:39 http://security.debian.org/debian-security stretch/updates/main amd64 libquadmath0 amd64 6.3.0-18+deb9u1 [131 kB]
Get:40 http://security.debian.org/debian-security stretch/updates/main amd64 libgcc-6-dev amd64 6.3.0-18+deb9u1 [2,296 kB]
Get:41 http://security.debian.org/debian-security stretch/updates/main amd64 gcc-6 amd64 6.3.0-18+deb9u1 [6,900 kB]
Get:42 http://security.debian.org/debian-security stretch/updates/main amd64 libstdc++-6-dev amd64 6.3.0-18+deb9u1 [1,420 kB]
Get:43 http://security.debian.org/debian-security stretch/updates/main amd64 g++-6 amd64 6.3.0-18+deb9u1 [7,094 kB]
Fetched 41.1 MB in 0s (56.6 MB/s)
Reading changelogs... Done
Extracting templates from packages: 100%
(Reading database ... 28376 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gcc-6-base:amd64 (6.3.0-18+deb9u1) over (6.3.0-18) ...
Setting up gcc-6-base:amd64 (6.3.0-18+deb9u1) ...
(Reading database ... 28376 files and directories currently installed.)
Preparing to unpack .../libstdc++6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libstdc++6:amd64 (6.3.0-18+deb9u1) over (6.3.0-18) ...
Setting up libstdc++6:amd64 (6.3.0-18+deb9u1) ...
(Reading database ... 28376 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgcc1:amd64 (1:6.3.0-18+deb9u1) over (1:6.3.0-18) ...
Setting up libgcc1:amd64 (1:6.3.0-18+deb9u1) ...
Selecting previously unselected package binutils.
(Reading database ... 28376 files and directories currently installed.)
Preparing to unpack .../00-binutils_2.28-5_amd64.deb ...
Unpacking binutils (2.28-5) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../01-libc-dev-bin_2.24-11+deb9u1_amd64.deb ...
Unpacking libc-dev-bin (2.24-11+deb9u1) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../02-linux-libc-dev_4.9.82-1+deb9u3_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.9.82-1+deb9u3) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../03-libc6-dev_2.24-11+deb9u1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.24-11+deb9u1) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../04-libisl15_0.18-1_amd64.deb ...
Unpacking libisl15:amd64 (0.18-1) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../05-libmpfr4_3.1.5-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.5-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../06-libmpc3_1.0.3-1+b2_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1+b2) ...
Selecting previously unselected package cpp-6.
Preparing to unpack .../07-cpp-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking cpp-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package cpp.
Preparing to unpack .../08-cpp_4%3a6.3.0-4_amd64.deb ...
Unpacking cpp (4:6.3.0-4) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../09-libcc1-0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../10-libgomp1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgomp1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../11-libitm1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libitm1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../12-libatomic1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libatomic1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libasan3:amd64.
Preparing to unpack .../13-libasan3_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libasan3:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../14-liblsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking liblsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../15-libtsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libtsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../16-libubsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libubsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../17-libcilkrts5_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libcilkrts5:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../18-libmpx2_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libmpx2:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../19-libquadmath0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libquadmath0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgcc-6-dev:amd64.
Preparing to unpack .../20-libgcc-6-dev_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc-6.
Preparing to unpack .../21-gcc-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gcc-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc.
Preparing to unpack .../22-gcc_4%3a6.3.0-4_amd64.deb ...
Unpacking gcc (4:6.3.0-4) ...
Selecting previously unselected package libstdc++-6-dev:amd64.
Preparing to unpack .../23-libstdc++-6-dev_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libstdc++-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package g++-6.
Preparing to unpack .../24-g++-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking g++-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package g++.
Preparing to unpack .../25-g++_4%3a6.3.0-4_amd64.deb ...
Unpacking g++ (4:6.3.0-4) ...
Selecting previously unselected package make.
Preparing to unpack .../26-make_4.1-9.1_amd64.deb ...
Unpacking make (4.1-9.1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../27-libdpkg-perl_1.18.24_all.deb ...
Unpacking libdpkg-perl (1.18.24) ...
Selecting previously unselected package patch.
Preparing to unpack .../28-patch_2.7.5-1+b2_amd64.deb ...
Unpacking patch (2.7.5-1+b2) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../29-dpkg-dev_1.18.24_all.deb ...
Unpacking dpkg-dev (1.18.24) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../30-build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../31-libfakeroot_1.21-3.1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.21-3.1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../32-fakeroot_1.21-3.1_amd64.deb ...
Unpacking fakeroot (1.21-3.1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../33-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../34-libalgorithm-diff-xs-perl_0.04-4+b2_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4+b2) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../35-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../36-libfile-fcntllock-perl_0.22-3+b2_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3+b2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../37-manpages-dev_4.10-2_all.deb ...
Unpacking manpages-dev (4.10-2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../38-python-pkg-resources_33.1.1-1_all.deb ...
Unpacking python-pkg-resources (33.1.1-1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../39-python-setuptools_33.1.1-1_all.deb ...
Unpacking python-setuptools (33.1.1-1) ...
Setting up libquadmath0:amd64 (6.3.0-18+deb9u1) ...
Setting up libgomp1:amd64 (6.3.0-18+deb9u1) ...
Setting up libatomic1:amd64 (6.3.0-18+deb9u1) ...
Setting up libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Setting up make (4.1-9.1) ...
Setting up libasan3:amd64 (6.3.0-18+deb9u1) ...
Setting up libcilkrts5:amd64 (6.3.0-18+deb9u1) ...
Setting up libubsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up libtsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up linux-libc-dev:amd64 (4.9.82-1+deb9u3) ...
Setting up libdpkg-perl (1.18.24) ...
Setting up python-pkg-resources (33.1.1-1) ...
Setting up liblsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up libfile-fcntllock-perl (0.22-3+b2) ...
Setting up libmpx2:amd64 (6.3.0-18+deb9u1) ...
Setting up libisl15:amd64 (0.18-1) ...
Setting up patch (2.7.5-1+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libfakeroot:amd64 (1.21-3.1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libmpfr4:amd64 (3.1.5-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmpc3:amd64 (1.0.3-1+b2) ...
Setting up binutils (2.28-5) ...
Setting up cpp-6 (6.3.0-18+deb9u1) ...
Setting up libc-dev-bin (2.24-11+deb9u1) ...
Setting up manpages-dev (4.10-2) ...
Setting up libc6-dev:amd64 (2.24-11+deb9u1) ...
Setting up libitm1:amd64 (6.3.0-18+deb9u1) ...
Setting up cpp (4:6.3.0-4) ...
Setting up python-setuptools (33.1.1-1) ...
Setting up libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...
Setting up libstdc++-6-dev:amd64 (6.3.0-18+deb9u1) ...
Setting up fakeroot (1.21-3.1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up gcc-6 (6.3.0-18+deb9u1) ...
Setting up g++-6 (6.3.0-18+deb9u1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up dpkg-dev (1.18.24) ...
Setting up libalgorithm-diff-xs-perl (0.04-4+b2) ...
Setting up gcc (4:6.3.0-4) ...
Setting up g++ (4:6.3.0-4) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.3) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
root@localhost:~# sudo python install.py --production --user frappe
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://mirrors.linode.com/debian stretch InRelease
Hit:3 http://mirrors.linode.com/debian stretch-updates InRelease
Hit:4 http://mirrors.linode.com/debian stretch Release
Reading package lists... Done                      
--2018-03-04 11:23:21--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.16.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.16.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1595408 (1.5M) [text/x-python]
Saving to: β€˜get-pip.py’

get-pip.py         100%[===============>]   1.52M  --.-KB/s    in 0.03s   

2018-03-04 11:23:21 (53.4 MB/s) - β€˜get-pip.py’ saved [1595408/1595408]

Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.3MB 945kB/s 
Collecting wheel
  Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 8.6MB/s 
Installing collected packages: pip, wheel
Successfully installed pip-9.0.1 wheel-0.30.0
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Collecting setuptools
  Downloading setuptools-38.5.1-py2.py3-none-any.whl (489kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 491kB 2.2MB/s 
Installing collected packages: setuptools
  Found existing installation: setuptools 33.1.1
    Uninstalling setuptools-33.1.1:
      Successfully uninstalled setuptools-33.1.1
Successfully installed setuptools-38.5.1
Collecting ansible==2.4.1
  Downloading ansible-2.4.1.0.tar.gz (6.7MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 6.7MB 168kB/s 
Collecting jinja2 (from ansible==2.4.1)
  Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 133kB 7.5MB/s 
Collecting PyYAML (from ansible==2.4.1)
  Downloading PyYAML-3.12.tar.gz (253kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 256kB 4.2MB/s 
Collecting paramiko (from ansible==2.4.1)
  Downloading paramiko-2.4.0-py2.py3-none-any.whl (192kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 194kB 5.4MB/s 
Collecting cryptography (from ansible==2.4.1)
  Downloading cryptography-2.1.4-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.2MB 535kB/s 
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from ansible==2.4.1)
Collecting MarkupSafe>=0.23 (from jinja2->ansible==2.4.1)
  Downloading MarkupSafe-1.0.tar.gz
Collecting pynacl>=1.0.1 (from paramiko->ansible==2.4.1)
  Downloading PyNaCl-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl (696kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 706kB 1.7MB/s 
Collecting bcrypt>=3.1.3 (from paramiko->ansible==2.4.1)
  Downloading bcrypt-3.1.4-cp27-cp27mu-manylinux1_x86_64.whl (57kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 61kB 8.7MB/s 
Collecting pyasn1>=0.1.7 (from paramiko->ansible==2.4.1)
  Downloading pyasn1-0.4.2-py2.py3-none-any.whl (71kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 71kB 9.2MB/s 
Collecting six>=1.4.1 (from cryptography->ansible==2.4.1)
  Downloading six-1.11.0-py2.py3-none-any.whl
Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography->ansible==2.4.1)
  Downloading cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 409kB 2.8MB/s 
Collecting enum34; python_version < "3" (from cryptography->ansible==2.4.1)
  Downloading enum34-1.1.6-py2-none-any.whl
Collecting idna>=2.1 (from cryptography->ansible==2.4.1)
  Downloading idna-2.6-py2.py3-none-any.whl (56kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 61kB 9.1MB/s 
Collecting asn1crypto>=0.21.0 (from cryptography->ansible==2.4.1)
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102kB 9.5MB/s 
Collecting ipaddress; python_version < "3" (from cryptography->ansible==2.4.1)
  Downloading ipaddress-1.0.19.tar.gz
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography->ansible==2.4.1)
  Downloading pycparser-2.18.tar.gz (245kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 256kB 4.4MB/s 
Building wheels for collected packages: ansible, PyYAML, MarkupSafe, ipaddress, pycparser
  Running setup.py bdist_wheel for ansible ... done
  Stored in directory: /root/.cache/pip/wheels/de/16/ee/9f3082dbc87085f5197a6a842e29c2b2ffa6dd6fccb8e51753
  Running setup.py bdist_wheel for PyYAML ... done
  Stored in directory: /root/.cache/pip/wheels/2c/f7/79/13f3a12cd723892437c0cfbde1230ab4d82947ff7b3839a4fc
  Running setup.py bdist_wheel for MarkupSafe ... done
  Stored in directory: /root/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57
  Running setup.py bdist_wheel for ipaddress ... done
  Stored in directory: /root/.cache/pip/wheels/d7/6b/69/666188e8101897abb2e115d408d139a372bdf6bfa7abb5aef5
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /root/.cache/pip/wheels/95/14/9a/5e7b9024459d2a6600aaa64e0ba485325aff7a9ac7489db1b6
Successfully built ansible PyYAML MarkupSafe ipaddress pycparser
Installing collected packages: MarkupSafe, jinja2, PyYAML, six, pycparser, cffi, pynacl, enum34, idna, asn1crypto, ipaddress, cryptography, bcrypt, pyasn1, paramiko, ansible
Successfully installed MarkupSafe-1.0 PyYAML-3.12 ansible-2.4.1.0 asn1crypto-0.24.0 bcrypt-3.1.4 cffi-1.11.5 cryptography-2.1.4 enum34-1.1.6 idna-2.6 ipaddress-1.0.19 jinja2-2.10 paramiko-2.4.0 pyasn1-0.4.2 pycparser-2.18 pynacl-1.2.1 six-1.11.0
Traceback (most recent call last):
  File "install.py", line 387, in <module>
    install_bench(args)
  File "install.py", line 96, in install_bench
    run_playbook('create_user.yml', extra_vars=extra_vars)
  File "install.py", line 325, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
  File "/usr/lib/python2.7/subprocess.py", line 181, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/root/bench/playbooks'

I have the same issue.It happened only today

What caused your issue?

Try this command git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
it worked for me

1 Like

Do you mean the manual installation method?

Or

Easy install then bench repo method?

Easy Install

Then Bench Repo like this?

git clone https://github.com/frappe/bench bench-repo

Do you care to provide a bit more clear guidelines?

Worked almost smoothly on Centos 7


Most beautiful message an installer can ever see after going through trouble.

Having Nginx issues working with Centos. Especially Multi-tenant. If somebody knows how to fix this issue on Ubuntu please let us know.

Before the easy install script, run git clone https://github.com/frappe/bench bench-repo

That solves the issue.

The script needs updating, it seems it is not getting the bench-repo folder properly from github.

This is possibly because of a new playbook layout introduced by @codingCoffee.

@codingCoffee, tagging you here. A minor path issue. He’ll rectify it soon. :smile:

Hey, can you try again and see if the error pops up again

Hmmm… I’ve got my server already running. Maybe much later. Thanks