Hi,
I’m getting a new error when trying to provision the remote server. I mention that I can connect via ssh manually but using ansible I get this error then for a period of time can’t connect with ssh manually.
[WARNING]: Unhandled error in Python interpreter discovery for host
104.248.129.27: Failed to connect to the host via ssh: OpenSSH_8.1p1, LibreSSL
2.7.3 debug1: Reading configuration data /Users/marius/.ssh/config debug1:
/Users/marius/.ssh/config line 5: Applying options for * debug1: Reading
configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 47:
Applying options for * debug2: resolve_canonicalize: hostname 104.248.129.27
is address debug1: auto-mux: Trying existing master debug1: Control socket
"/Users/marius/.ansible/cp/3b57dd76c8" does not exist debug2:
ssh_connect_direct debug1: Connecting to 104.248.129.27 [104.248.129.27] port
22. debug2: fd 3 setting O_NONBLOCK debug1: connect to address 104.248.129.27
port 22: Connection refused ssh: connect to host 104.248.129.27 port 22:
Connection refused
Using module file /Users/marius/Projects/lightstock-next/trellis/.trellis/virtualenv/lib/python3.9/site-packages/ansible/modules/setup.py
Pipelining is enabled.
<104.248.129.27> ESTABLISH SSH CONNECTION FOR USER: lightstock
<104.248.129.27> 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="lightstock"' -o ConnectTimeout=10 -o 'ControlPath="/Users/marius/.ansible/cp/3b57dd76c8"' 104.248.129.27 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=ojcowqnmiphnknbqjsxscrkqafchrnnr] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ojcowqnmiphnknbqjsxscrkqafchrnnr ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<104.248.129.27> ssh_retry: attempt: 1, ssh return code is 255. cmd ([b'ssh', b'-vvv', b'-o', b'ForwardAgent=yes', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'User="lightstock"', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/Users/marius/.ansible/cp/3b57dd76c8"', b'104.248.129.27', b'/bin/sh -c \'sudo -H -S -p "[sudo via ansible, key=ojcowqnmiphnknbqjsxscrkqafchrnnr] password:" -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-ojcowqnmiphnknbqjsxscrkqafchrnnr ; /usr/bin/python\'"\'"\' && sleep 0\'']...), pausing for 0 seconds
<104.248.129.27> 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="lightstock"' -o ConnectTimeout=10 -o 'ControlPath="/Users/marius/.ansible/cp/3b57dd76c8"' 104.248.129.27 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=ojcowqnmiphnknbqjsxscrkqafchrnnr] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ojcowqnmiphnknbqjsxscrkqafchrnnr ; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
System info:
Ansible 2.12.7; Darwin
Trellis version (per changelog): "Add built-in fail2ban filters"
---------------------------------------------------
Data could not be sent to remote host "104.248.129.27". Make sure this host
can be reached over ssh: OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/marius/.ssh/config
debug1: /Users/marius/.ssh/config line 5: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug2: resolve_canonicalize: hostname 104.248.129.27 is address
debug1: auto-mux: Trying existing master
debug1: Control socket "/Users/marius/.ansible/cp/3b57dd76c8" does not exist
debug2: ssh_connect_direct
debug1: Connecting to 104.248.129.27 [104.248.129.27] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address 104.248.129.27 port 22: Connection refused
ssh: connect to host 104.248.129.27 port 22: Connection refused
fatal: [104.248.129.27]: UNREACHABLE! => {
"changed": false,
"unreachable": true
}
Deploy works as it should but if I try to provision the server before then I can’t deploy for a period of time then it works.
Data could not be sent to remote host "104.248.129.27". Make sure this host
can be reached over ssh: ssh: connect to host 104.248.129.27 port 22:
Connection refused
fatal: [104.248.129.27]: UNREACHABLE! => {"changed": false, "unreachable": true}
macOS Catalina Version: 10.15.7
Python 3.9.13