redis / redis-snap

A repository for snap packaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started with Redis

rptb1 opened this issue · comments

I tried to follow https://redis.io/docs/getting-started/ on Ubuntu 20.04.5.

snap install redis went fine, but the next step in the doc says "The first thing to do in order to check if Redis is working properly is sending a PING command using redis-cli."

But, following the doc exactly:

$ redis-cli
/bin/sh: 38: redis-cli: not found

Some digging in the snap metadata revealed a "cli" snap app, so perhaps you need to tell people to use snap run redis.cli?

However:

$ snap run redis.cli
/snap/redis/648/usr/bin/redis-cli: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

So that's perhaps an issue with the snap packaging / dependencies?

Hello @rptb1

Thanks for reporting this - I can reproduce it on 20.04.04 too :)

this is something that started suddenly today 13.12.2022, as we have been using it daily for months. Multiple installations. Just
snap installed redis on new ubuntu 22.04 deploy

$ sudo snap logs redis
2022-12-13T21:17:02+02:00 systemd[1]: Stopped Service for snap application redis.server.
2022-12-13T21:17:02+02:00 systemd[1]: Started Service for snap application redis.server.
2022-12-13T21:17:02+02:00 redis.server[13945]: /snap/redis/648/usr/bin/redis-server: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
2022-12-13T21:17:02+02:00 systemd[1]: snap.redis.server.service: Main process exited, code=exited, status=127/n/a
2022-12-13T21:17:02+02:00 systemd[1]: snap.redis.server.service: Failed with result 'exit-code'.
2022-12-13T21:17:02+02:00 systemd[1]: snap.redis.server.service: Scheduled restart job, restart counter is at 5.
2022-12-13T21:17:02+02:00 systemd[1]: Stopped Service for snap application redis.server.
2022-12-13T21:17:02+02:00 systemd[1]: snap.redis.server.service: Start request repeated too quickly.
2022-12-13T21:17:02+02:00 systemd[1]: snap.redis.server.service: Failed with result 'exit-code'.
2022-12-13T21:17:02+02:00 systemd[1]: Failed to start Service for snap application redis.server.

Thanks @johnhexight for the affirmation.

Pinging SME @yossigo

This should be solved now.

RCA for reference: we're building our snap on the native host (to allow arm64 cross-compile), and GitHub Actions have just switched to Ubuntu 22.04 while our dependency is still core20.