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