Ubuntu 18.04 update stuck at "Setting up redis-server (5:4.0.9-1ubuntu0.1) ..."
772
Whenever I update my Ubuntu software or run the command sudo dpkg --configure -a, it gets stuck at the line Setting up redis-server (5:4.0.9-1ubuntu0.1) .... I don't know why this is happening.
Killed this process and it doesn't stuck again. However, still cannot install redis
Job for redis-server.service failed because a timeout was exceeded.################################################################################################################..................................................................................]
See "systemctl status redis-server.service" and "journalctl -xe" for details.
Systemd and redis-sentinal disagreed on where the pid file was. My /etc/redis/sentinel.conf was listing the pid as /var/run/redis/redis-sentinel.pid, whereas systemd was looking for /var/run/sentinel/redis-sentinel.pid.
As a result, systemd was killing redis-sentinel and restarting it over and over.
I updated the sentinel.conf to point to the location configured in systemd.
I uninstalled redis-server:
and installed it again from this repository.
Now it works fine.
I did
ps aux
and found that redis server was working...Killed this process and it doesn't stuck again. However, still cannot install redis
Systemd and redis-sentinal disagreed on where the pid file was. My /etc/redis/sentinel.conf was listing the pid as /var/run/redis/redis-sentinel.pid, whereas systemd was looking for /var/run/sentinel/redis-sentinel.pid.
As a result, systemd was killing redis-sentinel and restarting it over and over.
I updated the sentinel.conf to point to the location configured in systemd.
I faced the same problem so I remove
Now it's working fine. Maybe this will help you