I have got a question and hope that somebody can help me. I own a vServer on a OpenVZ basis (I hate the kernel limitation) and can't install Redis.
What do I do:
- Clean install Ubuntu 16.04. LTS minimal
- Login as root
(I don't know if this is relevant, but this appears during the process:
Installing new version of config file /etc/systemd/system.conf ... addgroup: The group `systemd-journal' already exists as a system group. Exiting. [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring. Failed to validate path /var/run/sshd: Too many levels of symbolic links Failed to validate path /var/run/sudo: Too many levels of symbolic links Failed to validate path /var/run/sudo/ts: Too many levels of symbolic links (Reading database ... 16369 files and directories currently installed.)
apt install redis-server
Setting up redis-server (2:3.0.6-1) ...
fchownat() of /run/redis failed: Invalid argument
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S15ssh_gen_host_keys
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.
Process: 11845 ExecStopPost=/bin/run-parts --verbose /etc/redis/redis-server.p ost-down.d (code=exited, status=0/SUCCESS)
Process: 11839 ExecStartPost=/bin/run-parts --verbose /etc/redis/redis-server. post-up.d (code=exited, status=0/SUCCESS)
Process: 11837 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exi ted, status=0/SUCCESS)
Process: 11833 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.p re-up.d (code=exited, status=0/SUCCESS)
systemd: Failed to start Advanced key-value ....
systemd: redis-server.service: Unit entered ....
systemd: redis-server.service: Failed with r....
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package redis-server (--configure): subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.9) ...
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)
W: Operation was interrupted before it could finish
systemctl status redis-server.service
redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Active: activating (start-post) since Mon 2018-11-19 19:41:53 CET; 54s ago Docs: http://redis.io/documentation, man:redis-server(1) Process: 11966 ExecStopPost=/bin/run-parts --verbose /etc/redis/redis-server.post-down.d (code=exited, status=0/SUCC
Process: 11978 ExecStartPost=/bin/run-parts --verbose /etc/redis/redis-server.post-up.d (code=exited, status=0/SUCCE
Process: 11976 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS) Process: 11972 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS CGroup: /system.slice/redis-server.service └─11977 /usr/bin/redis-server 127.0.0.1:6379
systemd: Starting Advanced key-value store...
run-parts: run-parts: executing /etc/redis/redis-server.pre-up.d/00_example
run-parts: run-parts: executing /etc/redis/redis-server.post-up.d/00_example
systemd: redis-server.service: PID file /var/run/redis/redis-server.pid not readable (
After that I can't start Redis-Server (failed because a timeout was exceeded). What can I do to fix this problem? I saw many threads about redis in this forum, but the solutions didn't help me. Sorry for my bad english. Thanks in advance.