# File Encryption Environment Variables error

**URL:** https://travis-ci.community/t/file-encryption-environment-variables-error/9247
**Category:** Xenial
**Created:** [July 5, 2020, 1:41pm UTC](https://travis-ci.community/t/file-encryption-environment-variables-error/9247 "2020-07-05T13:41:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jsparmani](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jsparmani](https://travis-ci.community/u/jsparmani)
#### Post date: [July 5, 2020, 1:41pm UTC](https://travis-ci.community/t/file-encryption-environment-variables-error/9247/1 "2020-07-05T13:41:02Z")

</div>

Link to the build: [Travis Build](https://travis-ci.org/github/developer-student-club-thapar/buying_selling_devops/builds/705109591)

I was using travis file encryption and used the auto encryption method. The encryption was successful but the file isn’t being decrypted as the build fails. I found that after encrypting the files, travis hasn’t added any environment variables to the build settings required for decryption. How do I solve this issue?

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [October 25, 2020, 1:39am UTC](https://travis-ci.community/t/file-encryption-environment-variables-error/9247/2 "2020-10-25T01:39:52Z")

</div>

Follow [https://docs.travis-ci.com/user/encrypting-files/](https://docs.travis-ci.com/user/encrypting-files/) . The `travis encrypt-file` invocation should’ve added secret variables to `.travis.yml` when it says “`storing secure env variables for decryption`”. I suspect you didn’t notice that and have overwritten that change.
