Skip to content

Redis Sentinel upgrade fails when coming from 6.0.6 (chris lea repo) #8

@Apollon77

Description

@Apollon77

I have Redis clusters rrunning in lxc containers and all working fine with @chrislea ppa

Now I tried to switch to the official because veryion in Chris's PPA is 6.0.6 still.

Upgrading a Redis only system works fine, Upgrading a system that also installs redis sentinel gives an error dirtectly on upgrade:

Job for redis-sentinel.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status redis-sentinel.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-sentinel, action "start" failed.
* redis-sentinel.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-sentinel.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: protocol) since Tue 2021-05-25 15:06:40 CEST; 5ms ago
       Docs: http://redis.io/documentation,
             man:redis-sentinel(1)
    Process: 2100 ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel.conf (code=exited, status=0/SUCCESS)
   Main PID: 2100 (code=exited, status=0/SUCCESS)
dpkg: error processing package redis-sentinel (--configure):
 installed redis-sentinel package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.6) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 redis-sentinel
E: Sub-process /usr/bin/dpkg returned an error code (1)

The redis-sentinal log actually shows:

148:signal-handler (1621947997) Received SIGTERM scheduling shutdown...
148:signal-handler (1621947997) Received SIGTERM scheduling shutdown...
148:X 25 May 2021 15:06:37.824 # User requested shutdown...
148:X 25 May 2021 15:06:37.824 * Removing the pid file.
148:X 25 May 2021 15:06:37.824 # Sentinel is now ready to exit, bye bye...
2101:X 25 May 2021 15:06:40.603 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2101:X 25 May 2021 15:06:40.603 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=2101, just started
2101:X 25 May 2021 15:06:40.603 # Configuration loaded
2101:signal-handler (1621948000) Received SIGTERM scheduling shutdown...
2101:X 25 May 2021 15:06:40.604 * monotonic clock: POSIX clock_gettime
2101:X 25 May 2021 15:06:40.605 * Running mode=sentinel, port=26379.
2101:X 25 May 2021 15:06:40.605 # Sentinel ID is 3339e57713bd9d0acb32df97e59b1886ca3f6951
2101:X 25 May 2021 15:06:40.605 # +monitor master states-master 192.168.178.128 6380 quorum 2
2101:X 25 May 2021 15:06:40.605 # +monitor master objects-master 192.168.178.129 6379 quorum 2
2101:X 25 May 2021 15:06:40.606 # User requested shutdown...
2101:X 25 May 2021 15:06:40.606 * Removing the pid file.
2101:X 25 May 2021 15:06:40.606 # Sentinel is now ready to exit, bye bye...
2113:X 25 May 2021 15:06:40.827 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2113:X 25 May 2021 15:06:40.827 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=2113, just started
2113:X 25 May 2021 15:06:40.827 # Configuration loaded
2113:X 25 May 2021 15:06:40.828 * monotonic clock: POSIX clock_gettime
2113:X 25 May 2021 15:06:40.829 * Running mode=sentinel, port=26379.
2113:X 25 May 2021 15:06:40.829 # Sentinel ID is 3339e57713bd9d0acb32df97e59b1886ca3f6951
2113:X 25 May 2021 15:06:40.829 # +monitor master states-master 192.168.178.128 6380 quorum 2
2113:X 25 May 2021 15:06:40.829 # +monitor master objects-master 192.168.178.129 6379 quorum 2
2113:signal-handler (1621948090) Received SIGTERM scheduling shutdown...
...

The syslog log shows:

root@redistest1:~# systemctl status redis-sentinel.service
* redis-sentinel.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-sentinel.service; enabled; vendor preset: enabled)
     Active: failed (Result: protocol) since Tue 2021-05-25 15:08:12 CEST; 2min 50s ago
       Docs: http://redis.io/documentation,
             man:redis-sentinel(1)
    Process: 3714 ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel.conf (code=exited, status=0/SUCCESS)
   Main PID: 3714 (code=exited, status=0/SUCCESS)

May 25 15:08:12 redistest1 systemd[1]: redis-sentinel.service: Scheduled restart job, restart counter is at 7.
May 25 15:08:12 redistest1 systemd[1]: Stopped Advanced key-value store.
May 25 15:08:12 redistest1 systemd[1]: redis-sentinel.service: Start request repeated too quickly.
May 25 15:08:12 redistest1 systemd[1]: redis-sentinel.service: Failed with result 'protocol'.
May 25 15:08:12 redistest1 systemd[1]: Failed to start Advanced key-value store.

I tested on two different systems.

And it seems I'm not alone with this: https://stackoverflow.com/questions/67565522/redis-sentinel-not-starting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions