ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Easy Install on Ubuntu18.0 desktop


#1

Hi there,
When I am performing easy install on my Ubuntu Desktop, the installation terminates during Bench Init.

TASK [bench : python3 bench init for develop] **********************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["bench", "init", "/home/erpadmin/frappe-bench", "--frappe-path", "https://github.com/frappe/frappe", "--frappe-branch", "develop", "--python", "python3"], "delta": "0:00:00.472241", "end": "2019-04-13 17:19:01.259976", "msg": "non-zero return code", "rc": 2, "start": "2019-04-13 17:19:00.787735", "stderr": "Usage: bench init [OPTIONS] PATH\nTry \"bench init --help\" for help.\n\nError: no such option: --python", "stderr_lines": ["Usage: bench init [OPTIONS] PATH", "Try \"bench init --help\" for help.", "", "Error: no such option: --python"], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/tmp/.bench/playbooks/site.retry

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

Traceback (most recent call last):
  File "install.py", line 425, 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 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=erpadmin']' returned non-zero exit status 2

Need help to move ahead! Any help would be appreciated.
Regards
Shyam


#2

does the “erpadmin” user already exist on your system?


#3

Hi trentmu

Yes user erpadmin already exist in the system

Regards

Shyam


#4

If you can show more of the error/traceback screen, it will be helpful


#5

erpadmin@erpnext:~$ sudo python install.py --develop --user frappe
[sudo] password for erpadmin:
Hit:1 https://deb.nodesource.com/node_8.x bionic InRelease
Hit:2 http://ams2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu bionic InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [577 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [297 kB]
Get:9 http://ftp.ubuntu-tw.org/mirror/mariadb/repo/10.3/ubuntu xenial InRelease [4,612 B]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [491 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [212 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [278 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [217 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66.7 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [123 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [107 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [745 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:19 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [756 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [20.7 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [201 kB]
Get:22 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [12.2 kB]
Get:23 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [209 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [45.2 kB]
Get:25 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [189 kB]
Get:26 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [356 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:28 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:29 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,352 B]
Fetched 5,173 kB in 4s (1,300 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.4ubuntu1).
libffi-dev is already the newest version (3.2.1-8).
python-dev is already the newest version (2.7.15~rc1-1).
python-setuptools is already the newest version (39.0.1-2).
git is already the newest version (1:2.17.1-1ubuntu0.4).
libssl-dev is already the newest version (1.1.0g-2ubuntu4.3).
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.
The directory ‘/home/erpadmin/.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/erpadmin/.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 (41.0.0)
Requirement already up-to-date: cryptography in /usr/local/lib/python2.7/dist-packages (2.6.1)
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (19.0.3)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/lib/python2.7/dist-packages (from cryptography) (0.24.0)
Requirement already satisfied, skipping upgrade: enum34; python_version < “3” in /usr/lib/python2.7/dist-packages (from cryptography) (1.1.6)
Requirement already satisfied, skipping upgrade: ipaddress; python_version < “3” in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.0.22)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.12.2)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in ./.local/lib/python2.7/site-packages (from cryptography) (1.12.0)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography) (2.19)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.
The directory ‘/home/erpadmin/.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/erpadmin/.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: cryptography in /usr/local/lib/python2.7/dist-packages (2.6.1)
Requirement already up-to-date: ansible in /usr/local/lib/python2.7/dist-packages (2.7.10)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/lib/python2.7/dist-packages (from cryptography) (0.24.0)
Requirement already satisfied, skipping upgrade: enum34; python_version < “3” in /usr/lib/python2.7/dist-packages (from cryptography) (1.1.6)
Requirement already satisfied, skipping upgrade: ipaddress; python_version < “3” in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.0.22)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in /usr/local/lib/python2.7/dist-packages (from cryptography) (1.12.2)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in ./.local/lib/python2.7/site-packages (from cryptography) (1.12.0)
Requirement already satisfied, skipping upgrade: jinja2 in ./.local/lib/python2.7/site-packages (from ansible) (2.10.1)
Requirement already satisfied, skipping upgrade: PyYAML in /usr/local/lib/python2.7/dist-packages (from ansible) (5.1)
Requirement already satisfied, skipping upgrade: paramiko in /usr/local/lib/python2.7/dist-packages (from ansible) (2.4.2)
Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python2.7/dist-packages (from ansible) (41.0.0)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography) (2.19)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./.local/lib/python2.7/site-packages (from jinja2->ansible) (1.1.1)
Requirement already satisfied, skipping upgrade: pynacl>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (1.3.0)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (0.4.5)
Requirement already satisfied, skipping upgrade: bcrypt>=3.1.3 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible) (3.1.6)
Cloning into ‘/tmp/.bench’…
remote: Enumerating objects: 262, done.
remote: Counting objects: 100% (262/262), done.
remote: Compressing objects: 100% (210/210), done.
remote: Total 262 (delta 16), reused 145 (delta 7), pack-reused 0
Receiving objects: 100% (262/262), 121.47 KiB | 647.00 KiB/s, done.
Resolving deltas: 100% (16/16), 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


#6

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]: 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: ['dnsmasq', 'fontconfig', 'git', 'htop', 'libcrypto++-dev', 'libfreetype6-dev', 'liblcms2-dev', 'libssl-dev', 'libwebp-dev', 'libxext6', 'libxrender1', 'libxslt1-dev', 'libxslt1.1', 'libffi-dev', 'ntp', 'postfix', 'python-dev', 'python3-dev', 'python-tk', 'screen', 'vim', 'xfonts-75dpi', 'xfonts-base', 'zlib1g-dev', 'apt-transport-https', 'libsasl2-dev', 'libldap2-dev', 'libcups2-dev', '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.
ok: [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’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’])

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: ['libjpeg8-dev', 'libtiff4-dev', 'tcl8.5-dev', '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: ['libjpeg8-dev', 'libtiff5-dev', 'tcl8.6-dev', '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.
ok: [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] ************************************************************************************************************************************************************************
ok: [localhost] => (item=LC_ALL=en_US.UTF-8)
ok: [localhost] => (item=LC_CTYPE=en_US.UTF-8)
ok: [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: ['MariaDB-server', '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: ['mariadb-server', 'mariadb-client', '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] *****************************************************************************************************************************************************************************
ok: [localhost]

TASK [mariadb : Add repo key] ******************************************************************************************************************************************************************************
ok: [localhost]

TASK [mariadb : Update apt cache] **************************************************************************************************************************************************************************
skipping: [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: ['mariadb-server', 'mariadb-client', '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.
ok: [localhost] => (item=[u’mariadb-server’, u’mariadb-client’, u’libmariadbclient18’])

TASK [mariadb : Install MySQLdb Python package for secure installations.] **********************************************************************************************************************************
ok: [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] ************************************************************************************************************************************
ok: [localhost]

TASK [mariadb : Start and enable service] ******************************************************************************************************************************************************************
ok: [localhost]

TASK [mariadb : debug] *************************************************************************************************************************************************************************************
ok: [localhost] => {
“msg”: “bull197@”
}

TASK [mariadb : include_tasks] *****************************************************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/mariadb/tasks/mysql_secure_installation.yml for localhost

TASK [mariadb : debug] *************************************************************************************************************************************************************************************
ok: [localhost] => {
“msg”: “bull197@”
}

TASK [mariadb : Add .my.cnf] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [mariadb : Set root Password] *************************************************************************************************************************************************************************
ok: [localhost] => (item=localhost)
ok: [localhost] => (item=127.0.0.1)
ok: [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] ***************************************************************************************************************************************************************************
ok: [localhost]

TASK [nodejs : include_tasks] ******************************************************************************************************************************************************************************
skipping: [localhost]

TASK [nodejs : Install yarn] *******************************************************************************************************************************************************************************
changed: [localhost]

TASK [swap : Create swap space] ****************************************************************************************************************************************************************************
skipping: [localhost]

TASK [swap : Make swap] ************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [swap : Add to fstab] *********************************************************************************************************************************************************************************
skipping: [localhost]

TASK [swap : Turn swap on] *********************************************************************************************************************************************************************************
skipping: [localhost]

TASK [swap : Set swapiness] ********************************************************************************************************************************************************************************
skipping: [localhost]

TASK [logwatch : Install logwatch] *************************************************************************************************************************************************************************
skipping: [localhost]

TASK [logwatch : Install logwatch on Ubuntu or Debian] *****************************************************************************************************************************************************
skipping: [localhost]

TASK [logwatch : Copy logwatch config] *********************************************************************************************************************************************************************
skipping: [localhost]

TASK [bash_screen_wall : Setup bash screen wall] ***********************************************************************************************************************************************************
skipping: [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: ['policycoreutils-python', '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] ******************************************************************************************************************************************************
skipping: [localhost]

TASK [dns_caching : Unmask NetworkManager service] *********************************************************************************************************************************************************
skipping: [localhost]

TASK [dns_caching : Add dnsmasq to network config] *********************************************************************************************************************************************************
skipping: [localhost]


#7

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: ['ntp', '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: ['ntp', '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 [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: ['libXrender', 'libXext', 'xorg-x11-fonts-75dpi', '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: ['libxrender1', 'libxext6', 'xfonts-75dpi', '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] ****************************************************************************************************************************************************************
ok: [localhost]

TASK [wkhtmltopdf : make wkhtmltopdf executable] ***********************************************************************************************************************************************************
ok: [localhost]

TASK [psutil : Install psutil] *****************************************************************************************************************************************************************************
ok: [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: ['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: ['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.
ok: [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: ['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] ***********************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : Include OS-specific variables.] **************************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : Define nginx_user.] **************************************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : include_tasks] *******************************************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : include_tasks] *******************************************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : Rename default nginx.conf to nginx.conf.old] *************************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : Copy nginx configuration in place.] **********************************************************************************************************************************************************
skipping: [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.] ***************************************************************************************************************************************
skipping: [localhost]

TASK [nginx : include_tasks] *******************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail2ban : Install fail2ban] *************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail2ban : Install fail2ban] *************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail2ban : Enable fail2ban] **************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail2ban : Create jail.d] ****************************************************************************************************************************************************************************
skipping: [localhost]

TASK [fail2ban : Setup filters] ****************************************************************************************************************************************************************************
skipping: [localhost] => (item=nginx-proxy)

TASK [fail2ban : setup jails] ******************************************************************************************************************************************************************************
skipping: [localhost] => (item=nginx-proxy)

TASK [Set hostname] ****************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [Start NTPD] ******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [Start NTPD] ******************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [include_tasks] ***************************************************************************************************************************************************************************************
skipping: [localhost]

RUNNING HANDLER [mariadb : restart mysql] ******************************************************************************************************************************************************************
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] **************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe/frappe-bench”, “–frappe-path”, “https://github.com/frappe/frappe”, “–frappe-branch”, “develop”, “–python”, “python3”], “delta”: “0:00:00.147936”, “end”: “2019-04-16 10:53:41.281502”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-04-16 10:53:41.133566”, “stderr”: “Traceback (most recent call last):\n File “/usr/local/bin/bench”, line 6, in \n from pkg_resources import load_entry_point\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3241, in \n @_call_aside\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3225, in _call_aside\n f(*args, **kwargs)\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3254, in _initialize_master_working_set\n working_set = WorkingSet._build_master()\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 583, in _build_master\n ws.require(requires)\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 900, in require\n needed = self.resolve(parse_requirements(requirements))\n File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 786, in resolve\n raise DistributionNotFound(req, requirers)\npkg_resources.DistributionNotFound: The ‘GitPython==2.1.11’ distribution was not found and is required by bench”, “stderr_lines”: [“Traceback (most recent call last):”, " File “/usr/local/bin/bench”, line 6, in “, " from pkg_resources import load_entry_point”, " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3241, in “, " @_call_aside”, " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3225, in _call_aside", " f(*args, **kwargs)", " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3254, in _initialize_master_working_set", " working_set = WorkingSet._build_master()", " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 583, in _build_master", " ws.require(requires)", " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 900, in require", " needed = self.resolve(parse_requirements(requirements))", " File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 786, in resolve", " raise DistributionNotFound(req, requirers)", “pkg_resources.DistributionNotFound: The ‘GitPython==2.1.11’ distribution was not found and is required by bench”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

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

Traceback (most recent call last):
File “install.py”, line 425, in
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 190, 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


#8

Hello trentmu,
I have copied the above info. Hope it helps.
Regards
Shyam Prasad


#9

Hello again

I haven’t looked in detail yet (I will do so tomorrow), but what I noticed in the log is this

The directory ‘/home/erpadmin/.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.

I am guessing that if pip can’t create in this path, that it may be causing some of the problems. IF that’s the problem, then a permissions adjust like this might help

sudo chown -R erpadmin:erpadmin /home/erpadmin