# The SECRET\_KEY setting must not be empty

**URL:** <https://travis-ci.community/t/the-secret-key-setting-must-not-be-empty/12655>\
**Category:** Deployment\
**Created:** [February 4, 2022, 7:47pm UTC](https://travis-ci.community/t/the-secret-key-setting-must-not-be-empty/12655 "2022-02-04T19:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HILLBILLYHeisT](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hillbillyheist/32/7476_2.png) [@HILLBILLYHeisT](https://travis-ci.community/u/HILLBILLYHeisT)\
**Post date:** [February 4, 2022, 7:47pm UTC](https://travis-ci.community/t/the-secret-key-setting-must-not-be-empty/12655/1 "2022-02-04T19:47:19Z")

</div>

we have a project using 20 concurrent builds, and this is holding up the deploy process… any ideas? we get an error from the build logs that say “setting must not be empty” but I’ve already imported my environments over…

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [February 4, 2022, 7:48pm UTC](https://travis-ci.community/t/the-secret-key-setting-must-not-be-empty/12655/2 "2022-02-04T19:48:52Z")

</div>

This is pretty vague,

From the sounds of it, you’re using Docker Compose as well as this error is seen sometimes on Docker Compose builds. Can I see your `.travis.yml`?

I think the fix here is to add the environment variable `SECRET_KEY` to your Docker Compose environment. Try doing that.
