# Redis: Fatal: Can't initialize Background Jobs

**URL:** <https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376>\
**Category:** Bug Reports\
**Tags:** redis\
**Created:** [June 15, 2023, 4:05pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376 "2023-06-15T16:05:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![amatveiev](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@amatveiev](https://discuss.circleci.com/u/amatveiev)\
**Post date:** [June 15, 2023, 4:05pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/1 "2023-06-15T16:05:08Z")

</div>

Dockerized Redis (latest and 6.2 tags) stopped working on a Linux machine with ‘ubuntu-2004:202010-01’ image.  
**Error** :  
`WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.`  
`Fatal: Can't initialize Background Jobs.`

I tried rerunning with SSH and modifying `/etc/sysctl.conf` as the error suggests, but got ‘Permission denied’ even with sudo.

I was able to make Redis work by pinning the version (tag) to 6.2.6. It still produces the same warning message, but doesn’t fail.

Can CircleCI do anything about it?

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [June 16, 2023, 9:36am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/2 "2023-06-16T09:36:01Z")

</div>

Changing sysctl.conf will not work anyway as it needs the system to be rebooted, which would just cause the original image and values to be reloaded.

What happened when you tried the sysctl command?

---

<div class="post-metadata">

**Author:** ![amatveiev](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@amatveiev](https://discuss.circleci.com/u/amatveiev)\
**Post date:** [June 16, 2023, 11:10am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/3 "2023-06-16T11:10:05Z")

</div>

I didn’t try to run `sysctl vm.overcommit_memory=1` as I thought it would have no effect without modifying `/etc/sysctl.conf`. Now that you asked I see that it’s an alternative. I’ve tried it just now - the warning message disappeared, but the error persists:

> 1:C 16 Jun 2023 11:06:21.919 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo  
> 1:C 16 Jun 2023 11:06:21.919 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started  
> 1:C 16 Jun 2023 11:06:21.919 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf  
> 1:M 16 Jun 2023 11:06:21.919 \* monotonic clock: POSIX clock\_gettime  
> 1:M 16 Jun 2023 11:06:21.921 \* Running mode=standalone, port=6379.  
> 1:M 16 Jun 2023 11:06:21.921 # Server initialized  
> 1:M 16 Jun 2023 11:06:21.921 # **Fatal: Can’t initialize Background Jobs**.

---

<div class="post-metadata">

**Author:** ![J4CKVVH173](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/j4ckvvh173/32/33213_2.png) [@J4CKVVH173](https://discuss.circleci.com/u/J4CKVVH173)\
**Post date:** [June 16, 2023, 11:24am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/4 "2023-06-16T11:24:47Z")

</div>

I have the similar problem plus I got the warning  
`WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.`

I’ve tried to clean docker images, volumes, etc and also i’ve tried rebooting the machine and updating the version from 6 to 7 and it still does not work.

magic

---

<div class="post-metadata">

**Author:** ![Kevinello](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kevinello/32/33214_2.png) [@Kevinello](https://discuss.circleci.com/u/Kevinello)\
**Post date:** [June 16, 2023, 11:34am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/5 "2023-06-16T11:34:21Z")

</div>

Same here, but it seems that this bug has something to do with the machine itself, and I don’t have this problem on my other machine. 🤒

---

<div class="post-metadata">

**Author:** ![J4CKVVH173](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/j4ckvvh173/32/33213_2.png) [@J4CKVVH173](https://discuss.circleci.com/u/J4CKVVH173)\
**Post date:** [June 16, 2023, 11:42am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/6 "2023-06-16T11:42:25Z")

</div>

Yeah yeah, exactly.  
I’ve installed Redis on the machine without Docker and it works fine.

---

<div class="post-metadata">

**Author:** ![J4CKVVH173](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/j4ckvvh173/32/33213_2.png) [@J4CKVVH173](https://discuss.circleci.com/u/J4CKVVH173)\
**Post date:** [June 16, 2023, 12:27pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/7 "2023-06-16T12:27:47Z")

</div>

I solved the problem for. I’ve runned update and upgrade on my host and rebooted it. After this actions tho command `docker run --restart=always -d -p 6399:6399 redis redis-server` worked.

---

<div class="post-metadata">

**Author:** ![ggeser](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ggeser/32/33216_2.png) [@ggeser](https://discuss.circleci.com/u/ggeser)\
**Post date:** [June 16, 2023, 1:43pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/8 "2023-06-16T13:43:17Z")

</div>

Faced the same problem today, redis in docker container “FROM redis:6”. It installs redis 6.12… . Changing to the specific version “FROM redis:6.2.6” solved my problem.

---

<div class="post-metadata">

**Author:** ![zhengf2](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/zhengf2/32/33220_2.png) [@zhengf2](https://discuss.circleci.com/u/zhengf2)\
**Post date:** [June 16, 2023, 3:03pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/9 "2023-06-16T15:03:06Z")

</div>

Similar to ggeser, we were running latest version 7.0.11 and hit

```auto
Fatal: Can't initialize Background Jobs.

```

Downgrading to 7.0.10 sorted out any issues.

Saw the same broken state on 6.2.12 vs 6.2.11.

6.2.12 and 7.0.11 were both pushed yesterday so I guess something new was introduced.

---

<div class="post-metadata">

**Author:** ![Naghal](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/naghal/32/33251_2.png) [@Naghal](https://discuss.circleci.com/u/Naghal)\
**Post date:** [June 19, 2023, 6:41pm UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/10 "2023-06-19T18:41:32Z")

</div>

Had the same error, downgrading to 6.2.6 solved the error.

---

<div class="post-metadata">

**Author:** ![majic31](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/majic31/32/35757_2.png) [@majic31](https://discuss.circleci.com/u/majic31)\
**Post date:** [October 29, 2024, 1:13am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/11 "2024-10-29T01:13:22Z")

</div>

Find a solution: docker run just add --privileged.

---

<div class="post-metadata">

**Author:** ![brianbrix](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/brianbrix/32/36353_2.png) [@brianbrix](https://discuss.circleci.com/u/brianbrix)\
**Post date:** [May 7, 2025, 9:16am UTC](https://discuss.circleci.com/t/redis-fatal-cant-initialize-background-jobs/48376/12 "2025-05-07T09:16:36Z")

</div>

You can try using the “-alpine” images .. Solved my issue … like redis:8.0.0-alpine
