Package: redis-server
Version: 2:2.8.17-1+deb8u5
Severity: normal

Dear Maintainer,

I use redis-server for a small nextcloud installation and set it to use a local 
socket.
I modified only these lines in /etc/redis/redis.conf, left all other as they 
were:

    port 0
    unixsocket /var/run/redis/redis.sock
    unixsocketperm 770

Now, I can start nicely, but upon restart/stop I get exit code 1:

    server redis-tools # service redis-server status
    ● redis-server.service - Advanced key-value store
       Loaded: loaded (/lib/systemd/system/redis-server.service; enabled)
       Active: active (running) since Sa 2016-09-03 18:30:08 CEST; 15min ago
      Process: 2240 ExecStop=/usr/bin/redis-cli shutdown (code=exited, 
status=1/FAILURE)
      Process: 2261 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf 
(code=exited, status=0/SUCCESS)
     Main PID: 2262 (redis-server)
       CGroup: /system.slice/redis-server.service
               └─2262 /usr/bin/redis-server 127.0.0.1:0

This is because /usr/bin/redis-cli shutdown does not honor the socket config.
Instead it tries to connect to the default port:

# /usr/bin/redis-cli shutdown
Could not connect to Redis at 127.0.0.1:6379: Connection refused

I don't know if it's possible to fix in the debian package or would have to be 
fixed upstream.

Thanks,
Olav


-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF8, LC_CTYPE=de_DE.UTF8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_DE.UTF8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages redis-server depends on:
ii  adduser              3.113+nmu3
ii  init-system-helpers  1.22
ii  libc6                2.19-18+deb8u5
ii  libjemalloc1         3.6.0-3
ii  redis-tools          2:2.8.17-1+deb8u5

redis-server recommends no packages.

redis-server suggests no packages.

-- Configuration Files:
/etc/default/redis-server changed
 [not included since it is unrelated,
 I just uncommented LimitNOFILE=65536]
/etc/redis/redis.conf changed
 [not included since I switched back to port config]

-- no debconf information

Reply via email to