redis-server fails at startup, installation failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redis (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
it is quite easy to reproduce the bug:
root@fuffa:~# apt-get update && apt-get install redis-server
[....]
The following NEW packages will be installed:
redis-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/397 kB of archives.
After this operation, 1.055 kB of additional disk space will be used.
Selecting previously unselected package redis-server.
(Reading database ... 421904 files and directories currently installed.)
Preparing to unpack .../redis-
Unpacking redis-server (2:3.2.1-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (231-9ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up redis-server (2:3.2.1-1) ...
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Job for redis-server.
See "systemctl status redis-server.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since sab 2017-02-11 18:58:26 CET; 14ms ago
Docs: http://
Process: 26199 ExecStart=
Process: 26196 ExecStartPre=
feb 11 18:58:26 fuffa systemd[1]: redis-server.
feb 11 18:58:26 fuffa systemd[1]: Failed to start Advanced key-value store.
feb 11 18:58:26 fuffa systemd[1]: redis-server.
feb 11 18:58:26 fuffa systemd[1]: redis-server.
dpkg: error processing package redis-server (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (231-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Of course it is quite impossible to understand what is happening
root@fuffa:~# journalctl -xe
-- Subject: Process /bin/run-parts could not be executed
-- Defined-By: systemd
-- Support: http://
--
-- The process /bin/run-parts could not be executed and failed.
--
-- The error number returned by this process is 2.
feb 11 19:01:09 fuffa systemd[31304]: redis-server.
-- Subject: Process /usr/bin/
-- Defined-By: systemd
-- Support: http://
--
-- The process /usr/bin/
--
-- The error number returned by this process is 2.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis-server.
-- Defined-By: systemd
-- Support: http://
--
-- Unit redis-server.
--
-- The result is failed.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: Stopped Advanced key-value store.
-- Subject: Unit redis-server.
-- Defined-By: systemd
-- Support: http://
--
-- Unit redis-server.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis-server.
-- Defined-By: systemd
-- Support: http://
--
-- Unit redis-server.
--
-- The result is failed.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
feb 11 19:01:09 fuffa systemd[1]: redis-server.
Of course, launching it from command line simply works:
root@fuffa:~# su - redis -s /bin/bash
redis@fuffa:~$ /usr/bin/
redis@fuffa:~$ echo $?
0
redis@fuffa:~$ ps auxw| grep redis-ser
redis 31431 0.0 0.0 40288 5836 ? Ssl 19:04 0:00 /usr/bin/
Status changed to 'Confirmed' because the bug affects multiple users.