Get the most out of your Centmin Mod LEMP stack
Become a Member

Redis Redis error

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, Jun 23, 2019.

  1. pamamolf

    pamamolf Well-Known Member

    4,126
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    9:48 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.17
    • PHP Version Installed: 7.3.x
    • MariaDB MySQL Version Installed: 10.2.xx
    • When was last time updated Centmin Mod code base ? : just now

    Hello
    I just check Redis status and i got that output error:

    Code:
    systemd[1]: [/etc/systemd/system/redis.service.d/after-rc-local.conf:2] Failed to add dependency on rc.local, ignoring: Invalid argument
    Line two at after-rc-local.conf has:

    Code:
    After=network.target rc.local
    Any ideas?

    Thank you

     
  2. pamamolf

    pamamolf Well-Known Member

    4,126
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    9:48 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    Ok i fix it using:

    Code:
    systemctl daemon-reload
    systemctl restart redis
    systemctl status redis.service
     
  3. eva2000

    eva2000 Administrator Staff Member

    59,288
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    4:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    how was redis server installed, that referenced /etc/systemd/system/redis.service.d/after-rc-local.conf was removed in later redis-install.sh script builds
     
  4. pamamolf

    pamamolf Well-Known Member

    4,126
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    9:48 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    It is an old installation using:
    Code:
    yum -y install redis --enablerepo=remi --disableplugin=priorities
    Content of:
    /etc/systemd/system/redis.service.d/after-rc-local.conf

    Code:
    [Unit]
    After=network.target rc.local
    Should i remov ethat on my existing installation?

    Is there a Centminmod script (redis-install.sh) for installation of Redis? Didn't know that...
     
  5. eva2000

    eva2000 Administrator Staff Member

    59,288
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    4:48 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    found where /etc/systemd/system/redis.service.d/after-rc-local.conf was inserted as part of tools/hptweaks.sh trigger which is part of zend opcache php explicit huge pages support routine when PHP_HUGEPAGES='y' is enabled it's disabled by default in 123.09beta01 Beta Branch - add PHP_HUGEPAGES='n' variable in 123.09beta01. So you enabled this via persistent config file /etc/centminmod/custom_config.inc ?

    so you can remove the file /etc/systemd/system/redis.service.d/after-rc-local.conf

    and restart redis server
    Code (Text):
    systemctl daemon-reload
    systemctl restart redis
    systemctl status redis.service
    


    already updated tools/hptweaks.sh now in 123.09beta01 - commit history just for tools/hptweaks.sh file centminmod/centminmod :)
     
  6. pamamolf

    pamamolf Well-Known Member

    4,126
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    9:48 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    No i didn't.

    Yes i was run the:
    Code:
    /usr/local/src/centminmod/tools/hptweaks.sh
    and then restart Redis....

    Thank you !