2

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.

Update Manager screenshot

  • I'm using 18.04 – Ham Ar Jan 22 '19 at 19:52
2

I uninstalled redis-server:

sudo apt-get purge redis-server

and installed it again from this repository.

sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt -y install redis-server

Now it works fine.

| improve this answer | |
1

I did ps auxand found that redis server was working...

redis      535  0.0  0.1  51444  4772 ?        Ssl  01:41   0:00 /usr/bin/redis-server *:6379

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.
| improve this answer | |
  • I did it! sudo sed -i "s/bind .*/bind 127.0.0.1/g" /etc/redis/redis.conf sudo service redis-server restart this was the problem, It couldn't run on that address and this command solved it. Check if this is running correctly after: sudo tail /var/log/redis/redis-server.log – Костя Крючков Apr 16 '19 at 21:29
0

I faced the same problem so I remove

rm -rf /run/systemd/generator.late/redis-server.service

Now it's working fine. Maybe this will help you

| improve this answer | |
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.