carlalexander / debops-wordpress

Your superpowered WordPress server in three commands.
GNU General Public License v3.0
440 stars 65 forks source link

Shared connection closed @ TASK [debops.ntp : Manage systemd-timesyncd state] #140

Closed ingeniarts closed 6 years ago

ingeniarts commented 7 years ago

Hey, @ the 'debops' step, everything was running smooth until I got stuck (for a while now) here:

TASK [debops.ntp : Install required packages] ** task path: /root/.local/share/debops/debops-playbooks/roles/debops.ntp/tasks/install.yml:13

TASK [debops.ntp : Manage systemd-timesyncd state] ***** task path: /root/.local/share/debops/debops-playbooks/roles/debops.ntp/tasks/install.yml:23 Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/core/system/systemd.py

ESTABLISH SSH CONNECTION FOR USER: None SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r wordpress.test.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490 `" && echo ansible-tmp-1486513647.71-124362139921490="` echo $HOME/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490 `" ) && sleep 0'"'"'' PUT /tmp/tmp2MzTbh TO /root/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490/systemd.py SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[wordpress.test.com]' ESTABLISH SSH CONNECTION FOR USER: None SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r wordpress.test.com '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490/ /root/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490/systemd.py && sleep 0'"'"'' ESTABLISH SSH CONNECTION FOR USER: None SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt wordpress.test.com '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-tsreajqdsjrsbacdufbdaqzkyxpaxnal; /usr/bin/python /root/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490/systemd.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1486513647.71-124362139921490/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' fatal: [wordpress.test.com]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_args": { "enabled": true, "name": "systemd-timesyncd", "state": "started" }, "module_name": "service" }, "module_stderr": "Shared connection to wordpress.test.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_nWESPy/ansible_module_systemd.py\", line 227, in \r\n from ansible.module_utils.service import sysv_exists, sysv_is_enabled, fail_if_missing\r\nImportError: cannot import name sysv_exists\r\n", "msg": "MODULE FAILURE" } to retry, use: --limit @/root/.local/share/debops/debops-playbooks/playbooks/site.retry PLAY RECAP ********************************************************************* wordpress.test.com : ok=141 changed=0 unreachable=0 failed=1 // Why am I losing connection at this specific step? I tried to install https://github.com/debops/ansible-ntp directly on the server but it did not work. Is there a workaround? Tx
carlalexander commented 7 years ago

What's the operating system of the server?

ingeniarts commented 7 years ago

Ubuntu 16.04 Server (64 bits)

host is OVH VPS SSD 1

ingeniarts commented 7 years ago

"debops" TASK [debops.ferm : Restart ferm] also resulted in a connection lost, but I could manually restart ferm on the server side.

My guess is I could solve the TASK [debops.ntp : Manage systemd-timesyncd state] problem by doing the same. Could you guide me here?

carlalexander commented 7 years ago

I'll need to get a test server on OVH to see if there's an issue. I built some test machines last night on Digital Ocean and didn't run into any issues.

carlalexander commented 6 years ago

I'm closing this due to inactivity. If you're still getting this issue, let me know @ingeniarts. I don't have OVH as a high priority for the hosts I want to support, but it shouldn't be a problem. I've used this project with small hosting providers before.