Compose up fail - Redis container not able to save

Hi, I do Greenbone Community Containers 22.4 - Greenbone Community Documentation

and when running

docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d

I get

8:C 12 Jun 2023 06:51:34.136 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
8:C 12 Jun 2023 06:51:34.136 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=8, just started
8:C 12 Jun 2023 06:51:34.136 # Configuration loaded
8:M 12 Jun 2023 06:51:34.137 * monotonic clock: POSIX clock_gettime
8:M 12 Jun 2023 06:51:34.152 * Running mode=standalone, port=0.
8:M 12 Jun 2023 06:51:34.154 # Server initialized
8:M 12 Jun 2023 06:51:34.155 * The server is now ready to accept connections at /run/redis/redis.sock
8:M 12 Jun 2023 06:52:35.024 * 10000 changes in 60 seconds. Saving...
8:M 12 Jun 2023 06:52:35.028 * Background saving started by pid 13
13:C 12 Jun 2023 06:52:35.029 # Failed opening the temp RDB file temp-13.rdb (in server root dir /) for saving: Permission denied
8:M 12 Jun 2023 06:52:35.129 # Background saving error
8:M 12 Jun 2023 06:52:41.052 * 10000 changes in 60 seconds. Saving...
8:M 12 Jun 2023 06:52:41.057 * Background saving started by pid 14
14:C 12 Jun 2023 06:52:41.057 # Failed opening the temp RDB file temp-14.rdb (in server root dir /) for saving: Permission denied
8:M 12 Jun 2023 06:52:41.158 # Background saving error
8:M 12 Jun 2023 06:52:47.016 * 10000 changes in 60 seconds. Saving...
8:M 12 Jun 2023 06:52:47.022 * Background saving started by pid 15
15:C 12 Jun 2023 06:52:47.028 # Failed opening the temp RDB file temp-15.rdb (in server root dir /) for saving: Permission denied

on

docker ps
CONTAINER ID   IMAGE                            COMMAND                  CREATED         STATUS         PORTS                                       NAMES
84de718a0d0d   greenbone/gsa:stable             "/usr/local/bin/entr…"   4 minutes ago   Up 3 minutes   0.0.0.0:9392->80/tcp, :::9392->80/tcp       greenbone-community-edition-gsa-1
a4577b61fcd8   greenbone/gvmd:stable            "/usr/local/bin/entr…"   4 minutes ago   Up 3 minutes                                               greenbone-community-edition-gvmd-1
289a06ae5888   greenbone/ospd-openvas:stable    "/usr/local/bin/entr…"   4 minutes ago   Up 9 seconds                                               greenbone-community-edition-ospd-openvas-1
237d0e5ecb21   greenbone/notus-scanner:stable   "/usr/local/bin/entr…"   4 minutes ago   Up 3 minutes                                               greenbone-community-edition-notus-scanner-1
b4443bee97cb   greenbone/pg-gvm:stable          "/usr/local/bin/entr…"   4 minutes ago   Up 4 minutes                                               greenbone-community-edition-pg-gvm-1
f694a6eb719e   greenbone/mqtt-broker            "/bin/sh -c 'mosquit…"   4 minutes ago   Up 3 minutes   0.0.0.0:1883->1883/tcp, :::1883->1883/tcp   greenbone-community-edition-mqtt-broker-1
7b4e34cddab4   greenbone/redis-server           "/bin/sh -c 'rm -f /…"   4 minutes ago   Up 4 minutes                                               greenbone-community-edition-redis-server-1

I get such error on clean AWS EC2 instance of Debian/Ubuntu 22 and 24/AWS Linux AMI 2 or clean VPS Ubuntu 22.04.2 LTS instance

I’ve tried binding /data dir as such

redis-server:
    image: greenbone/redis-server
    restart: on-failure
    volumes:
      - redis_socket_vol:/run/redis/
      - "./data:/data"

I’ve tried running on host and restarting docker engine with sudo echo 1 > /proc/sys/vm/overcommit_memory Redis FAQ | Redis

Should be fixed with https://github.com/greenbone/greenbone-container-images/pull/8

1 Like