Hello,
Apologize to put my issue to op’s thread but this is the latest thread of installation failure.
I am trying a new VPS on Contabo and with fresh install I am getting this error.
TASK [redis : Install apt packages] ******************************************************************
task path: /tmp/.bench/playbooks/roles/redis/tasks/main.yml:9
[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.
<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 /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394 `" && echo ansible-tmp-1571578968.2562587-112793184894394="` echo /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394 `" ) && sleep 0'
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-3193tlwiyuy_/tmp1e4dvqec TO /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/ /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/ > /dev/null 2>&1 && sleep 0'
failed: [localhost] (item=['redis-server']) => {
"ansible_loop_var": "item",
"cache_update_time": 1571578706,
"cache_updated": false,
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": true,
"force_apt_get": false,
"install_recommends": null,
"name": [
"redis-server"
],
"only_upgrade": false,
"package": [
"redis-server"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"item": [
"redis-server"
],
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" --force-yes install 'redis-server'' failed: W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"rc": 100,
"stderr": "W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"stderr_lines": [
"W: --force-yes is deprecated, use one of the options starting with --allow instead.",
"E: Sub-process /usr/bin/dpkg returned an error code (1)"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n redis-server\n0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\nNeed to get 0 B/35.4 kB of archives.\nAfter this operation, 172 kB of additional disk space will be used.\nSelecting previously unselected package redis-server.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 83538 files and directories currently installed.)\r\nPreparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...\r\nUnpacking redis-server (5:4.0.9-1ubuntu0.2) ...\r\nSetting up redis-server (5:4.0.9-1ubuntu0.2) ...\r\nJob for redis-server.service failed because a timeout was exceeded.\r\nSee \"systemctl status redis-server.service\" and \"journalctl -xe\" for details.\r\ninvoke-rc.d: initscript redis-server, action \"start\" failed.\r\n* redis-server.service - Advanced key-value store\r\n Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)\r\n Active: activating (auto-restart) (Result: timeout) since Sun 2019-10-20 15:44:22 CEST; 18ms ago\r\n Docs: http://redis.io/documentation,\r\n man:redis-server(1)\r\n Process: 5965 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)\r\n\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 1.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mredis-server.service: Failed with result 'protocol'.\u001b[0m\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start Advanced key-value store.\u001b[0m\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 2.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory\r\ndpkg: error processing package redis-server (--configure):\r\n installed redis-server package post-installation script subprocess returned error exit status 1\r\nProcessing triggers for systemd (237-3ubuntu10.31) ...\r\nProcessing triggers for man-db (2.8.3-2ubuntu0.1) ...\r\nProcessing triggers for ureadahead (0.100.0-21) ...\r\nErrors were encountered while processing:\r\n redis-server\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following NEW packages will be installed:",
" redis-server",
"0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.",
"Need to get 0 B/35.4 kB of archives.",
"After this operation, 172 kB of additional disk space will be used.",
"Selecting previously unselected package redis-server.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 83538 files and directories currently installed.)",
"Preparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...",
"Unpacking redis-server (5:4.0.9-1ubuntu0.2) ...",
"Setting up redis-server (5:4.0.9-1ubuntu0.2) ...",
"Job for redis-server.service failed because a timeout was exceeded.",
"See \"systemctl status redis-server.service\" and \"journalctl -xe\" for details.",
"invoke-rc.d: initscript redis-server, action \"start\" failed.",
"* redis-server.service - Advanced key-value store",
" Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)",
" Active: activating (auto-restart) (Result: timeout) since Sun 2019-10-20 15:44:22 CEST; 18ms ago",
" Docs: http://redis.io/documentation,",
" man:redis-server(1)",
" Process: 5965 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)",
"",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 1.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mredis-server.service: Failed with result 'protocol'.\u001b[0m",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start Advanced key-value store.\u001b[0m",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 2.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory",
"dpkg: error processing package redis-server (--configure):",
" installed redis-server package post-installation script subprocess returned error exit status 1",
"Processing triggers for systemd (237-3ubuntu10.31) ...",
"Processing triggers for man-db (2.8.3-2ubuntu0.1) ...",
"Processing triggers for ureadahead (0.100.0-21) ...",
"Errors were encountered while processing:",
" redis-server"
]
}
RUNNING HANDLER [mariadb : restart mysql] ************************************************************
task path: /tmp/.bench/playbooks/roles/mariadb/handlers/main.yml:2
PLAY RECAP *******************************************************************************************
localhost : ok=41 changed=11 unreachable=0 failed=1 skipped=37 rescued=0 ignored=0
Traceback (most recent call last):
File "install.py", line 413, in <module>
install_bench(args)
File "install.py", line 135, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 327, 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', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=erpnext']' returned non-zero exit status 2
TASK [redis : Install apt packages] ******************************************************************
task path: /tmp/.bench/playbooks/roles/redis/tasks/main.yml:9
[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.
<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 /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394 `" && echo ansible-tmp-1571578968.2562587-112793184894394="` echo /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394 `" ) && sleep 0'
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-3193tlwiyuy_/tmp1e4dvqec TO /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/ /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1571578968.2562587-112793184894394/ > /dev/null 2>&1 && sleep 0'
failed: [localhost] (item=['redis-server']) => {
"ansible_loop_var": "item",
"cache_update_time": 1571578706,
"cache_updated": false,
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": true,
"force_apt_get": false,
"install_recommends": null,
"name": [
"redis-server"
],
"only_upgrade": false,
"package": [
"redis-server"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"item": [
"redis-server"
],
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" --force-yes install 'redis-server'' failed: W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"rc": 100,
"stderr": "W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"stderr_lines": [
"W: --force-yes is deprecated, use one of the options starting with --allow instead.",
"E: Sub-process /usr/bin/dpkg returned an error code (1)"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n redis-server\n0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.\nNeed to get 0 B/35.4 kB of archives.\nAfter this operation, 172 kB of additional disk space will be used.\nSelecting previously unselected package redis-server.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 83538 files and directories currently installed.)\r\nPreparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...\r\nUnpacking redis-server (5:4.0.9-1ubuntu0.2) ...\r\nSetting up redis-server (5:4.0.9-1ubuntu0.2) ...\r\nJob for redis-server.service failed because a timeout was exceeded.\r\nSee \"systemctl status redis-server.service\" and \"journalctl -xe\" for details.\r\ninvoke-rc.d: initscript redis-server, action \"start\" failed.\r\n* redis-server.service - Advanced key-value store\r\n Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)\r\n Active: activating (auto-restart) (Result: timeout) since Sun 2019-10-20 15:44:22 CEST; 18ms ago\r\n Docs: http://redis.io/documentation,\r\n man:redis-server(1)\r\n Process: 5965 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)\r\n\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 1.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.\r\nOct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mredis-server.service: Failed with result 'protocol'.\u001b[0m\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start Advanced key-value store.\u001b[0m\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 2.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...\r\nOct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory\r\ndpkg: error processing package redis-server (--configure):\r\n installed redis-server package post-installation script subprocess returned error exit status 1\r\nProcessing triggers for systemd (237-3ubuntu10.31) ...\r\nProcessing triggers for man-db (2.8.3-2ubuntu0.1) ...\r\nProcessing triggers for ureadahead (0.100.0-21) ...\r\nErrors were encountered while processing:\r\n redis-server\r\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following NEW packages will be installed:",
" redis-server",
"0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.",
"Need to get 0 B/35.4 kB of archives.",
"After this operation, 172 kB of additional disk space will be used.",
"Selecting previously unselected package redis-server.",
"(Reading database ... ",
"(Reading database ... 5%",
"(Reading database ... 10%",
"(Reading database ... 15%",
"(Reading database ... 20%",
"(Reading database ... 25%",
"(Reading database ... 30%",
"(Reading database ... 35%",
"(Reading database ... 40%",
"(Reading database ... 45%",
"(Reading database ... 50%",
"(Reading database ... 55%",
"(Reading database ... 60%",
"(Reading database ... 65%",
"(Reading database ... 70%",
"(Reading database ... 75%",
"(Reading database ... 80%",
"(Reading database ... 85%",
"(Reading database ... 90%",
"(Reading database ... 95%",
"(Reading database ... 100%",
"(Reading database ... 83538 files and directories currently installed.)",
"Preparing to unpack .../redis-server_5%3a4.0.9-1ubuntu0.2_amd64.deb ...",
"Unpacking redis-server (5:4.0.9-1ubuntu0.2) ...",
"Setting up redis-server (5:4.0.9-1ubuntu0.2) ...",
"Job for redis-server.service failed because a timeout was exceeded.",
"See \"systemctl status redis-server.service\" and \"journalctl -xe\" for details.",
"invoke-rc.d: initscript redis-server, action \"start\" failed.",
"* redis-server.service - Advanced key-value store",
" Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)",
" Active: activating (auto-restart) (Result: timeout) since Sun 2019-10-20 15:44:22 CEST; 18ms ago",
" Docs: http://redis.io/documentation,",
" man:redis-server(1)",
" Process: 5965 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)",
"",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 1.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.",
"Oct 20 15:44:22 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;39m\u001b[0;1;31m\u001b[0;1;39mredis-server.service: Failed with result 'protocol'.\u001b[0m",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: \u001b[0;1;31m\u001b[0;1;39m\u001b[0;1;31mFailed to start Advanced key-value store.\u001b[0m",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 2.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Stopped Advanced key-value store.",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: Starting Advanced key-value store...",
"Oct 20 15:44:23 vmi307466.contaboserver.net systemd[1]: redis-server.service: Can't open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory",
"dpkg: error processing package redis-server (--configure):",
" installed redis-server package post-installation script subprocess returned error exit status 1",
"Processing triggers for systemd (237-3ubuntu10.31) ...",
"Processing triggers for man-db (2.8.3-2ubuntu0.1) ...",
"Processing triggers for ureadahead (0.100.0-21) ...",
"Errors were encountered while processing:",
" redis-server"
]
}
RUNNING HANDLER [mariadb : restart mysql] ************************************************************
task path: /tmp/.bench/playbooks/roles/mariadb/handlers/main.yml:2
PLAY RECAP *******************************************************************************************
localhost : ok=41 changed=11 unreachable=0 failed=1 skipped=37 rescued=0 ignored=0
Traceback (most recent call last):
File "install.py", line 413, in <module>
install_bench(args)
File "install.py", line 135, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 327, 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', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=erpnext']' returned non-zero exit status 2
I tried to look for it but nothing seems to help. I removed redis-server manually and started the script again but still the same. I also tried to install redis-server manually but that is also failing with this issue.
apt install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
redis-server is already the newest version (5:4.0.9-1ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up redis-server (5:4.0.9-1ubuntu0.2) ...
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: timeout) since Sun 2019-10-20 15:48:54 CEST; 11ms ago
Docs: http://redis.io/documentation,
man:redis-server(1)
dpkg: error processing package redis-server (--configure):
installed redis-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)