Please help me to understand why this specific task fails with the ssh connection while all the previous tasks are finished with no errors.
- bought new computer
- cloned existing project repo dev/stag/prod all in use, initiated with old comp
- vagrant up (learned a lot in the process, thanks Roots team )
- did set up keys and forwarding
- remote server can connect as web/admin to github repo
- can provision server on both (old,new) local machines
- updated wp to 4.8.2 + some plugins, cleared composer cache from server …
both computers fail with mentioned task with ssh connection while trying to do or connect what exactly? copy/write to tmp_multisite_constants.php?
please help me to understand this, why ssh connection is different from the previous tasks?
ansible-playbook deploy.yml -e “site=staginsite.com env=staging” -vvvv
TASK [deploy : WordPress Installed?] ****************************************************************************************
task path: /Users/username/Dev/stagingsite.com/trellis/roles/deploy/hooks/finalize-before.yml:7
Using module file /usr/local/Cellar/ansible/2.3.2.0_1/libexec/lib/python2.7/site-packages/ansible/modules/commands/command.py
<123.456.789> ESTABLISH SSH CONNECTION FOR USER: web
<123.456.789> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=web -o ConnectTimeout=10 -o ControlPath=/Users/username/.ansible/cp/49a1f75ace 123.456.789 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<123.456.789> (0, '\n{
"changed": true,
"end": "2017-09-27 04:56:28.763097",
"stdout": "",
"cmd": [
"wp",
"core",
"is-installed",
"--skip-plugins",
"--skip-themes",
"--require=/srv/www/stagingsite.com/shared/tmp_multisite_constants.php"
],
"rc": 255,
"start": "2017-09-27 04:56:28.246278",
"stderr": "Error: Cannot connect over SSH using provided configuration.",
"delta": "0:00:00.516819", "invocation": {
"module_args": {
"warn": true,
"executable": null,
"chdir": "/srv/www/stagingsite.com/releases/20170927045432",
"_raw_params": "wp core is-installed --skip-plugins --skip-themes --require=/srv/www/stagingsite.com/shared/tmp_multisite_constants.php",
"removes": null,
"creates": null,
"_uses_shell": false
}
},
"warnings": []
}\n', 'OpenSSH_7.4p1,
LibreSSL 2.5.0
\r\ndebug1: Reading configuration data /Users/username/.ssh/config
\r\ndebug1: /Users/username/.ssh/config line 1: Applying options for 123.456.789
\r\ndebug1: /Users/username/.ssh/config line 13: Applying options for *
\r\ndebug1: Reading configuration data /etc/ssh/ssh_config
\r\ndebug1: auto-mux: Trying existing master
\r\ndebug2: fd 3 setting O_NONBLOCK
\r\ndebug2: mux_client_hello_exchange: master version 4
\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote
\r\ndebug3: mux_client_request_session: entering
\r\ndebug3: mux_client_request_alive: entering
\r\ndebug3: mux_client_request_alive: done pid = 21532
\r\ndebug3: mux_client_request_session: session request sent
\r\ndebug1: mux_client_request_session: master session id: 2
\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe
\r\ndebug2: Received exit status from master 0\r\n')
System info:
Ansible 2.3.2.0; Darwin
Trellis at "Add Vagrant config"
---------------------------------------------------
Error: Cannot connect over SSH using provided configuration.
fatal: [123.456.789]: FAILED! => {
"changed": false,
"cmd": [
"wp",
"core",
"is-installed",
"--skip-plugins",
"--skip-themes",
"--require=/srv/www/stagingsite.com/shared/tmp_multisite_constants.php"
],
"delta": "0:00:00.516819",
"end": "2017-09-27 04:56:28.763097",
"failed": true,
"failed_when_result": true,
"invocation": {
"module_args": {
"_raw_params": "wp core is-installed --skip-plugins --skip-themes --require=/srv/www/stagingsite.com/shared/tmp_multisite_constants.php",
"_uses_shell": false,
"chdir": "/srv/www/stagingsite.com/releases/20170927045432",
"creates": null,
"executable": null,
"removes": null,
"warn": true
}
},
"rc": 255,
"start": "2017-09-27 04:56:28.246278",
"stderr": "Error: Cannot connect over SSH using provided configuration.",
"stderr_lines": [
"Error: Cannot connect over SSH using provided configuration."
],
"stdout": "",
"stdout_lines": []
}
to retry, use: --limit @/Users/username/Dev/stagingsite.com/trellis/deploy.retry
PLAY RECAP ******************************************************************************************************************
123.456.789 : ok=27 changed=12 unreachable=0 failed=1
localhost : ok=0 changed=0 unreachable=0 failed=0
➜ trellis git:(master)