Describe the bug
Previously, WSL2 users could install redis from our PPA and start the server. We (Redis Labs) created a video showing how to do this.
Now, though, redis installed from our PPA doesn't start correctly. This is what users see -- the process hangs:
This stays in the foreground until you end it with control-C.
The process has started:
root 6803 0.0 0.0 63972 4068 pts/9 S+ 18:05 0:00 | \_ sudo service redis-server start
root 6808 0.0 0.0 4632 1780 pts/9 S+ 18:05 0:00 | \_ /bin/sh /etc/init.d/redis-server start
redis 6829 0.4 0.0 82884 13392 pts/9 Sl+ 18:05 0:00 | \_ /usr/bin/redis-server 127.0.0.1:6379
And you can connect from another shell... but sudo service redis-server start never exits.
To reproduce
- Use latest public Windows 10
- Install WSL2
- Install Ubuntu 18.04 (this also happens on 20)
- Add our PPA:
sudo service redis-server start - Update and install redis:
sudo apt update && sudo apt install redis - Try to start redis:
sudo service redis-server start
Expected behavior
Running sudo service redis-server start should start redis and exit.
Comment From: abrookins
@yossigo Do you know who we can get in touch about this? I'm not sure who manages the PPA. @lamby Maybe you can help?
Comment From: lamby
I don't know who runs that PPA, sorry.
Comment From: guyroyse
On my Windows 10 machine, it doesn't even start. It hangs on the call to start-stop-daemon in /etc/init.d/redis-server.
Comment From: abrookins
I think we literally turned off daemonization by default in recent commits to the packaging repo: https://github.com/redis/redis-debian/commit/9985435278cf0aff8fc494d80994dd593040f10e#diff-9f8d1201b6e71e2ad7916c8efabf287fb9040e6bc3626f7a7dd44433f1c8af14R12
On Fri, Mar 19, 2021 at 7:31 AM Guy Royse @.***> wrote:
On my Windows 10 machine, it doesn't even start. It hangs on the call to start-stop-daemon in /etc/init.d/redis-server.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/redis/redis/issues/8669#issuecomment-802875368, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXXHQ6DC3M2POBIGU5IFLTENN3JANCNFSM4ZNZH3BQ .
Comment From: yossigo
@abrookins Seems like it may be related to the fact you're not using systemd. Redis now ignores daemonize when running in supervised mode, but I guess we still need daemonize yes in case it isn't.
Comment From: yossigo
@abrookins This should be fixed now.
Comment From: abrookins
Awesome! I just confirmed that it's fixed. Closing...
On Mon, Mar 22, 2021 at 2:32 PM Yossi Gottlieb @.***> wrote:
@abrookins https://github.com/abrookins This should be fixed now.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/redis/redis/issues/8669#issuecomment-804409927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXXHV54M6C2SZ7G4ATCQLTE6ZPTANCNFSM4ZNZH3BQ .
Comment From: abrookins
Confirmed!