# Ansible or python got messed up

**URL:** <https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684>\
**Category:** Ansible Developer\
**Created:** [October 15, 2013, 6:22pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684 "2013-10-15T18:22:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_G](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Post date:** [October 15, 2013, 6:22pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684/1 "2013-10-15T18:22:09Z")

</div>

Hi,

I’m running Ansible to manage our nodes from a shared server, for some reason every time I run Ansible it shows the bellow output on every task execution. As far as I know there were no updates in the system regarding the python version and that doesn’t seem to be related with a specific version of Ansible but it’s happening on the current devel and other stable versions that were working fine.

“”"

Traceback (most recent call last):  
File “/home/nicolasg/ansible/lib/ansible/runner/connection\_plugins/paramiko\_ssh.py”, line 319, in close  
self.ssh.load\_system\_host\_keys()  
File “/usr/lib/python2.6/site-packages/paramiko/client.py”, line 152, in load\_system\_host\_keys  
self.\_system\_host\_keys.load(filename)  
File “/usr/lib/python2.6/site-packages/paramiko/hostkeys.py”, line 155, in load  
e = HostKeyEntry.from\_line(line)  
File “/usr/lib/python2.6/site-packages/paramiko/hostkeys.py”, line 67, in from\_line  
key = RSAKey(data=base64.decodestring(key))  
File “/usr/lib64/python2.6/base64.py”, line 321, in decodestring  
return binascii.a2b\_base64(s)  
Error: Incorrect padding  
“”"

I have also tried reverting the code back to an old state but that didn’t work either… any clue what’s going wrong ?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 15, 2013, 6:24pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684/2 "2013-10-15T18:24:24Z")

</div>

So this is attempting to read your host keys and is finding them confused.

Can you SSH normally using those keys/etc?

---

<div class="post-metadata">

**Author:** ![Nicolas\_G](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Post date:** [October 15, 2013, 6:31pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684/3 "2013-10-15T18:31:52Z")

</div>

yes I can ssh using the keys like this :

ssh-agent bash

ssh-add ~/.ssh/login-key

---

<div class="post-metadata">

**Author:** ![AnsiNoob](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@AnsiNoob](https://forum.ansible.com/u/AnsiNoob)\
**Post date:** [October 19, 2016, 2:58pm UTC](https://forum.ansible.com/t/ansible-or-python-got-messed-up/13684/4 "2016-10-19T14:58:33Z")

</div>

Hi

Did you find a solution to this issue?
