Znalostní Báze

Informace o sdružení vpsFree.cz, návody a nejčastější dotazy.

Uživatelské nástroje

Nástroje pro tento web


navody:distribuce:debian-stretch-redis

Redis server na Debianu 9 Stretch

Na Debianu 9 Stretch po instalaci redis serveru na OpenVZ kontejneru přes apt install redis-server se nespustí správně služba:

  Oct 16 20:15:11 png systemd[4165]: redis-server.service: Failed at step NAMESPACE spawning /usr/bin/redis-server:       
  Too many levels of symbolic links
-- Subject: Process /usr/bin/redis-server could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /usr/bin/redis-server could not be executed and failed.
--
-- The error number returned by this process is 40.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Control process exited, code=exited status=226
Oct 16 20:15:11 png systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit redis-server.service has failed.
--
-- The result is failed.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Unit entered failed state.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Failed with result 'exit-code'.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Service hold-off time over, scheduling restart.
Oct 16 20:15:11 png systemd[1]: proc-sys-fs-binfmt_misc.automount: Cannot add dependency job, ignoring: Unit proc-sys-fs-binfmt_misc.automount is masked.
Oct 16 20:15:11 png systemd[1]: Stopped Advanced key-value store.
-- Subject: Unit redis-server.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit redis-server.service has finished shutting down.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Start request repeated too quickly.
Oct 16 20:15:11 png systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit redis-server.service has failed.
--
-- The result is failed.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Unit entered failed state.
Oct 16 20:15:11 png systemd[1]: redis-server.service: Failed with result 'exit-code'.
Oct 16 20:15:18 png sudo[4169]:     root : TTY=pts/0 ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/service redis-server restart
Oct 16 20:15:18 png sudo[4169]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Oct 16 20:15:18 png systemd[1]: proc-sys-fs-binfmt_misc.automount: Cannot add dependency job, ignoring: Unit proc-sys-fs-binfmt_misc.automount is masked.
Oct 16 20:15:18 png systemd[1]: redis-server.service: Start request repeated too quickly.
Oct 16 20:15:18 png systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit redis-server.service has failed.
--
-- The result is failed.

``

Řešení:

sed -i 's/ReadWriteDirectories=-\/var\/run\/redis\/ReadWriteDirectories=-\/run\/redis/g' /lib/systemd/system/redis-server.service

systemctl reload-daemon

systemctl restart redis.service

navody/distribuce/debian-stretch-redis.txt · Poslední úprava: 2018/10/17 00:16 autor: parolek