package redis-server 5:4.0.9-1 failed to install/upgrade: installed redis-server package post-installation script subprocess returned error exit status 1

Bug #1786710 reported by Aditya Sarkar
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
redis (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Setting up redis-server (5:4.0.9-1) ...
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: timeout) since Mon 2018-08-13 00:15:34 IST; 15ms ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
dpkg: error processing package redis-server (--configure):
 installed redis-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: redis-server 5:4.0.9-1
ProcVersionSignature: Ubuntu 4.15.0-30.32-generic 4.15.18
Uname: Linux 4.15.0-30-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
AptOrdering:
 redis-server:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Sun Aug 12 23:57:27 2018
ErrorMessage: installed redis-server package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-08-03 (9 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3
SourcePackage: redis
Title: package redis-server 5:4.0.9-1 failed to install/upgrade: installed redis-server package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.redis.redis.conf: 2018-08-12T22:29:09.107449

Revision history for this message
Aditya Sarkar (aditya919903422143) wrote :
Revision history for this message
lamby (lamby) wrote :

Difficult to debug without the output of "See "systemctl status redis-server.service" and "journalctl -xe" for details."

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in redis (Ubuntu):
status: New → Confirmed
Revision history for this message
oletechie (marknlin) wrote :

I tried to install ntopng-blake. failed to install after 97% done. Same failure as above.

Revision history for this message
Strix (nightstrix) wrote :

I just turn off vpn, and all worked fine.

I used VPN client from privateinternetaccess.com and theirs standard client for Linux

Revision history for this message
lamby (lamby) wrote :
Changed in redis (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Cohen Carlisle (cohencarlisle) wrote :

I also had to turn off my VPN (ProtonVPN with their official command line client) and the install worked. Otherwise had a long timeout as others have stated. Output of `journalctl -xe` attached.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for redis (Ubuntu) because there has been no activity for 60 days.]

Changed in redis (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Alexander Saers (alex-saers) wrote :

I also hit the same error. After some investigation I found out what the problem was. It looks like redis is configured to bind to localhost over both ipv6 and ipv4.

On my system I had disabled ipv6 via grub "ipv6.disable=1" therefore the configuration was invalid and redis did not startup.

One fix is to change the file /etc/redis/redis.conf
- bind 127.0.0.1 ::1
+ bind 127.0.0.1

and then try to finish the installation with
apt install -f

Hope this helps.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.