Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis-Stack Daemon not working #371

Closed
badererliebert opened this issue Jun 27, 2024 · 0 comments
Closed

Redis-Stack Daemon not working #371

badererliebert opened this issue Jun 27, 2024 · 0 comments

Comments

@badererliebert
Copy link

Redis-Stack Daemon not working.

/etc/redis-stack.conf

port 6379
daemonize yes
loadmodule /opt/redis-stack/lib/redisearch.so
loadmodule /opt/redis-stack/lib/rejson.so
appendonly yes
appendfsync everysec
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 128mb
supervised auto
dir /var/lib/redis

/etc/systemd/system/redis.service

[Unit]
Description=Redis In-Memory Data Store
After=network.target

[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /etc/redis-stack.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always

[Install]
WantedBy=multi-user.target

sudo systemctl enable /etc/systemd/system/redis.service
sudo systemctl start redis.service
sudo systemctl status redis.service

RESULT

× redis.service - Redis In-Memory Data Store
Loaded: loaded (/etc/systemd/system/redis.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-06-27 13:58:38 UTC; 652ms ago
Process: 1378 ExecStart=/usr/local/bin/redis-server /etc/redis-stack.conf (code=exited, status=203/EXEC)
Main PID: 1378 (code=exited, status=203/EXEC)
CPU: 649us

Jun 27 13:58:38 ip-10-0-2-13 systemd[1]: redis.service: Scheduled restart job, restart counter is at 5.
Jun 27 13:58:38 ip-10-0-2-13 systemd[1]: Stopped Redis In-Memory Data Store.
Jun 27 13:58:38 ip-10-0-2-13 systemd[1]: redis.service: Start request repeated too quickly.
Jun 27 13:58:38 ip-10-0-2-13 systemd[1]: redis.service: Failed with result 'exit-code'.
Jun 27 13:58:38 ip-10-0-2-13 systemd[1]: Failed to start Redis In-Memory Data Store.

Tried all kinds of settings in the conf
daemonize yes/no
surpervised none/auto/systemd
with and without dir

Nothing is changing anything. Please advice. Works fine when I run
redis-server /etc/redis-stack.conf and start it from the CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant