Skip to content
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

Failed to connect to the host via ssh #32

Open
hopewise opened this issue Aug 6, 2016 · 1 comment
Open

Failed to connect to the host via ssh #32

hopewise opened this issue Aug 6, 2016 · 1 comment

Comments

@hopewise
Copy link

hopewise commented Aug 6, 2016

I've noticed that release.yml:

- when: deploy_type == "restart"
  name: stop app
  monit: name="{{ app_name }}" state=stopped

Then, I got this error:

TASK [HashNuke.elixir-stack : stop app] ****************************************
fatal: [x.x.x.x]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
    to retry, use: --limit @playbooks/setup.retry

Please advice

@dmishh
Copy link

dmishh commented Sep 23, 2016

Considering the error message Failed to connect to the host via ssh., most likely your server is unreachable during restart and there is nothing wrong with Ansible or the restart task itself. Check the connection (availability, firewall, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants