I cannot restart redis


  • GNU/Linux

    I cannot restart Redis in my NodeBB to apply a password change to the /etc/redis/6379.conf. I've already installed Redis and created a systemctl unit file:

    /etc/systemd/system/redis.service

    Contents:

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

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

    It returns if I do systemctl status redis:

    Started Redis In-Memory Data Store.
    Oct 18 20:30:25 server3 systemd[11199]: redis.service: Failed at step USER spawning /usr/local/bin/redis-server:
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Main process exited, code=exited, status=217/USER
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Control process exited, code=exited status=217
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Unit entered failed state.
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Failed with result 'exit-code'.
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Service hold-off time over, scheduling restart.
    Oct 18 20:30:25 server3 systemd[1]: Stopped Redis In-Memory Data Store.
    Oct 18 20:30:25 server3 systemd[1]: redis.service: Start request repeated too quickly.
    Oct 18 20:30:25 server3 systemd[1]: Failed to start Redis In-Memory Data Store.

    Thanks.


 

Suggested Topics

| |