-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Problem: SSH Connection refused after update to 2.13.10 #2892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I was able to narrow it down at least a little bit. |
Hi @dzaegr do you see any errors in Semaphore log?:
|
Hi @dzaegr Only important difference which I found by code between 2.13.0 and 2.13.1 is line in In 2.13.0:
In 2.13.1:
Can you manually add this line ( |
Only some errors regarding
Does not work unfortunately. But I provide this option as an environment variable anyway, so I guess this should not make a difference to Ansible. I also tried modifying the ansible.cfg file and omitting the environment variable, but this doesn't work either. |
I just tried version 2.13.1, with and without |
Hi @dzaegr The issue is actual? |
Hi @fiftin, I will try on our live server, when I find the time, but for now I think the issue is resolved. Thanks for your help! :) |
I'd also experienced a SSH connection problem, which seems to be introduced with any of the versions between v2.13.0 and v2.13.14:
After dropping lines in the sed -i '/^\[ssh_connection\]/,/^$/d' /etc/ansible/ansible.cfg I'll try to investigate further tomorrow... |
Issue
Hi,
after updating to latest (2.13.10, from 2.10.22) using Docker (with compose) I am receiving SSH Connection Refused errors when running Ansible Task Templates.
Before the update all the Playbooks ran well.
I checked the Key Store, and the inventory. All configured correctly, I manually checked the SSH Key, it still works. I tried setting up a new project, replicating the settings, still not working.
I'm running out of ideas.
Any configuration updates I might have missed? In the documentation, I could not find any hints, except the removal of SSH Option Overwriting, which I didn't use before, so this should not be the issue.
After I got the error, I also checked the docker hub page, where I saw the latest version was updated. I tried updating to that as well, still getting the issue.
I also checked the SSH logs on the target server, which actually showed successful connection attempts, but it also stated that the connection was closed by the client.
Another thing to add:
It also only seems to impact tasks which would lead to "changed" status.
"skipped" and "ok" tasks in the playboook actually don't produce the error.
Any ideas?
Impact
Ansible (task execution)
Installation method
Docker
Database
MySQL
Browser
No response
Semaphore Version
2.13.10 and later 2.13.12
Ansible Version
Logs & errors
10:38:26 PM
msg: 'Failed to connect to the host via ssh: ssh: connect to host HOSTNAME port 22: Connection refused'
Manual installation - system information
No response
Configuration
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: