Welcome to Centmin Mod Community
Register Now

Sysadmin Redis server generated by redis-generator failed to start

Discussion in 'System Administration' started by pdinh97qng, May 4, 2021 at 9:28 PM.

  1. pdinh97qng

    pdinh97qng Member

    106
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    10:35 AM
    @eva2000 I just setup a new server for testing and look like redis servers that are generated by redis-generator.sh are failed to start. I did test on 2 different VPSs, same error.
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.10
    • PHP Version Installed: 8.0.5
    • MariaDB MySQL Version Installed: 10.4.18
    Code:
    ./redis-generator.sh multi-cache 2
    
    Creating redis servers (with ondisk persistence disabled) starting at TCP = 6479...
    -------------------------------------------------------
    creating redis server: redis6479.service [increment value: 0]
    redis TCP port: 6479
    create systemd redis6479.service
    cp -a /usr/lib/systemd/system/redis.service /usr/lib/systemd/system/redis6479.service
    create /etc/redis6479/redis6479.conf config file
    mkdir -p /etc/redis6479
    cp -a /etc/redis/redis.conf /etc/redis6479/redis6479.conf
    -rw-r----- 1 redis root 92K May  4 12:13 /etc/redis6479/redis6479.conf
    -rw-r--r-- 1 root  root 474 May  4 18:18 /usr/lib/systemd/system/redis6479.service
    Job for redis6479.service failed because the control process exited with error code. See "systemctl status redis6479.service" and "journalctl -xe" for details.
    Created symlink from /etc/systemd/system/multi-user.target.wants/redis6479.service to /usr/lib/systemd/system/redis6479.service.
    Note: Forwarding request to 'systemctl enable redis6479.service'.
    ## Redis TCP 6479 Info ##
    Could not connect to Redis at 127.0.0.1:6479: Connection refused
    -------------------------------------------------------
    creating redis server: redis6480.service [increment value: 1]
    redis TCP port: 6480
    create systemd redis6480.service
    cp -a /usr/lib/systemd/system/redis.service /usr/lib/systemd/system/redis6480.service
    create /etc/redis6480/redis6480.conf config file
    mkdir -p /etc/redis6480
    cp -a /etc/redis/redis.conf /etc/redis6480/redis6480.conf
    -rw-r----- 1 redis root 92K May  4 12:13 /etc/redis6480/redis6480.conf
    -rw-r--r-- 1 root  root 474 May  4 18:18 /usr/lib/systemd/system/redis6480.service
    Job for redis6480.service failed because the control process exited with error code. See "systemctl status redis6480.service" and "journalctl -xe" for details.
    Created symlink from /etc/systemd/system/multi-user.target.wants/redis6480.service to /usr/lib/systemd/system/redis6480.service.
    Note: Forwarding request to 'systemctl enable redis6480.service'.
    ## Redis TCP 6480 Info ##
    Could not connect to Redis at 127.0.0.1:6480: Connection refused
    Code:
    systemctl status redis6479.service
    ● redis6479.service - Redis persistent key-value database
       Loaded: loaded (/usr/lib/systemd/system/redis6479.service; enabled; vendor preset: disabled)
      Drop-In: /etc/systemd/system/redis6479.service.d
               └─limit.conf, user.conf
       Active: failed (Result: exit-code) since Tue 2021-05-04 18:18:40 +07; 20s ago
     Main PID: 36244 (code=exited, status=1/FAILURE)
       Status: "Redis is loading..."
    
    May 04 18:18:40 abc.domain.xyz systemd[1]: Starting Redis persistent key-value database...
    May 04 18:18:40 abc.domain.xyz systemd[1]: redis6479.service: main process exited, code=exited, status=1/FAILURE
    May 04 18:18:40 abc.domain.xyz systemd[1]: Failed to start Redis persistent key-value database.
    May 04 18:18:40 abc.domain.xyz systemd[1]: Unit redis6479.service entered failed state.
    May 04 18:18:40 abc.domain.xyz systemd[1]: redis6479.service failed.


     
    Last edited: May 4, 2021 at 9:36 PM
  2. eva2000

    eva2000 Administrator Staff Member

    46,612
    10,583
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,423
    Local Time:
    3:35 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    The redis generator at centminmod/centminmod-redis isn't really an official part of Centmin Mod supported setup so moved from official bug reports forum.

    how was redis server installed itself ?

    what version of redis server is installed ? output for
    Code (Text):
    redis-cli info server



    edit: though I think I found the bug and fixed it in this redis-generator.sh update at fix redis-generator.sh redis service start files for redis 6.2 support · centminmod/centminmod-redis@bb35d44 it was a typo for missing redis 6.2 change as redis 6.2 changed from /etc to /etc/redis directory for config files
     
  3. pdinh97qng

    pdinh97qng Member

    106
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    10:35 AM
    @eva2000 worked perfectly. After delete the other 2 instances and re-creating them, the instances are able to start now.
     
  4. eva2000

    eva2000 Administrator Staff Member

    46,612
    10,583
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,423
    Local Time:
    3:35 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Glad to hear :)