Running Redis in LX zone
Systemctl
throws a hiss if you attempt to run redis in a LX branded zone.
Oct 08 21:37:57 paperless (s-s[4078]: redis-server.service: Failed at step USER spawning /usr/bin/redis-server: Operation not permitted
Oct 08 21:37:57 paperless (s-s[4078]: redis-server.service: Failed to set up user namespacing: Operation not permitted
The solusion is pretty simple, we need to create an override.conf
file with the following content:
root@paperless:~# mkdir -p /etc/systemd/system/redis.service.d/
root@paperless:~# cat /etc/systemd/system/redis.service.d/override.conf
[Service]
PrivateUsers=false
root@paperless:~#
Now we need to reload the service database and start redis:
systemctl daemon-reload
systemctl start redis.service
The result:
root@paperless:~# systemctl status redis.service
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/redis.service.d
└─override.conf
Active: active (running) since Thu 2025-10-09 10:18:12 CEST; 41s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 22743 ((s-server))
Status: "Ready to accept connections"
CGroup: /system.slice/redis-server.service
└─22743 "/usr/bin/redis-server 127.0.0.1:6379"