Describe the bug

The service redis-sentinel does not start after upgrading redis-sentinel from 6:7.4.3-1rl1~jammy1 to 6:8.0.0-1rl1~jammy1. Package is missing dependency. The system in use is Ubuntu 24.04 with the repo https://packages.redis.io/deb activated.

To reproduce

apt-get upgrade

Expected behavior

The service should start again.

Additional information

The symlinks changed in between the versions.

# Version 6:7.4.3-1rl1~jammy1
ls -lh /usr/bin/redis-*
-rwxr-xr-x 1 root root 928K Apr 24 16:10 /usr/bin/redis-benchmark
-rwxr-xr-x 1 root root 3,5M Apr 24 16:10 /usr/bin/redis-check-aof
-rwxr-xr-x 1 root root 3,5M Apr 24 16:10 /usr/bin/redis-check-rdb
-rwxr-xr-x 1 root root 1,3M Apr 24 16:10 /usr/bin/redis-cli
lrwxrwxrwx 1 root root   15 Apr 24 16:10 /usr/bin/redis-sentinel -> redis-check-rdb

# Version 6:8.0.0-1rl1~jammy1
ls -lh /usr/bin/redis-*
-rwxr-xr-x 1 root root 932K Mai  4 09:10 /usr/bin/redis-benchmark
lrwxrwxrwx 1 root root   12 Mai  4 09:10 /usr/bin/redis-check-aof -> redis-server
lrwxrwxrwx 1 root root   12 Mai  4 09:10 /usr/bin/redis-check-rdb -> redis-server
-rwxr-xr-x 1 root root 1,3M Mai  4 09:10 /usr/bin/redis-cli
lrwxrwxrwx 1 root root   12 Mai  4 09:10 /usr/bin/redis-sentinel -> redis-server

The redis-sentinel package should declare a dependency on redis-server. After installing redis-server, everything worked as expected. However, I rolled back the systems because it's unclear what the intended or expected setup is.

Comment From: adamiBs

Hi thanks for raising the issue.

Which CPU architecture are you using?

Comment From: moerkey

AMD64

Comment From: wokenlex

on Debian no redis service in init-d. Was very surprised.

Comment From: moerkey

Out of curiosity — is the simple fix just to install redis-server, resolving the missing dependency when someone installs redis-sentinel, or is a separate binary intended?

Comment From: moerkey

Nearly 4 month. Would be nice to get a short answer. Thank you in advance.

Comment From: Nklya

Out of curiosity — is the simple fix just to install redis-server, resolving the missing dependency when someone installs redis-sentinel, or is a separate binary intended?

I'm not a redis maintainer, but yes, you should install redis-sentinel together with redis-server package. I also recommend to add redis-tools to have redis-cli for testing.

P.S. source: I'm supporting internal Ansible automation to deploy redises and sentinels.

Comment From: moerkey

Here is what I do currently.

# Server + Sentinel install
apt-get install redis-server redis-tools redis-sentinel


# Sentinel only install
apt-get install redis-server redis-tools redis-sentinel
systemctl stop redis-server.service
systemctl disable redis-server.service