Sidekiqのバージョンを上げたところ次のようなメッセージが表示され、起動出来なくなりました。
22:32:20 workor.1 | You are connecting to Redis 6.0.16, Sidekiq requires Redis 6.2.0 or greater
現在インストールされているバージョンを確認します。
ledsun@MSI:~/pubannotation►apt show redis (master) 22:33 Package: redis Version: 5:6.0.16-1ubuntu1 Priority: optional Section: universe/database Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Chris Lamb <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 67.6 kB Depends: redis-server (<< 5:6.0.16-1ubuntu1.1~), redis-server (>= 5:6.0.16-1ubuntu1) Homepage: https://redis.io/ Download-Size: 2930 B APT-Manual-Installed: yes APT-Sources: http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages Description: Persistent key-value database with network interface (metapackage) Redis is a key-value database in a similar vein to memcache but the dataset is non-volatile. Redis additionally provides native support for atomically manipulating and querying data structures such as lists and sets. . The dataset is stored entirely in memory and periodically flushed to disk. . This package installs the main redis-server package.
6.0.16です。 最新のRedisをインストールするにはどうしたらいいでしょうか?
公式サイト Install Redis on Linux | Redis に手順が載っていました。 これに従って
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list sudo apt-get update sudo apt-get install redis
を実行します。 再度バージョンを確認します。
ledsun@MSI:~/pubannotation►apt show redis 25.067s (master) 22:38 Package: redis Version: 6:7.0.7-1rl1~jammy1 Priority: optional Section: database Maintainer: Redis Core Team <[email protected]> Installed-Size: 51.2 kB Depends: redis-server (<< 6:7.0.7-1rl1~jammy1.1~), redis-server (>= 6:7.0.7-1rl1~jammy1) Homepage: https://redis.io/ License: unknown Vendor: none Download-Size: 39.3 kB APT-Manual-Installed: yes APT-Sources: https://packages.redis.io/deb jammy/main amd64 Packages Description: Persistent key-value database with network interface (metapackage) Redis is a key-value database in a similar vein to memcache but the dataset is non-volatile. Redis additionally provides native support for atomically manipulating and querying data structures such as lists and sets. . The dataset is stored entirely in memory and periodically flushed to disk. . This package depends on the redis-server package. N: There are 10 additional records. Please use the '-a' switch to see them.
成功しました。 サービスの再起動なんかは特に必要ないみたいです。