ERROR! Problem running vault password script /root/.vault_pass ([Errno 8] Exec format error). If this is not a script, remove the executable bit from the file

40 views
Skip to first unread message

Jason Yu

unread,
Jan 29, 2019, 6:35:13 PM1/29/19
to Ansible Project
I got the following error when I ran an ansible script from a docker container. It looks like the executable bit needs to be reset. I am using docker for windows which is running on my windows 10 desktop. Could anyone help me with it ?

amazon-ebs: Running local shell script: /tmp/packer-shell828359150
    amazon-ebs:  [WARNING]: Error in vault password file loading (default): Problem running
    amazon-ebs: vault password script /root/.vault_pass ([Errno 8] Exec format error). If this
    amazon-ebs: is not a script, remove the executable bit from the file.
    amazon-ebs: ERROR! Problem running vault password script /root/.vault_pass ([Errno 8] Exec format error). If this is not a script, remove the executable bit from the file.
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...

Dick Visser

unread,
Jan 29, 2019, 6:59:59 PM1/29/19
to ansible...@googlegroups.com
The error is pretty clear.
Vault files are either executable and expected to output the password upon execution, or they’re not executable and then ansible will use the file contents as the password.

You seem to have a vault file that contains the password but that also has the executable bit set for some reason. 
You need to remove that so it’s not treated as an executable any more.  

Dick

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/61adcabf-c169-421f-a78c-eb1e5508db95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages