# 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

**URL:** <https://forum.ansible.com/t/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/29566>\
**Category:** Ansible Project\
**Tags:** windows, aws\
**Created:** [January 29, 2019, 11:35pm UTC](https://forum.ansible.com/t/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/29566 "2019-01-29T23:35:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Yu](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Jason\_Yu](https://forum.ansible.com/u/Jason_Yu)\
**Post date:** [January 29, 2019, 11:35pm UTC](https://forum.ansible.com/t/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/29566/1 "2019-01-29T23:35:13Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [January 29, 2019, 11:59pm UTC](https://forum.ansible.com/t/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/29566/2 "2019-01-29T23:59:37Z")

</div>

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
