Deploy fails after updating to latest Trellis. I’ve updated trellis for my project and successfully reprovisioned staging server, but deploy fails on copying local files task . Re-running deploy command using -vvvv, prints the following SSH debug output:
TASK: [deploy | Copy project local files] *************************************
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 100 14 0 0 22 0 --:--:-- --:--:-- --:--:-- 22
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 100 14 0 0 23 0 --:--:-- --:--:-- --:--:-- 23
<127.0.0.1> ESTABLISH CONNECTION FOR USER: web
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 100 14 0 0 23 0 --:--:-- --:--:-- --:--:-- 23
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 100 14 0 0 24 0 --:--:-- --:--:-- --:--:-- 24
<127.0.0.1> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/xxxxx/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=web -o ConnectTimeout=10 127.0.0.1 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451685791.32-79872105840475 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451685791.32-79872105840475 && echo $HOME/.ansible/tmp/ansible-tmp-1451685791.32-79872105840475'
fatal: [xx.xxx.xxx.xxx -> 127.0.0.1] => SSH Error: ssh: connect to host 127.0.0.1 port 22: Connection refused
while connecting to 127.0.0.1:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/xxxx/deploy.retry
xx.xxx.xxx.xxx : ok=8 changed=3 unreachable=1 failed=0
localhost : ok=0 changed=0 unreachable=0 failed=0
Any ideas what’s happening here?