TASK [bench : Install ERPNext to default site] *************************************************************************
task path: /tmp/.bench/playbooks/roles/bench/tasks/setup_erpnext.yml:23
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c âecho ~root && sleep 0â
<127.0.0.1> EXEC /bin/sh -c â( umask 77 && mkdir -p âecho /var/tmp/ansible-tmp-1575452135.2029614-247542400556600
â && echo ansible-tmp-1575452135.2029614-247542400556600=âecho /var/tmp/ansible-tmp-1575452135.2029614-247542400556600
â ) && sleep 0â
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-6080skpb89w_/tmpajyvef7o TO /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c âsetfacl -m u:erpolive:r-x /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/ /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/AnsiballZ_command.py && sleep 0â
<127.0.0.1> EXEC /bin/sh -c âchmod u+x /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/ /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/AnsiballZ_command.py && sleep 0â
<127.0.0.1> EXEC /bin/sh -c âchown erpolive /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/ /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/AnsiballZ_command.py && sleep 0â
<127.0.0.1> EXEC /bin/sh -c âsudo -H -S -n -u erpolive /bin/sh -c â"âââecho BECOME-SUCCESS-sisiiybrhhittzadbknmtyanfbmudfaa ; /usr/bin/python3 /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/AnsiballZ_command.pyâââââ && sleep 0â
<127.0.0.1> EXEC /bin/sh -c ârm -f -r /var/tmp/ansible-tmp-1575452135.2029614-247542400556600/ > /dev/null 2>&1 && sleep 0â
fatal: [localhost]: FAILED! => {
âchangedâ: true,
âcmdâ: [
âbenchâ,
ââsiteâ,
âerpolive.localâ,
âinstall-appâ,
âerpnextâ
],
âdeltaâ: â0:00:03.273924â,
âendâ: â2019-12-04 17:35:39.306340â,
âinvocationâ: {
âmodule_argsâ: {
â_raw_paramsâ: âbench --site erpolive.local install-app erpnextâ,
â_uses_shellâ: false,
âargvâ: null,
âchdirâ: â/home/erpolive/frappe-benchâ,
âcreatesâ: null,
âexecutableâ: null,
âremovesâ: null,
âstdinâ: null,
âstdin_add_newlineâ: true,
âstrip_empty_endsâ: true,
âwarnâ: true
}
},
âmsgâ: ânon-zero return codeâ,
ârcâ: 1,
âstartâ: â2019-12-04 17:35:36.032416â,
âstderrâ: âTraceback (most recent call last):\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 583, in connect\n **kwargs)\n File "/usr/lib/python3.6/socket.py", line 724, in create_connection\n raise err\n File "/usr/lib/python3.6/socket.py", line 713, in create_connection\n sock.connect(sa)\nOSError: [Errno 22] Invalid argument\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main\n "main", mod_spec)\n File "/usr/lib/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in \n main()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main\n click.Group(commands=commands)(prog_name=âbenchâ)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in call\n return self.main(*args, **kwargs)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in main\n rv = self.invoke(ctx)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke\n return callback(*args, **kwargs)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func\n return f(get_current_context(), *args, **kwargs)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/commands/init.py", line 25, in _func\n ret = f(frappe._dict(ctx.obj), *args, **kwargs)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/commands/site.py", line 173, in install_app\n _install_app(app, verbose=context.verbose)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/installer.py", line 50, in install_app\n frappe.clear_cache()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 570, in clear_cache\n frappe.cache_manager.clear_user_cache()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/cache_manager.py", line 42, in clear_user_cache\n clear_global_cache()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/cache_manager.py", line 48, in clear_global_cache\n clear_website_cache()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/website/render.py", line 301, in clear_cache\n for method in frappe.get_hooks("website_clear_cache"):\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 946, in get_hooks\n hooks = _dict(cache().get_value("app_hooks", load_app_hooks))\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 79, in get_value\n val = generator()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 920, in load_app_hooks\n for app in [app_name] if app_name else get_installed_apps(sort=True):\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 884, in get_installed_apps\n installed = json.loads(db.get_global("installed_apps") or "")\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 702, in get_global\n return self.get_default(key, user)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 706, in get_default\n d = self.get_defaults(key, parent)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 724, in get_defaults\n defaults = frappe.defaults.get_defaults(parent)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/defaults.py", line 77, in get_defaults\n globald = get_defaults_for()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/defaults.py", line 204, in get_defaults_for\n where parent = %s order by creation""", (parent,), as_dict=1)\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 122, in sql\n self.connect()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 75, in connect\n self._conn = self.get_connection()\n File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 90, in get_connection\n local_infile = frappe.conf.local_infile)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/init.py", line 94, in Connect\n return Connection(*args, **kwargs)\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 325, in init\n self.connect()\n File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 630, in connect\n raise exc\npymysql.err.OperationalError: (2003, "Canât connect to MySQL server on âlocalhostâ ([Errno 22] Invalid argument)")â,
âstderr_linesâ: [
âTraceback (most recent call last):â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 583, in connectâ,
" **kwargs)â,
" File "/usr/lib/python3.6/socket.py", line 724, in create_connectionâ,
" raise err",
" File "/usr/lib/python3.6/socket.py", line 713, in create_connection",
" sock.connect(sa)â,
âOSError: [Errno 22] Invalid argumentâ,
ââ,
âDuring handling of the above exception, another exception occurred:â,
ââ,
âTraceback (most recent call last):â,
" File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_mainâ,
" "main", mod_spec)â,
" File "/usr/lib/python3.6/runpy.py", line 85, in _run_codeâ,
" exec(code, run_globals)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in â,
" main()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in mainâ,
" click.Group(commands=commands)(prog_name=âbenchâ)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in callâ,
" return self.main(*args, **kwargs)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in mainâ,
" rv = self.invoke(ctx)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invokeâ,
" return _process_result(sub_ctx.command.invoke(sub_ctx))â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invokeâ,
" return _process_result(sub_ctx.command.invoke(sub_ctx))â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invokeâ,
" return ctx.invoke(self.callback, **ctx.params)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invokeâ,
" return callback(*args, **kwargs)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_funcâ,
" return f(get_current_context(), *args, **kwargs)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/commands/init.py", line 25, in _funcâ,
" ret = f(frappe._dict(ctx.obj), *args, **kwargs)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/commands/site.py", line 173, in install_appâ,
" _install_app(app, verbose=context.verbose)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/installer.py", line 50, in install_appâ,
" frappe.clear_cache()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 570, in clear_cacheâ,
" frappe.cache_manager.clear_user_cache()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/cache_manager.py", line 42, in clear_user_cacheâ,
" clear_global_cache()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/cache_manager.py", line 48, in clear_global_cacheâ,
" clear_website_cache()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/website/render.py", line 301, in clear_cacheâ,
" for method in frappe.get_hooks("website_clear_cache"):â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 946, in get_hooksâ,
" hooks = _dict(cache().get_value("app_hooks", load_app_hooks))â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 79, in get_valueâ,
" val = generator()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 920, in load_app_hooksâ,
" for app in [app_name] if app_name else get_installed_apps(sort=True):â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/init.py", line 884, in get_installed_appsâ,
" installed = json.loads(db.get_global("installed_apps") or "")â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 702, in get_globalâ,
" return self.get_default(key, user)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 706, in get_defaultâ,
" d = self.get_defaults(key, parent)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 724, in get_defaultsâ,
" defaults = frappe.defaults.get_defaults(parent)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/defaults.py", line 77, in get_defaultsâ,
" globald = get_defaults_for()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/defaults.py", line 204, in get_defaults_forâ,
" where parent = %s order by creation""", (parent,), as_dict=1)â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 122, in sqlâ,
" self.connect()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/database.py", line 75, in connectâ,
" self._conn = self.get_connection()â,
" File "/home/erpolive/frappe-bench/apps/frappe/frappe/database/mariadb/database.py", line 90, in get_connectionâ,
" local_infile = frappe.conf.local_infile)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/init.py", line 94, in Connectâ,
" return Connection(*args, **kwargs)â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 325, in initâ,
" self.connect()â,
" File "/home/erpolive/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py", line 630, in connectâ,
" raise exc",
âpymysql.err.OperationalError: (2003, "Canât connect to MySQL server on âlocalhostâ ([Errno 22] Invalid argument)")â
],
âstdoutâ: ââ,
âstdout_linesâ:
}
PLAY RECAP *************************************************************************************************************
localhost : ok=80 changed=49 unreachable=0 failed=1 skipped=52 rescued=0 ignored=0