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

ERROR! The requested handler 'restart network manager' was not found in either the main handlers list nor in the listening handlers list


#1

During Fresh OS with SELinux enabled server, following error was encountered while running bench easy install.

sudo python install.py --production --user frappe

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] ****************************************************************************************************************************************
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 configuration] ************************************************************************************************************************************
ok: [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] ***********************************************************************************************
skipping: [localhost]

TASK [mariadb : Add additional conf for MariaDB 10.2 in mariadb.conf.d] ***********************************************************************************************
skipping: [localhost]

TASK [mariadb : Start and enable service] *****************************************************************************************************************************
ok: [localhost]
TASK [mariadb : debug] ************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "fo7bR84mjX4jdgY"
}

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

TASK [mariadb : debug] ************************************************************************************************************************************************
ok: [localhost] => {
    "msg": "fo7bR84mjX4jdgY"
}

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] *****************************************************************************************************************************************
skipping: [localhost]

TASK [nodejs : include_tasks] *****************************************************************************************************************************************
included: /tmp/.bench/playbooks/roles/nodejs/tasks/redhat_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 node v8] ***************************************************************************************************************************************
ok: [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] *******************************************************************************************************************************************
changed: [localhost]

TASK [logwatch : Install logwatch] ************************************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
ok: [localhost]

TASK [logwatch : Install logwatch on Ubuntu or Debian] ****************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
skipping: [localhost]

TASK [logwatch : Copy logwatch config] ********************************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
skipping: [localhost]

TASK [bash_screen_wall : Setup bash screen wall] **********************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
ok: [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.
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
ok: [localhost] => (item=[u'policycoreutils-python', u'selinux-policy-devel'])
TASK [frappe_selinux : Check enabled SELinux modules] *****************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
changed: [localhost]

TASK [frappe_selinux : Copy frappe_selinux policy] ********************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
changed: [localhost]

TASK [frappe_selinux : Compile frappe_selinux policy] *****************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
changed: [localhost]

TASK [dns_caching : Check NetworkManager.conf exists] *****************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
ok: [localhost]

TASK [dns_caching : Unmask NetworkManager service] ********************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
changed: [localhost]

TASK [dns_caching : Add dnsmasq to network config] ********************************************************************************************************************
[DEPRECATION WARNING]: evaluating production as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see
 CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False
 in ansible.cfg.
ERROR! The requested handler 'restart network manager' was not found in either the main handlers list nor in the listening handlers list
Traceback (most recent call last):
  File "install.py", line 426, 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/lib64/python2.7/subprocess.py", line 542, 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 1