I run this command
sudo python install.py --develop
then it throws me the following:
@ubuntu:~$ sudo python install.py --develop
[sudo] password for emmanuel:
0% [Working]
Err:1 https://deb.nodesource.com/node_6.x xenial InRelease
Could not resolve host: deb.nodesource.com
0% [Connecting to us.archive.ubuntu.com] [Connecting to security.ubuntu.com] [C^CTraceback (most recent call last):
File “install.py”, line 351, in
install_bench(args)
File “install.py”, line 21, in install_bench
‘sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel’
File “install.py”, line 219, in run_os_command
returncode = subprocess.check_call(command, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 536, in check_call
retcode = call(*popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 523, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 1392, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File “/usr/lib/python2.7/subprocess.py”, line 476, in _eintr_retry_call
return func(*args)
KeyboardInterrupt
emmanuel@ubuntu:~$ sudo python install.py --develop
Hit:1 http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease
Get:2 Index of /ubuntu xenial-security InRelease [102 kB]
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:6 https://deb.nodesource.com/node_6.x xenial InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [489 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [479 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [194 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [432 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [423 kB]
Fetched 2,323 kB in 5s (442 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).
git is already the newest version (1:2.7.4-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python-dev is already the newest version (2.7.11-1).
python-setuptools is already the newest version (20.7.0-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.6).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
The directory ‘/home/emmanuel/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/emmanuel/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools)
Requirement already up-to-date: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools)
Requirement already up-to-date: six>=1.6.0 in /usr/local/lib/python2.7/dist-packages (from setuptools)
Requirement already up-to-date: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools)
The directory ‘/home/emmanuel/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/emmanuel/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already satisfied: ansible==2.0.2.0 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: paramiko in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied: PyYAML in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied: pycrypto>=2.6 in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible==2.0.2.0)
Requirement already satisfied: cryptography>=1.1 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible==2.0.2.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from jinja2->ansible==2.0.2.0)
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools->ansible==2.0.2.0)
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools->ansible==2.0.2.0)
Requirement already satisfied: six>=1.6.0 in /usr/local/lib/python2.7/dist-packages (from setuptools->ansible==2.0.2.0)
Requirement already satisfied: idna>=2.0 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.1->paramiko->ansible==2.0.2.0)
Requirement already satisfied: enum34 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.1->paramiko->ansible==2.0.2.0)
Requirement already satisfied: ipaddress in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.1->paramiko->ansible==2.0.2.0)
Requirement already satisfied: cffi>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.1->paramiko->ansible==2.0.2.0)
Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools->ansible==2.0.2.0)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko->ansible==2.0.2.0)
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [Create user] *************************************************************
ok: [localhost]
TASK [Set home folder perms] ***************************************************
ok: [localhost]
TASK [Set home folder perms] ***************************************************
skipping: [localhost]
TASK [Set /tmp/.bench folder perms] ********************************************
changed: [localhost]
[WARNING]: Consider using file module with owner rather than running chown
PLAY RECAP *********************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=0
Please enter mysql root password:
Re-enter mysql root password:
Please enter the default Administrator user password:
Re-enter Administrator password:
Passwords saved at ~/passwords.txt
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [install prequisites] *****************************************************
skipping: [localhost] => (item=cmake)
skipping: [localhost] => (item=redis)
skipping: [localhost] => (item=mariadb)
skipping: [localhost] => (item=nodejs)
TASK [cask installs] ***********************************************************
skipping: [localhost] => (item=wkhtmltopdf)
TASK [include] *****************************************************************
skipping: [localhost]
TASK [include] *****************************************************************
skipping: [localhost]
TASK [include] *****************************************************************
skipping: [localhost]
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [install prequisites] *****************************************************
ok: [localhost] => (item=[u’build-essential’, u’redis-server’, u’software-properties-common’, u’libxrender1’, u’libxext6’, u’xfonts-75dpi’, u’xfonts-base’, u’libjpeg8-dev’, u’zlib1g-dev’, u’libfreetype6-dev’, u’liblcms2-dev’, u’libwebp-dev’, u’python-tk’, u’apt-transport-https’, u’libsasl2-dev’, u’libldap2-dev’])
TASK [install pillow prerequisites for Ubuntu < 14.04] *************************
skipping: [localhost] => (item=[])
TASK [install pillow prerequisites for Ubuntu >= 14.04] ************************
ok: [localhost] => (item=[u’libtiff5-dev’, u’tcl8.6-dev’, u’tk8.6-dev’])
TASK [Add apt key for node repo] ***********************************************
ok: [localhost]
TASK [Add repo] ****************************************************************
ok: [localhost]
TASK [Install nodejs 6.x] ******************************************************
ok: [localhost]
TASK [include] *****************************************************************
included: /tmp/.bench/playbooks/develop/includes/mariadb_ubuntu.yml for localhost
TASK [Add apt key for mariadb for Ubuntu < 16.04] ******************************
skipping: [localhost]
TASK [Add apt key for mariadb for Ubuntu >= 16.04] *****************************
ok: [localhost]
TASK [Add apt repository] ******************************************************
ok: [localhost]
TASK [Unattended package installation] *****************************************
changed: [localhost]
TASK [apt-get install] *********************************************************
ok: [localhost] => (item=[u’mariadb-server’, u’mariadb-client’, u’mariadb-common’, u’libmariadbclient-dev’])
TASK [include] *****************************************************************
included: /tmp/.bench/playbooks/develop/includes/wkhtmltopdf.yml for localhost
TASK [download wkthmltox linux] ************************************************
ok: [localhost]
TASK [Creates directory] *******************************************************
ok: [localhost]
TASK [unarchive wkhtmltopdf] ***************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “check_results”: {“cmd”: “/bin/tar -C "/tmp" --diff -f "/tmp/ansible-tmp-1488935952.25-113931110908941/source"”, “err”: “”, “out”: “wkhtmltox/lib/libwkhtmltox.so.0.12.3: Uid differs\nwkhtmltox/lib/libwkhtmltox.so.0.12.3: Gid differs\nwkhtmltox/share/man/man1/wkhtmltoimage.1.gz: Uid differs\nwkhtmltox/share/man/man1/wkhtmltoimage.1.gz: Gid differs\nwkhtmltox/share/man/man1/wkhtmltopdf.1.gz: Uid differs\nwkhtmltox/share/man/man1/wkhtmltopdf.1.gz: Gid differs\nwkhtmltox/include/wkhtmltox/pdf.h: Uid differs\nwkhtmltox/include/wkhtmltox/pdf.h: Gid differs\nwkhtmltox/include/wkhtmltox/dllend.inc: Uid differs\nwkhtmltox/include/wkhtmltox/dllend.inc: Gid differs\nwkhtmltox/include/wkhtmltox/dllbegin.inc: Uid differs\nwkhtmltox/include/wkhtmltox/dllbegin.inc: Gid differs\nwkhtmltox/include/wkhtmltox/image.h: Uid differs\nwkhtmltox/include/wkhtmltox/image.h: Gid differs\nwkhtmltox/bin/wkhtmltoimage: Uid differs\nwkhtmltox/bin/wkhtmltoimage: Gid differs\nwkhtmltox/bin/wkhtmltopdf: Uid differs\nwkhtmltox/bin/wkhtmltopdf: Gid differs\n”, “rc”: 1, “unarchived”: false}, “dest”: “/tmp”, “extract_results”: {“cmd”: “/bin/tar -xf "/tmp/ansible-tmp-1488935952.25-113931110908941/source"”, “err”: “/bin/tar: wkhtmltox/lib/libwkhtmltox.so.0.12.3: Cannot open: File exists\n/bin/tar: wkhtmltox/lib/libwkhtmltox.so.0: Cannot create symlink to ‘libwkhtmltox.so.0.12.3’: File exists\n/bin/tar: wkhtmltox/lib/libwkhtmltox.so.0.12: Cannot create symlink to ‘libwkhtmltox.so.0.12.3’: File exists\n/bin/tar: wkhtmltox/lib/libwkhtmltox.so: Cannot create symlink to ‘libwkhtmltox.so.0.12.3’: File exists\n/bin/tar: wkhtmltox/lib: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/share/man/man1/wkhtmltoimage.1.gz: Cannot open: File exists\n/bin/tar: wkhtmltox/share/man/man1/wkhtmltopdf.1.gz: Cannot open: File exists\n/bin/tar: wkhtmltox/share/man/man1: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/share/man: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/share: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/include/wkhtmltox/pdf.h: Cannot open: File exists\n/bin/tar: wkhtmltox/include/wkhtmltox/dllend.inc: Cannot open: File exists\n/bin/tar: wkhtmltox/include/wkhtmltox/dllbegin.inc: Cannot open: File exists\n/bin/tar: wkhtmltox/include/wkhtmltox/image.h: Cannot open: File exists\n/bin/tar: wkhtmltox/include/wkhtmltox: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/include: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox/bin/wkhtmltoimage: Cannot open: File exists\n/bin/tar: wkhtmltox/bin/wkhtmltopdf: Cannot open: File exists\n/bin/tar: wkhtmltox/bin: Cannot utime: Operation not permitted\n/bin/tar: wkhtmltox: Cannot utime: Operation not permitted\n/bin/tar: Exiting with failure status due to previous errors\n”, “out”: “”, “rc”: 2}, “failed”: true, “gid”: 0, “group”: “root”, “handler”: “TarArchive”, “mode”: “01777”, “msg”: “failed to unpack /tmp/ansible-tmp-1488935952.25-113931110908941/source to /tmp”, “owner”: “root”, “size”: 4096, “src”: “/tmp/ansible-tmp-1488935952.25-113931110908941/source”, “state”: “directory”, “uid”: 0}
to retry, use: --limit @develop/install.retry
PLAY RECAP *********************************************************************
localhost : ok=16 changed=1 unreachable=0 failed=1
Traceback (most recent call last):
File “install.py”, line 351, in
install_bench(args)
File “install.py”, line 108, in install_bench
run_playbook(‘develop/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 301, 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’, ‘develop/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=emmanuel’]’ returned non-zero exit status 2