• Resolved gregywordpress

    (@gregywordpress)


    Hello,

    It seems to me that I came across an unusual problem.

    Neither I nor my server support staff can come to the point why this is happening.

    …and here is what’s happening:

    Redis is on.

    Redis is running on the port: 6599

    – Host for calls: 127.0.0.1
    – Memory limit: 128 MB
    – maxclients: 10000
    – Server connection password: d7c54cf1180f237b7dcaecbbb32e04589

    We performed a test from the server side:

    ~] # ps aux | grep klcoltd | grep redis
    klcoltd 126669 0.0 0.0 42376 3636 ? Ssl 09:18 0:00 /usr/bin/redis-server 127.0.0.1:6599

    Connection to redis is working properly

    # redis-cli -a d7c54cf1180f237b7dcaecbbb32e04589 -h 127.0.0.1 -p 6599 ping
    Warning: Using a password with ‘-a’ or ‘-u’ option on the command line interface may not be safe.
    PONG
    #

    But the LSCache plugin is constantly showing this: https://recordit.co/WIvhJXxcRD and no cache object is hit.

    Can you help to solve this mistery?

    I can provide any credentials you will need.

    Regards,

    Greg

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try this PHP code , and see if it returns pong

    <?php
     
    $redis = new Redis();
    //Connecting to Redis
    $redis->connect('127.0.0.1', 6599);
    $redis->auth('d7c54cf1180f237b7dcaecbbb32e04589');
     
    if ($redis->ping()) {
            echo "PONG";
    }

    Best regards,

    Thread Starter gregywordpress

    (@gregywordpress)

    Hello, thank you.
    I’ve inserted this piece of code at the end to the functions.php file in my child theme folder but it ruin my website -> I couldn’t even log in to my site. I had to back to previous functions.php.
    Would you like to get credentials to my site so you could check this out?
    Regards,
    Greg

    Thread Starter gregywordpress

    (@gregywordpress)

    Here is the functions.php file https://drive.google.com/file/d/1kVcF_rypX9DoZWJNuyyV-Nxrzeg-WSzI/view?usp=sharing after inserting the code. Can you tell what’s wrong?
    ??

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    No , sorry , I didn’t make it clear

    it’s stand alone PHP file

    e.g. create a file in your root directory , name it like “test.php” , then put my code into it , then access it on browser by https://domain.com/test.php , and see what it returns

    Best regards,

    Thread Starter gregywordpress

    (@gregywordpress)

    My server support team modyfied this code to:
    <?php

    $redis = new Redis();
    //Connecting to Redis
    $redis->connect(‘127.0.0.1’, 6599);
    $redis->auth(‘d7c54cf1180f237b7dcaecbbb32e04589’);

    if ($redis) {
    echo “PONG”;
    }
    ?>
    and PONG is returned when you enter https://leasing.sos.pl/test.php.

    It means that Redis is activated but plugin is saying that there is no connection.

    Is there a chance you would enter my site to check this on your own? I think my case would be a small contribution to improve the LSC plugin.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please put “default” in username field, and see how it goes

    Best regards,

    Thread Starter gregywordpress

    (@gregywordpress)

    Done!
    But it did not change the situation. Still:
    Redis Extension: Enabled
    Connection Test: Failed
    ??

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    now that is weird, because I just set up a redis with auth , and it works on my test site that way

    anyway , please create a ticket here, we will investigate it further

    Best regards,

    Thread Starter gregywordpress

    (@gregywordpress)

    Thank you very much!
    I’ve just created Ticket #302358.
    ??

    Thread Starter gregywordpress

    (@gregywordpress)

    If you could not find my e-mails, here is what I wrote the other day:

    Hello Ruikai!

    I haven’t hear from you since 2 days.

    As I wrote before my server support team made the error done ->

    [klcoltd@ssd10:SSD-WP: ~ ] $ redis-cli -p 6599
    127.0.0.1:6599> auth d7c54cf1180f237b7dcaecbbb32e04589
    OK
    127.0.0.1:6599>

    But the connection to Redis is still down.

    Will you be able to deal with that case?

    Best regards,

    Greg

    2020-09-24 / 17:09

    > Hi!
    >
    > If you would test my site with the changes made by my support team (below) please turn the maintenance mode on when debugging.
    >
    > Best regards,
    >
    > Greg

    > 2020-09-24 / 11:04

    >>
    >> Hello!
    >>
    >> I got message from server support that it should be ok now.
    >>
    >> They send that:
    >>
    >>
    >> [klcoltd@ssd10:SSD-WP: ~ ] $ redis-cli -p 6599
    >> 127.0.0.1:6599> auth d7c54cf1180f237b7dcaecbbb32e04589
    >> OK
    >> 127.0.0.1:6599>
    >>
    >> Can you check this as connection is still failed:(
    >>
    >> Best regards,
    >>
    >> Greg

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Redis is on but the plugin do not recognize it’ is closed to new replies.