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 Premium Member Premium Member

    3,673
    355
    83
    May 31, 2014
    Ratings:
    +683
    Local Time:
    3:39 PM
    Nginx-1.17.x
    MariaDB 10.3.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 Premium Member Premium Member

    3,673
    355
    83
    May 31, 2014
    Ratings:
    +683
    Local Time:
    3:39 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Ok i fix it using:

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

    eva2000 Administrator Staff Member

    42,833
    9,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,970
    Local Time:
    11:39 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    3,673
    355
    83
    May 31, 2014
    Ratings:
    +683
    Local Time:
    3:39 PM
    Nginx-1.17.x
    MariaDB 10.3.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...
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    42,833
    9,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,970
    Local Time:
    11:39 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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 :)
     
    • Like Like x 1
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,673
    355
    83
    May 31, 2014
    Ratings:
    +683
    Local Time:
    3:39 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    No i didn't.

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

    Thank you !
     
    • Informative Informative x 1