brolit-shell
brolit-shell copied to clipboard
Enabling redis fails
Hi!
Enabling redis fails when trying to setup on a new server (Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-122-generic x86_64)).
Here are the errors:
- Installing redis-server [ DONE ]
Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable redis-server
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
sed: -e expression #1, char 76: unknown option to `s'
Job for redis-server.service failed because a timeout was exceeded.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
Output of 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) since Sat 2022-10-01 14:50:43 UTC; 50s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Cntrl PID: 58607 (redis-server)
Tasks: 4 (limit: 2274)
Memory: 1.6M
CGroup: /system.slice/redis-server.service
└─58607 /usr/bin/redis-server *:6379
Oct 01 14:50:43 zurbox systemd[1]: Starting Advanced key-value store...
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:C 01 Oct 2022 14:50:43.558 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:C 01 Oct 2022 14:50:43.559 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=58607, just started
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:C 01 Oct 2022 14:50:43.560 # Configuration loaded
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:M 01 Oct 2022 14:50:43.565 * Running mode=standalone, port=6379.
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:M 01 Oct 2022 14:50:43.565 # Server initialized
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:M 01 Oct 2022 14:50:43.565 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot>
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:M 01 Oct 2022 14:50:43.566 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'ec>
Oct 01 14:50:43 zurbox redis-server[58607]: 58607:M 01 Oct 2022 14:50:43.568 * Ready to accept connections