Want to subscribe to topics you're interested in?
Become a Member

redis-generator.sh bug on redis 6?

Discussion in 'Bug Reports' started by pdinh97qng, Jul 9, 2020.

  1. pdinh97qng

    pdinh97qng Member

    93
    10
    8
    Jan 24, 2016
    Ratings:
    +27
    Local Time:
    10:34 PM
    I just do a fresh installation of Centmin Mod, everything go smoothy until I used redis-install.sh and redis-generator.sh for multi redis instances.
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.1
    • PHP Version Installed: 7.4.7
    • MariaDB MySQL Version Installed: 10.4.x
    Here is the error:
    Code:
    [11:28][root@xxx svr-setup]# ./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
    sed -i 's|Type=notify|Type=forking|' /usr/lib/systemd/system/redis6479.service
    create /etc/redis6479/redis6479.conf config file
    mkdir -p /etc/redis6479
    cp -a /etc/redis.conf /etc/redis6479/redis6479.conf
    -rw-r----- 1 redis root 81K Jun 10 13:16 /etc/redis6479/redis6479.conf
    -rw-r--r-- 1 root  root 332 Jul  9 11:28 /usr/lib/systemd/system/redis6479.service
    Job for redis6479.service failed because a timeout was exceeded. 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
    sed -i 's|Type=notify|Type=forking|' /usr/lib/systemd/system/redis6480.service
    create /etc/redis6480/redis6480.conf config file
    mkdir -p /etc/redis6480
    cp -a /etc/redis.conf /etc/redis6480/redis6480.conf
    -rw-r----- 1 redis root 81K Jun 10 13:16 /etc/redis6480/redis6480.conf
    -rw-r--r-- 1 root  root 332 Jul  9 11:30 /usr/lib/systemd/system/redis6480.service
    Job for redis6480.service failed because a timeout was exceeded. 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

     
  2. pdinh97qng

    pdinh97qng Member

    93
    10
    8
    Jan 24, 2016
    Ratings:
    +27
    Local Time:
    10:34 PM
    Adding journalctl -xe
    Code:
    Unit redis6479.service has begun starting up.
    Jul 09 11:28:59 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=94.102.51.17 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=247 ID=44789 PROTO=TCP SPT=48898 DPT=2219 WINDOW=1024 RES=0x00 SYN URGP=0
    Jul 09 11:29:23 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=83.97.20.35 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=236 ID=54321 PROTO=TCP SPT=52860 DPT=10000 WINDOW=65535 RES=0x00 SYN URGP=0
    Jul 09 11:29:54 xxx kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=51.89.43.181 DST=210.16.120.155 LEN=442 TOS=0x00 PREC=0x00 TTL=52 ID=55538 DF PROTO=UDP SPT=5102 DPT=5060 LEN=422
    Jul 09 11:30:01 xxx systemd[1]: Started Session 300 of user root.
    -- Subject: Unit session-300.scope has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit session-300.scope has finished starting up.
    --
    -- The start-up result is done.
    Jul 09 11:30:01 xxx CROND[24195]: (root) CMD (/usr/lib64/sa/sa1 1 1)
    Jul 09 11:30:13 xxx systemd[1]: redis6479.service start operation timed out. Terminating.
    Jul 09 11:30:13 xxx systemd[1]: Failed to start Redis persistent key-value database.
    -- Subject: Unit redis6479.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit redis6479.service has failed.
    --
    -- The result is failed.
    Jul 09 11:30:13 xxx systemd[1]: Unit redis6479.service entered failed state.
    Jul 09 11:30:13 xxx systemd[1]: redis6479.service failed.
    Jul 09 11:30:13 xxx polkitd[725]: Unregistered Authentication Agent for unix-process:24114:7933573 (system bus name :1.627, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
    Jul 09 11:30:13 xxx polkitd[725]: Registered Authentication Agent for unix-process:24211:7942589 (system bus name :1.630 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
    Jul 09 11:30:13 xxx systemd[1]: Reloading.
    Jul 09 11:30:13 xxx polkitd[725]: Unregistered Authentication Agent for unix-process:24211:7942589 (system bus name :1.630, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
    Jul 09 11:30:13 xxx polkitd[725]: Registered Authentication Agent for unix-process:24230:7942592 (system bus name :1.631 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
    Jul 09 11:30:13 xxx systemd[1]: Reloading.
    Jul 09 11:30:13 xxx polkitd[725]: Unregistered Authentication Agent for unix-process:24230:7942592 (system bus name :1.631, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
    Jul 09 11:30:14 xxx polkitd[725]: Registered Authentication Agent for unix-process:24285:7942601 (system bus name :1.632 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
    Jul 09 11:30:14 xxx systemd[1]: Reloading.
    Jul 09 11:30:14 xxx polkitd[725]: Unregistered Authentication Agent for unix-process:24285:7942601 (system bus name :1.632, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
    Jul 09 11:30:14 xxx polkitd[725]: Registered Authentication Agent for unix-process:24303:7942604 (system bus name :1.633 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
    Jul 09 11:30:14 xxx systemd[1]: Starting Redis persistent key-value database...
    -- Subject: Unit redis6480.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit redis6480.service has begun starting up.
    Jul 09 11:30:29 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=185.39.10.47 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=247 ID=59570 PROTO=TCP SPT=44666 DPT=6472 WINDOW=1024 RES=0x00 SYN URGP=0
    Jul 09 11:30:43 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=167.172.124.53 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=247 ID=29966 PROTO=TCP SPT=44946 DPT=21855 WINDOW=1024 RES=0x00 SYN URGP=Jul 09 11:30:48 xxx kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=209.141.62.69 DST=210.16.120.155 LEN=68 TOS=0x00 PREC=0x00 TTL=248 ID=54321 PROTO=UDP SPT=48160 DPT=161 LEN=48
    Jul 09 11:30:50 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=190.25.239.90 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=55 ID=57052 PROTO=TCP SPT=34837 DPT=52869 WINDOW=41783 RES=0x00 SYN URGP=0Jul 09 11:31:17 xxx kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=163.44.151.51 DST=210.16.120.155 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=33564 PROTO=TCP SPT=51914 DPT=4867 WINDOW=1024 RES=0x00 SYN URGP=0
    Jul 09 11:31:20 xxx kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=42:23:b4:94:6d:a5:2c:54:2d:bc:c6:3f:08:00 SRC=185.232.65.191 DST=210.16.120.155 LEN=29 TOS=0x00 PREC=0x00 TTL=242 ID=54321 PROTO=UDP SPT=47217 DPT=19 LEN=9
    Jul 09 11:31:44 xxx systemd[1]: redis6480.service start operation timed out. Terminating.
    Jul 09 11:31:44 xxx systemd[1]: Failed to start Redis persistent key-value database.
    -- Subject: Unit redis6480.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit redis6480.service has failed.
    --
    -- The result is failed.
    Jul 09 11:31:44 xxx systemd[1]: Unit redis6480.service entered failed state.
    Jul 09 11:31:44 xxx systemd[1]: redis6480.service failed.
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,435
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,992
    Local Time:
    3:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Looks like updated Redis 6.0.x has more changes in systemd service file in CentOS 7, so updated redis-generator.sh at centminmod/centminmod-redis with fixes which you can do via setting in redis-generator.sh, DEBUG_REDISGEN='n' and then running the following to delete the 2 created instances and re-create them
    Code (Text):
    ./redis-generator.sh delete 2
    ./redis-generator.sh multi-cache 2