Ansible-vault errors with "Odd-length string"

843 views
Skip to first unread message

Mxx

unread,
Jan 5, 2015, 12:25:09 PM1/5/15
to ansible...@googlegroups.com
I'm running Ansible 1.8.2
I have a vaulted file created on another system. On that system it works without any problems.
However, when I run it on my local system I get the follow error:

$» ansible-vault --debug view vars/vaulted_vars.yml
Vault password:
Traceback (most recent call last):
 
File "/usr/bin/ansible-vault", line 225, in main
    fn
(args, options, parser)
 
File "/usr/bin/ansible-vault", line 172, in execute_view
    this_editor
.view_file()
 
File "/usr/lib/python2.7/site-packages/ansible/utils/vault.py", line 280, in view_file
    dec_data
= this_vault.decrypt(tmpdata)
 
File "/usr/lib/python2.7/site-packages/ansible/utils/vault.py", line 136, in decrypt
    data
= this_cipher.decrypt(data, self.password)
 
File "/usr/lib/python2.7/site-packages/ansible/utils/vault.py", line 545, in decrypt
    data
= unhexlify(data)
TypeError: Odd-length string

ERROR
: Odd-length string
$
»

I tried to manually type in the password or copy-pasting it, but the error still happens.
What is going on here?

Mxx

unread,
Jan 7, 2015, 6:01:50 PM1/7/15
to ansible...@googlegroups.com
Nobody knows anything about this error? :/

rdv...@utulsa.edu

unread,
Sep 29, 2016, 8:37:50 PM9/29/16
to Ansible Project
Try var=binascii.unhexlify(data)
Reply all
Reply to author
Forward
0 new messages