Skip to content

Instantly share code, notes, and snippets.

@jasim
Created October 18, 2018 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasim/a111e080fd14af5819778d279e051688 to your computer and use it in GitHub Desktop.
Save jasim/a111e080fd14af5819778d279e051688 to your computer and use it in GitHub Desktop.
root@erp:~# ls
root@erp:~# sudo apt-get update -y; sudo apt-get upgrade -y; sudo apt-get install python-minimal -y; sudo apt-get install build-essential python-setuptools -y;
Hit:1 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main Sources [136 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [78.1 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [2,088 B]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [569 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [239 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [391 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [149 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,460 B]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,744 B]
Get:18 http://mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:21 http://mirrors.digitalocean.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:22 http://mirrors.digitalocean.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:23 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [323 kB]
Get:24 http://mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [2,528 B]
Get:25 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [223 kB]
Get:26 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [8,384 B]
Get:27 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [861 kB]
Get:28 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [351 kB]
Get:29 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [694 kB]
Get:30 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [280 kB]
Get:31 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [16.4 kB]
Get:32 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Translation-en [8,344 B]
Get:33 http://mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [4,868 B]
Get:34 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [6,740 B]
Get:35 http://mirrors.digitalocean.com/ubuntu xenial-backports/main amd64 Packages [7,304 B]
Get:36 http://mirrors.digitalocean.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:37 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe amd64 Packages [7,804 B]
Get:38 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe Translation-en [4,184 B]
Fetched 25.6 MB in 14s (1,717 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
apparmor cloud-initramfs-copymods cloud-initramfs-dyn-netconf git git-man libapparmor-perl libapparmor1 open-iscsi openssh-client openssh-server openssh-sftp-server overlayroot python3-requests
13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,340 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 open-iscsi amd64 2.0.873+git0.3b4b4500-14ubuntu3.6 [334 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libapparmor1 amd64 2.10.95-0ubuntu2.10 [29.7 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libapparmor-perl amd64 2.10.95-0ubuntu2.10 [31.6 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 apparmor amd64 2.10.95-0ubuntu2.10 [451 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 openssh-sftp-server amd64 1:7.2p2-4ubuntu2.5 [38.6 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 openssh-server amd64 1:7.2p2-4ubuntu2.5 [335 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.5 [588 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 git-man all 1:2.7.4-0ubuntu1.5 [736 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.5 [2,714 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python3-requests all 2.9.1-3ubuntu0.1 [55.8 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 cloud-initramfs-copymods all 0.27ubuntu1.6 [4,380 B]
Get:12 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 cloud-initramfs-dyn-netconf all 0.27ubuntu1.6 [6,892 B]
Get:13 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 overlayroot all 0.27ubuntu1.6 [15.7 kB]
Fetched 5,340 kB in 6s (881 kB/s)
Preconfiguring packages ...
(Reading database ... 54455 files and directories currently installed.)
Preparing to unpack .../open-iscsi_2.0.873+git0.3b4b4500-14ubuntu3.6_amd64.deb ...
Unpacking open-iscsi (2.0.873+git0.3b4b4500-14ubuntu3.6) over (2.0.873+git0.3b4b4500-14ubuntu3.5) ...
Preparing to unpack .../libapparmor1_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking libapparmor1:amd64 (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libapparmor1:amd64 (2.10.95-0ubuntu2.10) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
(Reading database ... 54455 files and directories currently installed.)
Preparing to unpack .../libapparmor-perl_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking libapparmor-perl (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Preparing to unpack .../apparmor_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking apparmor (2.10.95-0ubuntu2.10) over (2.10.95-0ubuntu2.9) ...
Preparing to unpack .../openssh-sftp-server_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-sftp-server (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../openssh-server_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-server (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../openssh-client_1%3a7.2p2-4ubuntu2.5_amd64.deb ...
Unpacking openssh-client (1:7.2p2-4ubuntu2.5) over (1:7.2p2-4ubuntu2.4) ...
Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1.5_all.deb ...
Unpacking git-man (1:2.7.4-0ubuntu1.5) over (1:2.7.4-0ubuntu1.4) ...
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.5_amd64.deb ...
Unpacking git (1:2.7.4-0ubuntu1.5) over (1:2.7.4-0ubuntu1.4) ...
Preparing to unpack .../python3-requests_2.9.1-3ubuntu0.1_all.deb ...
Unpacking python3-requests (2.9.1-3ubuntu0.1) over (2.9.1-3) ...
Preparing to unpack .../cloud-initramfs-copymods_0.27ubuntu1.6_all.deb ...
Unpacking cloud-initramfs-copymods (0.27ubuntu1.6) over (0.27ubuntu1.5) ...
Preparing to unpack .../cloud-initramfs-dyn-netconf_0.27ubuntu1.6_all.deb ...
Unpacking cloud-initramfs-dyn-netconf (0.27ubuntu1.6) over (0.27ubuntu1.5) ...
Preparing to unpack .../overlayroot_0.27ubuntu1.6_all.deb ...
Unpacking overlayroot (0.27ubuntu1.6) over (0.27ubuntu1.5) ...
Processing triggers for systemd (229-4ubuntu21.4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up open-iscsi (2.0.873+git0.3b4b4500-14ubuntu3.6) ...
Setting up libapparmor-perl (2.10.95-0ubuntu2.10) ...
Setting up apparmor (2.10.95-0ubuntu2.10) ...
Installing new version of config file /etc/apparmor.d/abstractions/private-files ...
Installing new version of config file /etc/apparmor.d/abstractions/private-files-strict ...
Installing new version of config file /etc/apparmor.d/abstractions/ubuntu-browsers.d/user-files ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Setting up openssh-client (1:7.2p2-4ubuntu2.5) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.5) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.5) ...
Setting up git-man (1:2.7.4-0ubuntu1.5) ...
Setting up git (1:2.7.4-0ubuntu1.5) ...
Setting up python3-requests (2.9.1-3ubuntu0.1) ...
Setting up cloud-initramfs-copymods (0.27ubuntu1.6) ...
Setting up cloud-initramfs-dyn-netconf (0.27ubuntu1.6) ...
Setting up overlayroot (0.27ubuntu1.6) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-137-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,877 kB of archives.
After this operation, 16.6 MB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [340 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16.04.3 [1,261 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python-minimal amd64 2.7.12-1~16.04 [28.1 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython2.7-stdlib amd64 2.7.12-1ubuntu0~16.04.3 [1,880 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.3 [224 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython-stdlib amd64 2.7.12-1~16.04 [7,768 B]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python amd64 2.7.12-1~16.04 [137 kB]
Fetched 3,877 kB in 4s (785 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 54455 files and directories currently installed.)
Preparing to unpack .../libpython2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.12-1~16.04_amd64.deb ...
Unpacking python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.12-1~16.04_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.12-1~16.04) ...
Selecting previously unselected package python.
(Reading database ... 55201 files and directories currently installed.)
Preparing to unpack .../python_2.7.12-1~16.04_amd64.deb ...
Unpacking python (2.7.12-1~16.04) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up python2.7 (2.7.12-1ubuntu0~16.04.3) ...
Setting up libpython-stdlib:amd64 (2.7.12-1~16.04) ...
Setting up python (2.7.12-1~16.04) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
binutils cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libquadmath0 libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev
python-pkg-resources
Suggested packages:
binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc libstdc++-5-doc make-doc python-setuptools-doc
The following NEW packages will be installed:
binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0
libcilkrts5 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpx0 libquadmath0 libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make
manpages-dev python-pkg-resources python-setuptools
0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.4 MB of archives.
After this operation, 145 MB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libmpc3 amd64 1.0.3-1 [39.7 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 binutils amd64 2.26.1-1ubuntu1~16.04.7 [2,309 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libc-dev-bin amd64 2.23-0ubuntu10 [68.7 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 linux-libc-dev amd64 4.4.0-137.163 [850 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libc6-dev amd64 2.23-0ubuntu10 [2,079 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libisl15 amd64 0.16.1-1 [524 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 cpp-5 amd64 5.4.0-6ubuntu1~16.04.10 [7,671 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 cpp amd64 4:5.3.1-1ubuntu1 [27.7 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libcc1-0 amd64 5.4.0-6ubuntu1~16.04.10 [38.8 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libgomp1 amd64 5.4.0-6ubuntu1~16.04.10 [55.1 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libitm1 amd64 5.4.0-6ubuntu1~16.04.10 [27.4 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libatomic1 amd64 5.4.0-6ubuntu1~16.04.10 [8,888 B]
Get:13 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libasan2 amd64 5.4.0-6ubuntu1~16.04.10 [264 kB]
Get:14 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 liblsan0 amd64 5.4.0-6ubuntu1~16.04.10 [105 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libtsan0 amd64 5.4.0-6ubuntu1~16.04.10 [244 kB]
Get:16 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libubsan0 amd64 5.4.0-6ubuntu1~16.04.10 [95.3 kB]
Get:17 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libcilkrts5 amd64 5.4.0-6ubuntu1~16.04.10 [40.1 kB]
Get:18 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libmpx0 amd64 5.4.0-6ubuntu1~16.04.10 [9,764 B]
Get:19 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libquadmath0 amd64 5.4.0-6ubuntu1~16.04.10 [131 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libgcc-5-dev amd64 5.4.0-6ubuntu1~16.04.10 [2,228 kB]
Get:21 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 gcc-5 amd64 5.4.0-6ubuntu1~16.04.10 [8,426 kB]
Get:22 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 gcc amd64 4:5.3.1-1ubuntu1 [5,244 B]
Get:23 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libstdc++-5-dev amd64 5.4.0-6ubuntu1~16.04.10 [1,426 kB]
Get:24 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 g++-5 amd64 5.4.0-6ubuntu1~16.04.10 [8,319 kB]
Get:25 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 g++ amd64 4:5.3.1-1ubuntu1 [1,504 B]
Get:26 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 make amd64 4.1-6 [151 kB]
Get:27 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libdpkg-perl all 1.18.4ubuntu1.4 [195 kB]
Get:28 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 dpkg-dev all 1.18.4ubuntu1.4 [584 kB]
Get:29 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 build-essential amd64 12.1ubuntu2 [4,758 B]
Get:30 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libfakeroot amd64 1.20.2-1ubuntu1 [25.5 kB]
Get:31 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 fakeroot amd64 1.20.2-1ubuntu1 [61.8 kB]
Get:32 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:33 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libalgorithm-diff-xs-perl amd64 0.04-4build1 [11.0 kB]
Get:34 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:35 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libfile-fcntllock-perl amd64 0.22-3 [32.0 kB]
Get:36 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 manpages-dev all 4.04-2 [2,048 kB]
Get:37 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB]
Get:38 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 python-setuptools all 20.7.0-1 [169 kB]
Fetched 38.4 MB in 19s (2,023 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libmpc3:amd64.
(Reading database ... 55256 files and directories currently installed.)
Preparing to unpack .../libmpc3_1.0.3-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.26.1-1ubuntu1~16.04.7_amd64.deb ...
Unpacking binutils (2.26.1-1ubuntu1~16.04.7) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu10_amd64.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu10) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.4.0-137.163_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.4.0-137.163) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.23-0ubuntu10_amd64.deb ...
Unpacking libc6-dev:amd64 (2.23-0ubuntu10) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.16.1-1_amd64.deb ...
Unpacking libisl15:amd64 (0.16.1-1) ...
Selecting previously unselected package cpp-5.
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking cpp (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking gcc (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.4.0-6ubuntu1~16.04.10_amd64.deb ...
Unpacking g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.3.1-1ubuntu1_amd64.deb ...
Unpacking g++ (4:5.3.1-1ubuntu1) ...
Selecting previously unselected package make.
Preparing to unpack .../archives/make_4.1-6_amd64.deb ...
Unpacking make (4.1-6) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../libdpkg-perl_1.18.4ubuntu1.4_all.deb ...
Unpacking libdpkg-perl (1.18.4ubuntu1.4) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../dpkg-dev_1.18.4ubuntu1.4_all.deb ...
Unpacking dpkg-dev (1.18.4ubuntu1.4) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../build-essential_12.1ubuntu2_amd64.deb ...
Unpacking build-essential (12.1ubuntu2) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../libfakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../fakeroot_1.20.2-1ubuntu1_amd64.deb ...
Unpacking fakeroot (1.20.2-1ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../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 .../libalgorithm-diff-xs-perl_0.04-4build1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-4build1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../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 .../libfile-fcntllock-perl_0.22-3_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_4.04-2_all.deb ...
Unpacking manpages-dev (4.04-2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_20.7.0-1_all.deb ...
Unpacking python-pkg-resources (20.7.0-1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_20.7.0-1_all.deb ...
Unpacking python-setuptools (20.7.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libmpc3:amd64 (1.0.3-1) ...
Setting up binutils (2.26.1-1ubuntu1~16.04.7) ...
Setting up libc-dev-bin (2.23-0ubuntu10) ...
Setting up linux-libc-dev:amd64 (4.4.0-137.163) ...
Setting up libc6-dev:amd64 (2.23-0ubuntu10) ...
Setting up libisl15:amd64 (0.16.1-1) ...
Setting up cpp-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up cpp (4:5.3.1-1ubuntu1) ...
Setting up libcc1-0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgomp1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libitm1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libatomic1:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libasan2:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up liblsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libtsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libubsan0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libmpx0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up gcc (4:5.3.1-1ubuntu1) ...
Setting up libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++-5 (5.4.0-6ubuntu1~16.04.10) ...
Setting up g++ (4:5.3.1-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up make (4.1-6) ...
Setting up libdpkg-perl (1.18.4ubuntu1.4) ...
Setting up dpkg-dev (1.18.4ubuntu1.4) ...
Setting up build-essential (12.1ubuntu2) ...
Setting up libfakeroot:amd64 (1.20.2-1ubuntu1) ...
Setting up fakeroot (1.20.2-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up libalgorithm-diff-xs-perl (0.04-4build1) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libfile-fcntllock-perl (0.22-3) ...
Setting up manpages-dev (4.04-2) ...
Setting up python-pkg-resources (20.7.0-1) ...
Setting up python-setuptools (20.7.0-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
root@erp:~# sudo adduser frappe
Adding user `frappe' ...
Adding new group `frappe' (1000) ...
Adding new user `frappe' (1000) with group `frappe' ...
Creating home directory `/home/frappe' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
No password supplied
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
Try again? [y/N] ^CStopped: Caught a SIGINT.
Removing directory `/home/frappe' ...
Removing user `frappe' ...
Removing group `frappe' ...
groupdel: group 'frappe' does not exist
adduser: `groupdel frappe' returned error code 6. Exiting.
root@erp:~# echo "frappe ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
root@erp:~# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
--2018-10-18 13:48:24-- https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.156.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.156.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13203 (13K) [text/plain]
Saving to: ‘install.py’
install.py 100%[==============================================================================================================>] 12.89K --.-KB/s in 0.006s
2018-10-18 13:48:24 (2.22 MB/s) - ‘install.py’ saved [13203/13203]
root@erp:~# python install.py --production --user frappe --mysql-root-password abc --admin-password abc
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:1 http://lon1.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:2 http://lon1.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://lon1.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 216 kB in 1s (136 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).
python-setuptools is already the newest version (20.7.0-1).
git is already the newest version (1:2.7.4-0ubuntu1.5).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libexpat1-dev libpython-dev libpython2.7 libpython2.7-dev libssl-doc python2.7-dev zlib1g-dev
The following NEW packages will be installed:
libexpat1-dev libffi-dev libpython-dev libpython2.7 libpython2.7-dev libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.0 MB of archives.
After this operation, 56.6 MB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libexpat1-dev amd64 2.1.0-7ubuntu0.16.04.3 [115 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython2.7 amd64 2.7.12-1ubuntu0~16.04.3 [1,070 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython2.7-dev amd64 2.7.12-1ubuntu0~16.04.3 [27.8 MB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libpython-dev amd64 2.7.12-1~16.04 [7,840 B]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-2ubuntu4.1 [168 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libssl-dev amd64 1.0.2g-1ubuntu4.13 [1,342 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 libssl-doc all 1.0.2g-1ubuntu4.13 [1,079 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python2.7-dev amd64 2.7.12-1ubuntu0~16.04.3 [276 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 python-dev amd64 2.7.12-1~16.04 [1,186 B]
Get:10 http://mirrors.digitalocean.com/ubuntu xenial/main amd64 libffi-dev amd64 3.2.1-4 [161 kB]
Fetched 32.0 MB in 8s (3,625 kB/s)
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 60460 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.1.0-7ubuntu0.16.04.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../libpython2.7_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.12-1~16.04_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.12-1~16.04) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../libssl-dev_1.0.2g-1ubuntu4.13_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.2g-1ubuntu4.13) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../libssl-doc_1.0.2g-1ubuntu4.13_all.deb ...
Unpacking libssl-doc (1.0.2g-1ubuntu4.13) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.12-1ubuntu0~16.04.3_amd64.deb ...
Unpacking python2.7-dev (2.7.12-1ubuntu0~16.04.3) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.12-1~16.04_amd64.deb ...
Unpacking python-dev (2.7.12-1~16.04) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../libffi-dev_3.2.1-4_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3) ...
Setting up libpython2.7:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.3) ...
Setting up libpython-dev:amd64 (2.7.12-1~16.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4.1) ...
Setting up libssl-dev:amd64 (1.0.2g-1ubuntu4.13) ...
Setting up libssl-doc (1.0.2g-1ubuntu4.13) ...
Setting up python2.7-dev (2.7.12-1ubuntu0~16.04.3) ...
Setting up python-dev (2.7.12-1~16.04) ...
Setting up libffi-dev:amd64 (3.2.1-4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
--2018-10-18 13:49:40-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.156.175, 2a04:4e42:25::175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.156.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1661676 (1.6M) [text/x-python]
Saving to: ‘get-pip.py’
get-pip.py 100%[==============================================================================================================>] 1.58M --.-KB/s in 0.07s
2018-10-18 13:49:41 (22.9 MB/s) - ‘get-pip.py’ saved [1661676/1661676]
Collecting pip
Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 12.2MB/s
Collecting wheel
Downloading https://files.pythonhosted.org/packages/fc/e9/05316a1eec70c2bfc1c823a259546475bd7636ba6d27ec80575da523bc34/wheel-0.32.1-py2.py3-none-any.whl
Installing collected packages: pip, wheel
Successfully installed pip-18.1 wheel-0.32.1
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/96/06/c8ee69628191285ddddffb277bd5abdf769166e7a14b867c2a172f0175b1/setuptools-40.4.3-py2.py3-none-any.whl (569kB)
100% |████████████████████████████████| 573kB 15.2MB/s
Collecting requests
Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
100% |████████████████████████████████| 92kB 20.5MB/s
Collecting cryptography
Downloading https://files.pythonhosted.org/packages/87/e6/915a482dbfef98bbdce6be1e31825f591fc67038d4ee09864c1d2c3db371/cryptography-2.3.1-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
100% |████████████████████████████████| 2.1MB 9.3MB/s
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (18.1)
Collecting certifi>=2017.4.17 (from requests)
Downloading https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl (146kB)
100% |████████████████████████████████| 153kB 28.1MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 35.1MB/s
Collecting urllib3<1.24,>=1.21.1 (from requests)
Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 34.5MB/s
Collecting idna<2.8,>=2.5 (from requests)
Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 27.2MB/s
Collecting enum34; python_version < "3" (from cryptography)
Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography)
Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
100% |████████████████████████████████| 102kB 24.8MB/s
Collecting cffi!=1.11.3,>=1.7 (from cryptography)
Downloading https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
100% |████████████████████████████████| 409kB 18.4MB/s
Collecting six>=1.4.1 (from cryptography)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography)
Downloading https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography)
Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
100% |████████████████████████████████| 163kB 22.2MB/s
Building wheels for collected packages: pycparser
Running setup.py bdist_wheel for pycparser ... done
Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built pycparser
Installing collected packages: setuptools, certifi, chardet, urllib3, idna, requests, enum34, asn1crypto, pycparser, cffi, six, ipaddress, cryptography
Found existing installation: setuptools 20.7.0
Uninstalling setuptools-20.7.0:
Successfully uninstalled setuptools-20.7.0
Successfully installed asn1crypto-0.24.0 certifi-2018.10.15 cffi-1.11.5 chardet-3.0.4 cryptography-2.3.1 enum34-1.1.6 idna-2.7 ipaddress-1.0.22 pycparser-2.19 requests-2.19.1 setuptools-40.4.3 six-1.11.
0 urllib3-1.23
Requirement already up-to-date: cryptography in /usr/local/lib/python2.7/dist-packages (2.3.1)
Collecting ansible
Downloading https://files.pythonhosted.org/packages/7c/4f/a1843687642b8e33637e312b9fb17ca7f68be0641131a92d883368dc6d1c/ansible-2.7.0.tar.gz (11.8MB)
100% |████████████████████████████████| 11.8MB 1.6MB/s
Requirement already satisfied, skipping upgrade: enum34; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.1.6)
aRequirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/dist-packages (from cryptography) (0.24.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.5)
Requirement already satisfied, skipping upgrade: idna>=2.1 in /usr/local/lib/python2.7/dist-packages (from cryptography) (2.7)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.11.0)
Requirement already satisfied, skipping upgrade: ipaddress; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.0.22)
Collecting jinja2 (from ansible)
Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
100% |████████████████████████████████| 133kB 18.7MB/s
Collecting PyYAML (from ansible)
Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
100% |████████████████████████████████| 276kB 17.1MB/s
aaaaaaaaaaCollecting paramiko (from ansible)
aaa Downloading https://files.pythonhosted.org/packages/cf/ae/94e70d49044ccc234bfdba20114fa947d7ba6eb68a2e452d89b920e62227/paramiko-2.4.2-py2.py3-none-any.whl (193kB)
100% |████████████████████████████████| 194kB 16.8MB/s
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python2.7/dist-packages (from ansible) (40.4.3)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi!=1.11.3,>=1.7->cryptography) (2.19)
aCollecting MarkupSafe>=0.23 (from jinja2->ansible)
Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
aCollecting pyasn1>=0.1.7 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)
100% |████████████████████████████████| 81kB 12.8MB/s
Collecting bcrypt>=3.1.3 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/2e/5a/2abeae20ce294fe6bf63da0e0b5a885c788e1360bbd124edcc0429678a59/bcrypt-3.1.4-cp27-cp27mu-manylinux1_x86_64.whl (57kB)
100% |████████████████████████████████| 61kB 14.4MB/s
Collecting pynacl>=1.0.1 (from paramiko->ansible)
Downloading https://files.pythonhosted.org/packages/b3/25/e605574f24948a8a53b497744e93f061eb1dbe7c44b6465fc1c172d591aa/PyNaCl-1.3.0-cp27-cp27mu-manylinux1_x86_64.whl (762kB)
100% |████████████████████████████████| 768kB 14.1MB/s
Building wheels for collected packages: ansible, PyYAML, MarkupSafe
Running setup.py bdist_wheel for ansible ... done
Stored in directory: /root/.cache/pip/wheels/4d/9b/69/922392aa2f3189d99e672afbd178887927ce5420e2cc874dcd
Running setup.py bdist_wheel for PyYAML ... done
Stored in directory: /root/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
Running setup.py bdist_wheel for MarkupSafe ... done
Stored in directory: /root/.cache/pip/wheels/33/56/20/ebe49a5c612fffe1c5a632146b16596f9e64676768661e4e46
Successfully built ansible PyYAML MarkupSafe
Installing collected packages: MarkupSafe, jinja2, PyYAML, pyasn1, bcrypt, pynacl, paramiko, ansible
Successfully installed MarkupSafe-1.0 PyYAML-3.13 ansible-2.7.0 bcrypt-3.1.4 jinja2-2.10 paramiko-2.4.2 pyasn1-0.4.4 pynacl-1.3.0
Cloning into '/tmp/.bench'...
remote: Enumerating objects: 260, done.
remote: Counting objects: 100% (260/260), done.
remote: Compressing objects: 100% (210/210), done.
remote: Total 260 (delta 16), reused 139 (delta 6), pack-reused 0
Receiving objects: 100% (260/260), 120.51 KiB | 0 bytes/s, done.
Resolving deltas: 100% (16/16), done.
Checking connectivity... done.
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *****************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [localhost]
TASK [Create user] ***************************************************************************************************************************************************************************************
changed: [localhost]
TASK [Set home folder perms] *****************************************************************************************************************************************************************************
changed: [localhost]
TASK [Set /tmp/.bench folder perms] **********************************************************************************************************************************************************************
changed: [localhost]
TASK [Change default shell to bash] **********************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP ***********************************************************************************************************************************************************************************************
localhost : ok=5 changed=4 unreachable=0 failed=0
Passwords saved at ~/passwords.txt
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *****************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [localhost]
TASK [common : include_tasks] ****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/common/tasks/debian_family.yml for localhost
TASK [common : Install prerequisites using apt-get] ******************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'dnsmasq', u'fontconfig', u'git', u'htop', u'libcrypto++-dev', u'libfreetype6-dev', u'liblcms2-dev', u'libssl-dev', u'libwebp-dev', u'libxext6', u'libxrender1', u'libxslt1-dev', u'libxslt1.1', u
'libffi-dev', u'ntp', u'postfix', u'python-dev', u'python3-dev', u'python-tk', u'screen', u'vim', u'xfonts-75dpi', u'xfonts-base', u'zlib1g-dev', u'apt-transport-https', u'libsasl2-dev',
u'libldap2-dev', u'libcups2-dev', u'pv']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => (item=[u'dnsmasq', u'fontconfig', u'git', u'htop', u'libcrypto++-dev', u'libfreetype6-dev', u'liblcms2-dev', u'libssl-dev', u'libwebp-dev', u'libxext6', u'libxrender1', u'libxslt
1-dev', u'libxslt1.1', u'libffi-dev', u'ntp', u'postfix', u'python-dev', u'python3-dev', u'python-tk', u'screen', u'vim', u'xfonts-75dpi', u'xfonts-base', u'zlib1g-dev', u'apt-transport-https', u'libsas
l2-dev', u'libldap2-dev', u'libcups2-dev', u'pv'])
TASK [common : include_tasks] ****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [common : include_tasks] ****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/common/tasks/ubuntu.yml for localhost
TASK [common : install pillow prerequisites for Ubuntu < 14.04] ******************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'libjpeg8-dev', u'libtiff4-dev', u'tcl8.5-dev', u'tk8.5-dev']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|version_compare` use `result is version_compare`. This feature will be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [common : install pillow prerequisites for Ubuntu >= 14.04] *****************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'libjpeg8-dev', u'libtiff5-dev', u'tcl8.6-dev', u'tk8.6-dev']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|version_compare` use `result is version_compare`. This feature will be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => (item=[u'libjpeg8-dev', u'libtiff5-dev', u'tcl8.6-dev', u'tk8.6-dev'])
TASK [common : include_tasks] ****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [locale : Check current locale] *********************************************************************************************************************************************************************
changed: [localhost]
TASK [locale : Set Locale] *******************************************************************************************************************************************************************************
changed: [localhost]
TASK [locale : Set keymap] *******************************************************************************************************************************************************************************
changed: [localhost]
TASK [locale : Set Locale as en_US] **********************************************************************************************************************************************************************
changed: [localhost] => (item=LC_ALL=en_US.UTF-8)
changed: [localhost] => (item=LC_CTYPE=en_US.UTF-8)
changed: [localhost] => (item=LANG=en_US.UTF-8)
TASK [mariadb : Add repo file] ***************************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Install MariaDB] *************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{ item }}`, please use
`name: [u'MariaDB-server', u'MariaDB-client']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
skipping: [localhost] => (item=[])
TASK [mariadb : Install MySQLdb Python package for secure installations.] ********************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Add repo file] ***************************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Add repo key] ****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Update apt cache] ************************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Unattended package installation] *********************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Install MariaDB] *************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'mariadb-server', u'mariadb-client', u'libmariadbclient18']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [mariadb : Install MySQLdb Python package for secure installations.] ********************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Add repo file] ***************************************************************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Add repo key] ****************************************************************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Update apt cache] ************************************************************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Unattended package installation] *********************************************************************************************************************************************************
ok: [localhost]
TASK [mariadb : Install MariaDB] *************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'mariadb-server', u'mariadb-client', u'libmariadbclient18']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
changed: [localhost] => (item=[u'mariadb-server', u'mariadb-client', u'libmariadbclient18'])
TASK [mariadb : Install MySQLdb Python package for secure installations.] ********************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Add configuration] ***********************************************************************************************************************************************************************
changed: [localhost]
TASK [mariadb : include_tasks] ***************************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Add configuration] ***********************************************************************************************************************************************************************
skipping: [localhost]
TASK [mariadb : Add additional conf for MariaDB 10.2 in mariadb.conf.d] **********************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Add additional conf for MariaDB 10.2 in mariadb.conf.d] **********************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Start and enable service] ****************************************************************************************************************************************************************
ok: [localhost]
TASK [mariadb : debug] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "abc"
}
TASK [mariadb : include_tasks] ***************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/mariadb/tasks/mysql_secure_installation.yml for localhost
TASK [mariadb : debug] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "abc"
}
TASK [mariadb : Add .my.cnf] *****************************************************************************************************************************************************************************
changed: [localhost]
TASK [mariadb : Set root Password] ***********************************************************************************************************************************************************************
changed: [localhost] => (item=localhost)
changed: [localhost] => (item=127.0.0.1)
changed: [localhost] => (item=::1)
TASK [mariadb : Reload privilege tables] *****************************************************************************************************************************************************************
skipping: [localhost] => (item=FLUSH PRIVILEGES)
TASK [mariadb : Remove anonymous users] ******************************************************************************************************************************************************************
skipping: [localhost] => (item=DELETE FROM mysql.user WHERE User='')
TASK [mariadb : Disallow root login remotely] ************************************************************************************************************************************************************
skipping: [localhost] => (item=DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1'))
TASK [mariadb : Remove test database and access to it] ***************************************************************************************************************************************************
skipping: [localhost] => (item=DROP DATABASE IF EXISTS test)
skipping: [localhost] => (item=DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%')
TASK [mariadb : Reload privilege tables] *****************************************************************************************************************************************************************
skipping: [localhost] => (item=FLUSH PRIVILEGES)
TASK [mariadb : debug] ***********************************************************************************************************************************************************************************
ok: [localhost] => {
"mysql_secure_installation": true
}
TASK [nodejs : include_tasks] ****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/nodejs/tasks/debian_family.yml for localhost
TASK [nodejs : Add Node.js PPA] **************************************************************************************************************************************************************************
[WARNING]: Consider using the get_url or uri module rather than running curl. If you need to use command because get_url or uri is insufficient you can add warn=False to this command task or set
command_warnings=False in ansible.cfg to get rid of this message.
changed: [localhost]
TASK [nodejs : Install nodejs 8] *************************************************************************************************************************************************************************
changed: [localhost]
TASK [nodejs : include_tasks] ****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [nodejs : Install yarn] *****************************************************************************************************************************************************************************
changed: [localhost]
TASK [swap : Create swap space] **************************************************************************************************************************************************************************
changed: [localhost]
TASK [swap : Make swap] **********************************************************************************************************************************************************************************
changed: [localhost]
TASK [swap : Add to fstab] *******************************************************************************************************************************************************************************
changed: [localhost]
TASK [swap : Turn swap on] *******************************************************************************************************************************************************************************
changed: [localhost]
TASK [swap : Set swapiness] ******************************************************************************************************************************************************************************
changed: [localhost]
TASK [logwatch : Install logwatch] ***********************************************************************************************************************************************************************
skipping: [localhost]
TASK [logwatch : Install logwatch on Ubuntu or Debian] ***************************************************************************************************************************************************
changed: [localhost]
TASK [logwatch : Copy logwatch config] *******************************************************************************************************************************************************************
skipping: [localhost]
TASK [bash_screen_wall : Setup bash screen wall] *********************************************************************************************************************************************************
changed: [localhost]
TASK [frappe_selinux : Install deps] *********************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{item}}`, please use `name:
[u'policycoreutils-python', u'selinux-policy-devel']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
skipping: [localhost] => (item=[])
TASK [frappe_selinux : Check enabled SELinux modules] ****************************************************************************************************************************************************
skipping: [localhost]
TASK [frappe_selinux : Copy frappe_selinux policy] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [frappe_selinux : Compile frappe_selinux policy] ****************************************************************************************************************************************************
skipping: [localhost]
TASK [dns_caching : Check NetworkManager.conf exists] ****************************************************************************************************************************************************
ok: [localhost]
TASK [dns_caching : Unmask NetworkManager service] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [dns_caching : Add dnsmasq to network config] *******************************************************************************************************************************************************
skipping: [localhost]
TASK [ntpd : Install ntpd] *******************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{item}}`, please use `name:
[u'ntp', u'ntpdate']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [ntpd : Enable ntpd] ********************************************************************************************************************************************************************************
skipping: [localhost]
TASK [ntpd : Install ntpd] *******************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{item}}`, please use `name:
[u'ntp', u'ntpdate']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => (item=[u'ntp', u'ntpdate'])
[DEPRECATION WARNING]: State 'installed' is deprecated. Using state 'present' instead.. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
TASK [ntpd : Enable ntpd] ********************************************************************************************************************************************************************************
ok: [localhost]
TASK [wkhtmltopdf : install base fonts] ******************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{ item }}`, please use
`name: [u'libXrender', u'libXext', u'xorg-x11-fonts-75dpi', u'xorg-x11-fonts-Type1']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [wkhtmltopdf : install base fonts] ******************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{ item }}`, please use
`name: [u'libxrender1', u'libxext6', u'xfonts-75dpi', u'xfonts-base']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => (item=[u'libxrender1', u'libxext6', u'xfonts-75dpi', u'xfonts-base'])
TASK [wkhtmltopdf : download wkthmltox linux] ************************************************************************************************************************************************************
changed: [localhost]
TASK [wkhtmltopdf : Creates directory] *******************************************************************************************************************************************************************
changed: [localhost]
TASK [wkhtmltopdf : unarchive wkhtmltopdf] ***************************************************************************************************************************************************************
changed: [localhost]
TASK [wkhtmltopdf : copy to /usr/local/bin] **************************************************************************************************************************************************************
changed: [localhost]
TASK [wkhtmltopdf : make wkhtmltopdf executable] *********************************************************************************************************************************************************
changed: [localhost]
TASK [psutil : Install psutil] ***************************************************************************************************************************************************************************
changed: [localhost]
TASK [redis : Install yum packages] **********************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{ item }}`, please use
`name: [u'redis']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [redis : Install apt packages] **********************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `pkg: {{ item }}`, please use `pkg:
[u'redis-server']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => (item=[u'redis-server'])
TASK [redis : install prequisites for macos] *************************************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking "homebrew" only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying `name: {{ item }}`, please use
`name: [u'redis']` and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[])
TASK [supervisor : Install supervisor on centos] *********************************************************************************************************************************************************
skipping: [localhost]
TASK [supervisor : Install supervisor on debian] *********************************************************************************************************************************************************
changed: [localhost]
TASK [nginx : Include OS-specific variables.] ************************************************************************************************************************************************************
ok: [localhost]
TASK [nginx : Define nginx_user.] ************************************************************************************************************************************************************************
ok: [localhost]
TASK [nginx : include_tasks] *****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [nginx : include_tasks] *****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/nginx/tasks/setup-Debian.yml for localhost
TASK [nginx : Add nginx apt repository key for Debian < 8] ***********************************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Add nginx apt repository for Debian < 8] ***************************************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Ensure nginx is installed.] ****************************************************************************************************************************************************************
changed: [localhost]
TASK [nginx : Rename default nginx.conf to nginx.conf.old] ***********************************************************************************************************************************************
changed: [localhost]
TASK [nginx : Copy nginx configuration in place.] ********************************************************************************************************************************************************
changed: [localhost]
TASK [nginx : Setup www redirect] ************************************************************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Enable SELinux] ****************************************************************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Ensure nginx is started and enabled to start at boot.] *************************************************************************************************************************************
ok: [localhost]
TASK [nginx : include_tasks] *****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/nginx/tasks/vhosts.yml for localhost
TASK [nginx : Remove default nginx vhost config file (if configured).] ***********************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Add managed vhost config file (if any vhosts are configured).] *****************************************************************************************************************************
skipping: [localhost]
TASK [nginx : Remove managed vhost config file (if no vhosts are configured).] ***************************************************************************************************************************
ok: [localhost]
TASK [fail2ban : Install fail2ban] ***********************************************************************************************************************************************************************
skipping: [localhost]
TASK [fail2ban : Install fail2ban] ***********************************************************************************************************************************************************************
changed: [localhost]
TASK [fail2ban : Enable fail2ban] ************************************************************************************************************************************************************************
ok: [localhost]
TASK [fail2ban : Create jail.d] **************************************************************************************************************************************************************************
ok: [localhost]
TASK [fail2ban : Setup filters] **************************************************************************************************************************************************************************
changed: [localhost] => (item=nginx-proxy)
TASK [fail2ban : setup jails] ****************************************************************************************************************************************************************************
changed: [localhost] => (item=nginx-proxy)
TASK [Set hostname] **************************************************************************************************************************************************************************************
skipping: [localhost]
TASK [Start NTPD] ****************************************************************************************************************************************************************************************
skipping: [localhost]
TASK [Start NTPD] ****************************************************************************************************************************************************************************************
ok: [localhost]
TASK [include_tasks] *************************************************************************************************************************************************************************************
skipping: [localhost]
RUNNING HANDLER [mariadb : restart mysql] ****************************************************************************************************************************************************************
changed: [localhost]
RUNNING HANDLER [nginx : restart nginx] ******************************************************************************************************************************************************************
changed: [localhost]
RUNNING HANDLER [fail2ban : restart fail2ban] ************************************************************************************************************************************************************
changed: [localhost]
PLAY [setup bench and dev environment] *******************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [localhost]
TASK [bench : Check if /tmp/.bench exists] ***************************************************************************************************************************************************************
ok: [localhost]
TASK [bench : Check if bench_repo_path exists] ***********************************************************************************************************************************************************
ok: [localhost]
TASK [bench : move /tmp/.bench if it exists] *************************************************************************************************************************************************************
changed: [localhost]
TASK [bench : install bench] *****************************************************************************************************************************************************************************
changed: [localhost]
TASK [bench : Overwrite bench if required] ***************************************************************************************************************************************************************
skipping: [localhost]
TASK [bench : Check whether bench exists] ****************************************************************************************************************************************************************
ok: [localhost]
TASK [bench : python3 bench init for develop] ************************************************************************************************************************************************************
skipping: [localhost]
TASK [bench : python2 bench init for production] *********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["bench", "init", "/home/frappe/frappe-bench", "--frappe-path", "https://github.com/frappe/frappe", "--frappe-branch", "master"], "delta": "0:01:2
9.234993", "end": "2018-10-18 13:55:52.625045", "msg": "non-zero return code", "rc": 1, "start": "2018-10-18 13:54:23.390052", "stderr": "INFO:bench.utils:virtualenv -q env -p /usr/bin/python\nINFO:benc
h.utils:env/bin/pip -q install --upgrade pip\nINFO:bench.utils:env/bin/pip -q install wheel\nINFO:bench.utils:env/bin/pip -q install six\nINFO:bench.utils:env/bin/pip -q install -e git+https://github.co
m/frappe/python-pdfkit.git#egg=pdfkit\nINFO:bench.app:getting app frappe\nINFO:bench.utils:git clone https://github.com/frappe/frappe --branch master --origin upstream\nCloning into 'frappe'...\nINFO:b
ench.app:installing frappe\nINFO:bench.utils:/home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe --no-cache-dir\nrequests 2.19.1 has requirement urllib3<1.24,>=1.2
1.1, but you'll have urllib3 1.24 which is incompatible.\nbotocore 1.12.26 has requirement urllib3<1.24,>=1.20, but you'll have urllib3 1.24 which is incompatible.\nINFO:bench.app:getting app frappe_io\
nINFO:bench.utils:git clone https://github.com/frappe/frappe_io --branch master --origin upstream\nCloning into 'frappe_io'...\nINFO:bench.app:installing frappe_io\nINFO:bench.utils:/home/frappe/frappe
-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe_io --no-cache-dir\nINFO:bench.utils:npm install\nnpm notice created a lockfile as package-lock.json. You should commit this file.\
nnpm WARN frappe@ No description\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})\n\n/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDep
endencyWarning: urllib3 (1.24) or chardet (3.0.4) doesn't match a supported version!\n RequestsDependencyWarning)\n/home/frappe/frappe-bench/env/bin/python: No module named ordered_dict", "stderr_lines
": ["INFO:bench.utils:virtualenv -q env -p /usr/bin/python", "INFO:bench.utils:env/bin/pip -q install --upgrade pip", "INFO:bench.utils:env/bin/pip -q install wheel", "INFO:bench.utils:env/bin/pip -q in
stall six", "INFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit", "INFO:bench.app:getting app frappe", "INFO:bench.utils:git clone https://github.com/f
rappe/frappe --branch master --origin upstream", "Cloning into 'frappe'...", "INFO:bench.app:installing frappe", "INFO:bench.utils:/home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frap
pe-bench/apps/frappe --no-cache-dir", "requests 2.19.1 has requirement urllib3<1.24,>=1.21.1, but you'll have urllib3 1.24 which is incompatible.", "botocore 1.12.26 has requirement urllib3<1.24,>=1.20,
but you'll have urllib3 1.24 which is incompatible.", "INFO:bench.app:getting app frappe_io", "INFO:bench.utils:git clone https://github.com/frappe/frappe_io --branch master --origin upstream", "Cloni
ng into 'frappe_io'...", "INFO:bench.app:installing frappe_io", "INFO:bench.utils:/home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe_io --no-cache-dir", "INFO:ben
ch.utils:npm install", "npm notice created a lockfile as package-lock.json. You should commit this file.", "npm WARN frappe@ No description", "npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.
2.4 (node_modules/fsevents):", "npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"
x64\"})", "", "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.24) or chardet (3.0.4) doesn't match a supported version!",
" RequestsDependencyWarning)", "/home/frappe/frappe-bench/env/bin/python: No module named ordered_dict"], "stdout": "Already using interpreter /usr/bin/python\n\n> chromedriver@2.43.0 install /home/fra
ppe/frappe-bench/node_modules/chromedriver\n> node install.js\n\nDownloading https://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip\nSaving to /tmp/chromedriver/chromedriver_linux64.z
ip\nReceived 781K...\nReceived 1568K...\nReceived 2352K...\nReceived 3136K...\nReceived 3920K...\nReceived 3987K total.\nExtracting zip contents\nCopying to target path /home/frappe/frappe-bench/node_mo
dules/chromedriver/lib/chromedriver\nFixing file permissions\nDone. ChromeDriver binary available at /home/frappe/frappe-bench/node_modules/chromedriver/lib/chromedriver/chromedriver\nadded 480 packages
from 269 contributors and audited 3531 packages in 15.736s\nfound 0 vulnerabilities\n\n('installing', u'frappe')\n('installing', u'frappe_io')\nUpdating node packages...", "stdout_lines": ["Already usi
ng interpreter /usr/bin/python", "", "> chromedriver@2.43.0 install /home/frappe/frappe-bench/node_modules/chromedriver", "> node install.js", "", "Downloading https://chromedriver.storage.googleapis.co
m/2.43/chromedriver_linux64.zip", "Saving to /tmp/chromedriver/chromedriver_linux64.zip", "Received 781K...", "Received 1568K...", "Received 2352K...", "Received 3136K...", "Received 3920K...", "Receive
d 3987K total.", "Extracting zip contents", "Copying to target path /home/frappe/frappe-bench/node_modules/chromedriver/lib/chromedriver", "Fixing file permissions", "Done. ChromeDriver binary available
at /home/frappe/frappe-bench/node_modules/chromedriver/lib/chromedriver/chromedriver", "added 480 packages from 269 contributors and audited 3531 packages in 15.736s", "found 0 vulnerabilities", "", "(
'installing', u'frappe')", "('installing', u'frappe_io')", "Updating node packages..."]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry
PLAY RECAP ***********************************************************************************************************************************************************************************************
localhost : ok=72 changed=46 unreachable=0 failed=1
Traceback (most recent call last):
File "install.py", line 420, in <module>
install_bench(args)
File "install.py", line 122, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 338, 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
root@erp:~#
root@erp:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment