Your message dated Thu, 01 Dec 2016 12:08:02 +0000
with message-id <e1ccq9i-0007s8...@fasolo.debian.org>
and subject line Bug#846350: fixed in redis 3:3.2.5-5
has caused the Debian Bug report #846350,
regarding redis-server does not start if /var/run/redis does not exist
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
846350: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846350
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Subject: redis-server does not start if /var/run/redis does not exist
Package: redis-server
Version: 2:3.2.5-1~dotdeb+8.1
Severity: normal

Dear Maintainer,

redis-server does not start if /var/run/redis does not exist

>From my understanding of the systemd directory, this can be fixed by
adding a RuntimeDirectory to the servicefile

>From the docs:

  System daemons frequently require private runtime directories below
/run to place communication sockets and similar in. For these,
consider declaring them in their unit files using RuntimeDirectory=
(see systemd.exec(5) for details), if this is feasible.

So I believe adding RuntimeDirectory=redis to the
"/lib/systemd/system/redis-server.service" file in the package will
prevent this issue

Reproducible steps:

root@debian-redis-test:~# apt-get install redis-server --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libjemalloc1
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 27 not upgraded.
Need to get 0 B/509 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 44319 files and directories currently installed.)
Preparing to unpack .../redis-server_2%3a3.2.5-1~dotdeb+8.1_amd64.deb ...
Unpacking redis-server (2:3.2.5-1~dotdeb+8.1) over (2:3.2.5-1~dotdeb+8.1) ...
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up redis-server (2:3.2.5-1~dotdeb+8.1) ...

root@debian-redis-test:~# systemctl status redis-server
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled)
   Active: active (running) since Wed 2016-11-30 14:24:32 UTC; 1s ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 6253 ExecStartPost=/bin/run-parts --verbose
/etc/redis/redis-server.post-up.d (code=exited, status=0/SUCCESS)
  Process: 6250 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
(code=exited, status=0/SUCCESS)
  Process: 6247 ExecStartPre=/bin/run-parts --verbose
/etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)
 Main PID: 6252 (redis-server)
   CGroup: /system.slice/redis-server.service
           └─6252 /usr/bin/redis-server 127.0.0.1:6379

Nov 30 14:24:32 debian-redis-test run-parts[6247]: run-parts:
executing /etc/redis/redis-server.pre-up.d/00_example
Nov 30 14:24:32 debian-redis-test run-parts[6253]: run-parts:
executing /etc/redis/redis-server.post-up.d/00_example
Nov 30 14:24:32 debian-redis-test systemd[1]: Started Advanced key-value store.

root@debian-redis-test:~# systemctl stop redis-server

root@debian-redis-test:~# rm -rf /var/run/redis/

root@debian-redis-test:~# systemctl start redis-server
Job for redis-server.service failed. See 'systemctl status
redis-server.service' and 'journalctl -xn' for details.

root@debian-redis-test:~# journalctl -u redis-server --no-pager | grep pid
Nov 30 13:29:04 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:30:34 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:32:30 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:32:31 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:32:31 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:32:31 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 13:32:31 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:05:02 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:05:03 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:05:03 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:05:03 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:05:03 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:24:54 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:24:54 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:24:54 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:24:55 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.
Nov 30 14:24:55 debian-redis-test systemd[1]: PID file
/var/run/redis/redis-server.pid not readable (yet?) after start-post.

# Add RuntimeDirectory config setting to the service file with vim,
works fine afterward

root@debian-redis-test:~# cat /lib/systemd/system/redis-server.service
| grep Runtime
RuntimeDirectory=redis

root@debian-redis-test:~# systemctl daemon-reload

root@debian-redis-test:~# systemctl stop redis-server
root@debian-redis-test:~# rm -rf /var/run/redis/
root@debian-redis-test:~# systemctl start redis-server
root@debian-redis-test:~# systemctl status redis-server
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled)
   Active: active (running) since Wed 2016-11-30 14:34:03 UTC; 11s ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 6725 ExecStopPost=/bin/run-parts --verbose
/etc/redis/redis-server.post-down.d (code=exited, status=0/SUCCESS)
  Process: 6722 ExecStop=/bin/kill -s TERM $MAINPID (code=exited,
status=0/SUCCESS)
  Process: 6719 ExecStop=/bin/run-parts --verbose
/etc/redis/redis-server.pre-down.d (code=exited, status=0/SUCCESS)
  Process: 6743 ExecStartPost=/bin/run-parts --verbose
/etc/redis/redis-server.post-up.d (code=exited, status=0/SUCCESS)
  Process: 6739 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
(code=exited, status=0/SUCCESS)
  Process: 6737 ExecStartPre=/bin/run-parts --verbose
/etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)
 Main PID: 6742 (redis-server)
   CGroup: /system.slice/redis-server.service
           └─6742 /usr/bin/redis-server 127.0.0.1:6379

Nov 30 14:34:03 debian-redis-test run-parts[6737]: run-parts:
executing /etc/redis/redis-server.pre-up.d/00_example
Nov 30 14:34:03 debian-redis-test run-parts[6743]: run-parts:
executing /etc/redis/redis-server.post-up.d/00_example
Nov 30 14:34:03 debian-redis-test systemd[1]: Started Advanced key-value store.

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

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
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+deb8u6
ii  lsb-base             4.1+Debian13+nmu1
ii  redis-tools          2:3.2.5-1~dotdeb+8.1

redis-server recommends no packages.

redis-server suggests no packages.

-- Configuration Files:
/etc/redis/redis.conf changed [not included]
/etc/redis/sentinel.conf 63a2164b93c2205a1c8f349f6d27be0f [Errno 2] No
such file or directory: u'/etc/redis/sentinel.conf
63a2164b93c2205a1c8f349f6d27be0f'

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: redis
Source-Version: 3:3.2.5-5

We believe that the bug you reported is fixed in the latest version of
redis, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 846...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <la...@debian.org> (supplier of updated redis package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 01 Dec 2016 11:48:51 +0000
Source: redis
Binary: redis-server redis-tools redis-sentinel
Architecture: source
Version: 3:3.2.5-5
Distribution: unstable
Urgency: medium
Maintainer: Chris Lamb <la...@debian.org>
Changed-By: Chris Lamb <la...@debian.org>
Description:
 redis-sentinel - Persistent key-value database with network interface 
(monitoring)
 redis-server - Persistent key-value database with network interface
 redis-tools - Persistent key-value database with network interface (client)
Closes: 846350
Changes:
 redis (3:3.2.5-5) unstable; urgency=medium
 .
   * Add RunTimeDirectory=redis to systemd .service files.
     (Closes: #846350)
Checksums-Sha1:
 5b6ea0fb0291470c472fb2870bbc15bfe13de620 1985 redis_3.2.5-5.dsc
 f1b0f238fb3c2bef0171bec7f6c4776426a7ef3e 35040 redis_3.2.5-5.debian.tar.xz
Checksums-Sha256:
 51492fe21d5c77ce10b302787ea2303067edce651e01b836902a279a10faf473 1985 
redis_3.2.5-5.dsc
 91c9ff5ac7560fd616d1598a1c05c2a6d5953930d600708e0049c1ebe6a62b7b 35040 
redis_3.2.5-5.debian.tar.xz
Files:
 0ad6217013811f09052d304bc24cbc53 1985 database optional redis_3.2.5-5.dsc
 65b15062ff04b37ce1c0ca6b2ae38a55 35040 database optional 
redis_3.2.5-5.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAlhADlEACgkQHpU+J9Qx
HljfZw//XMaOwGj1bumvNUKgZxMSvh875AOYfQ1y4TWZd2M02R1A5OAn30UE7tWi
+OcAvBSyzwzAU1A4IXTrKw/6/6rZIVIxwpQ/+vdGVMsYSAfuVZc/1yXsTRu+eB3j
dnWsfIwtXJf9Da7Yb11zeOd44ZJMyComoa+Y4DfLb6YrdPpsBYu/LWDSXObiQfMe
bQTaMk/7LF4tH+x2GHINvJl7fUlTyHbUC7M700bscW+l+vK+1FSUFZ1cY+PtS8Je
aLodC1yjRebwdIfiBewaoOo94swf2abx+vCXvrjimODNZSb+QU28BbqiLll2v5HG
hZ7W+vdti/2w2/EYpuM0hJsURq7+LB0rWlrA7MKUoBfQQJnoj/foPry6s/INNHkQ
Mn8i200ziR8vVBL5UlDYN8rp8GUuQZ6uBdbZUryycQrgLTIMmL5kXU84VSx6M3/M
aFdwXAGRFmkO/KxPGFJ9CmLMiqkXVe25+jOPww0m3718+n4zr60t0iescBrTYEqa
kyt57G80/hMpzmu/Ov5//C4bAcU6kNS/GLuItiVR0VT6AQ4rzZMe6ehkIXCQJ2YY
DRt0bZVEewKaXP8M8YDKlulIkq36o0odnAIbir8VP7Xb1zRYrX/LdaciawASqv4s
YkRABFHBzoDyIeXBIHpyKOVS+tTkhFlN+7waSxPj5HvvIDWh2KI=
=v4Pu
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to