# Redis template throws "permission denied" error

**URL:** <https://meta.discourse.org/t/redis-template-throws-permission-denied-error/222787>\
**Category:** Self-hosting\
**Created:** [April 1, 2022, 8:54am UTC](https://meta.discourse.org/t/redis-template-throws-permission-denied-error/222787 "2022-04-01T08:54:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)\
**Post date:** [April 1, 2022, 8:54am UTC](https://meta.discourse.org/t/redis-template-throws-permission-denied-error/222787/1 "2022-04-01T08:54:53Z")

</div>

When using the redis.template.yml on rebuild in a setup with separate containers (web\_only, data), i see

```plaintext
...
/.launcher rebuild web_only

I, [2022-04-01T06:14:05.621316 #1] INFO -- : End of custom commands
I, [2022-04-01T06:14:05.621524 #1] INFO -- : Terminating async processes
I, [2022-04-01T06:14:05.621574 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 29
29:signal-handler (1648793645) Received SIGTERM scheduling shutdown...
29:M 01 Apr 2022 06:14:05.643 # User requested shutdown...
29:M 01 Apr 2022 06:14:05.643 * Saving the final RDB snapshot before exiting.
29:M 01 Apr 2022 06:14:05.896 # Failed opening the RDB file dump.rdb (in server root dir /) for saving: Permission denied
29:M 01 Apr 2022 06:14:05.896 # Error trying to save the DB, can't exit.
29:M 01 Apr 2022 06:14:05.896 # SIGTERM received but errors trying to shut down the server, check the logs for more information
I, [2022-04-01T06:14:15.622606 #1] INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:29 did not terminate cleanly, forcing termination!

```

---

_[View the full topic](https://meta.discourse.org/t/redis-template-throws-permission-denied-error/222787)._
