# Getting '500 WinRMTransport. \[Errno 61\] Connection refused' with Ubuntu server

**URL:** <https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [December 18, 2014, 1:33pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098 "2014-12-18T13:33:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Daly-Dickson1](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Peter\_Daly-Dickson1](https://forum.ansible.com/u/Peter_Daly-Dickson1)\
**Post date:** [December 18, 2014, 1:33pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098/1 "2014-12-18T13:33:32Z")

</div>

I have a playbook that has been working well for developing locally in a vagrant box and deploying to remote staging environment.

Both are Ubuntu environments.

Today, I fired up a new Ubuntu EC2 instance for the production server.

With just port 22 open in the EC2 security group, running the playbook returns…

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [[rez-inf-sync.linthwaite.com](http://rez-inf-sync.linthwaite.com)] =\> the connection attempt timed out

Allowing all traffic from my IP returns…

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [[rez-inf-sync.linthwaite.com](http://rez-inf-sync.linthwaite.com)] =\> 500 WinRMTransport. [Errno 61] Connection refused

At one stage we considered deploying to the client’s remote Windows server, though it caused too much hassle so we stuck with Ubuntu.

Whilst experimenting with using ansible/Windows I installed pywinrm, which I thought might be causing the above WinRMTransport error.

But with pywinrm uninstalled, I get…

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [[rez-inf-sync.linthwaite.com](http://rez-inf-sync.linthwaite.com)] =\> winrm is not installed

How do I tell ansible there are no Windows servers anywhere in the mix?

I’ve done a lot of research and this group is last resort!

Thanks for your help.

Pete

---

<div class="post-metadata">

**Author:** ![Peter\_Daly-Dickson1](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Peter\_Daly-Dickson1](https://forum.ansible.com/u/Peter_Daly-Dickson1)\
**Post date:** [December 18, 2014, 2:10pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098/2 "2014-12-18T14:10:13Z")

</div>

If it helps, the other EC2 instance in the AWS account, on a separate IP, is a Windows server.

P.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 18, 2014, 2:56pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098/3 "2014-12-18T14:56:40Z")

</div>

sounds like you have connection: winrm somewhere.

---

<div class="post-metadata">

**Author:** ![Peter\_Daly-Dickson](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Peter\_Daly-Dickson](https://forum.ansible.com/u/Peter_Daly-Dickson)\
**Post date:** [December 18, 2014, 7:01pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098/4 "2014-12-18T19:01:58Z")

</div>

Thanks Brian.

I’ll hunt that down.

Cheers

P.

---

<div class="post-metadata">

**Author:** ![Peter\_Daly-Dickson1](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Peter\_Daly-Dickson1](https://forum.ansible.com/u/Peter_Daly-Dickson1)\
**Post date:** [December 18, 2014, 7:27pm UTC](https://forum.ansible.com/t/getting-500-winrmtransport-errno-61-connection-refused-with-ubuntu-server/17098/5 "2014-12-18T19:27:59Z")

</div>

Job done Brian!

[http://note.io/13gKGnW](http://note.io/13gKGnW)

Thanks a million.

cheers

P.
