Current Redis Server Image keeps restarting

Hallo,
Since last update on Monday, the Redis Server keeps restarting with following message:
redis-server_1 | 7:C 11 Aug 2023 06:54:58.451 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-server_1 | 7:C 11 Aug 2023 06:54:58.451 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=7, just started
redis-server_1 | 7:C 11 Aug 2023 06:54:58.451 # Configuration loaded
redis-server_1 | 7:M 11 Aug 2023 06:54:58.452 * monotonic clock: POSIX clock_gettime
redis-server_1 | 7:M 11 Aug 2023 06:54:58.454 * Running mode=standalone, port=0.
redis-server_1 | 7:M 11 Aug 2023 06:54:58.454 # Server initialized
redis-server_1 | 7:M 11 Aug 2023 06:54:58.455 # WARNING Your system is configured to use the ‘xen’ clocksource which might lead to degraded performance. Check the result of the [slow-clocksource] system check: run ‘redis-server --check-system’ to check if the system’s clocksource isn’t degrading performance.
redis-server_1 | 7:M 11 Aug 2023 06:54:58.455 # Fatal: Can’t initialize Background Jobs.

OS:
PRETTY_NAME=“Debian GNU/Linux 10 (buster)”
NAME=“Debian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster

Docker Version:
Docker version 18.09.1, build 4c52b90

Greatings

I think this is same as previous issue. See:

Unfortunately not. I’ve already done the described steps with no success.

This seems to be the error to look for. What OS are you running the containers on?

You can find a discussion on the Redi GitHub page here. Perhaps a mismatch between Redis version and Docker. The instructions at the link should point you in the right direction or else there are other discussions on line regarding this Redis failure.

Docker is running on Debian10 Buster. The Version of Docker is 18.09.1.

I’ve already saw the discussion and checked it on my side.

I’m having the same issue. I’m running on Ubuntu 22.04 and just did the standard apt update && apt dist-upgrade -y. Then updated all the docker images. When I look ate the redis logs it show a permissions error.

rm: cannot remove '/run/redis/redis.sock': Permission denied

This is another issue and a solution is described here

Redis Server keeps restarting rm: cannot remove‘/run/redis/redis.sock’: Permission denied

Under some circumstances the Unix Domain Socket of the redis server has got wrong permissions. To fix this issue it is required to shutdown the redis-server and ospd-openvas containers and remove the redis_socket_vol docker volume. The volume can be removed safely because it gets re-created on the next startup.

Re-create redis server socket volume

docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ rm -s -f redis-server ospd-openvas docker volume rm greenbone-community-edition_redis_socket_vol docker-compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition \ up -d

2 Likes

I’ve upgrade the OS to Debian 11. Afterwards the Redis comes up as expected. It seems to be an incompatibility between the Docker Image an the underlining OS.

2 Likes

Thank you!

1 Like