# Cannot decrypt on ubuntu

**URL:** <https://forum.ansible.com/t/cannot-decrypt-on-ubuntu/30936>\
**Category:** Ansible Project\
**Tags:** ubuntu, aws\
**Created:** [August 1, 2019, 10:41pm UTC](https://forum.ansible.com/t/cannot-decrypt-on-ubuntu/30936 "2019-08-01T22:41:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [August 1, 2019, 10:41pm UTC](https://forum.ansible.com/t/cannot-decrypt-on-ubuntu/30936/1 "2019-08-01T22:41:44Z")

</div>

I am working with a project on a new ubuntu installation. On osx I can use ansible-vault correctly, but on ubuntu I always get

`(ansible-2.8) ansible❯ ansible-vault -v --vault-password-file=~/.ansible/vault-password view inventory/aws/ops/group_vars/all/vault_ops.yml Using /home/bkaplan/si/ops/ansible/ansible.cfg as config file ERROR! Decryption failed (no vault secrets were found that could decrypt) on inventory/aws/ops/group_vars/all/vault_ops.yml for inventory/aws/ops/group_vars/all/vault_ops.yml`

The password file is identical to osx, same for the config.cfg (it’s from git).

The password has umask of 0600

`~/.ansible❯ ll total 12K drwx------ 2 bkaplan bkaplan 4.0K Jul 8 16:22 cp drwx------ 2 bkaplan bkaplan 4.0K Aug 1 15:35 tmp -rw------- 1 bkaplan bkaplan 25 Jun 17 14:05 vault-password`

Same version of ansible on both systems, 2.8.2

Both the password file and the file being decrypted are ascii

`  
~/.ansible❯ file vault-password  
vault-password: ASCII text

(ansible-2.8) ansible❯ file inventory/aws/ops/group\_vars/all/vault\_ops.yml  
inventory/aws/ops/group\_vars/all/vault\_ops.yml: ASCII text  
`

I have searched and searched, this is not an uncommon error. But I have not found any clues as the problem I am having.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 1, 2019, 10:58pm UTC](https://forum.ansible.com/t/cannot-decrypt-on-ubuntu/30936/2 "2019-08-01T22:58:28Z")

</div>

Running file command doesn't prove anything.  
But if you do a md5sum of the file both places would ensure that they are equal.

---

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [August 2, 2019, 3:31am UTC](https://forum.ansible.com/t/cannot-decrypt-on-ubuntu/30936/3 "2019-08-02T03:31:31Z")

</div>

I was running `file` just to show the they were ascii.

But thanks, because I _thought_ the files where the same. Indeed I was sure. But of course they are not.
