• Resolved imddev

    (@imddev)


    In the past couple of days I am suddenly experiencing tremendous amounts of this error:
    Predis\Connection\ConnectionException: Error while reading line from the server. [tcp://127.0.0.1:13703] in /.../wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:144

    Prior to that, there was an occasional error like this ranging from once a day to once in a couple of days. Lately, it has skyrocketed. The configuration hasn’t changed from what it was prior. The only thing that’s changed lately has been the installation of Query Monitor, but the issues started days after the installation, not upon installation.
    I don’t have any other ‘caching’ plugins. I am on a VPS.
    WP: 6.6.2
    Redis object cache: 2.6.5
    Redis Version: 5.0.3
    Client: Predis (v2.4.0)

    Status: Connected
    Client: Predis (v2.4.0)
    Drop-in: Valid
    Disabled: No
    Ping: PONG
    Errors: []
    PhpRedis: Not loaded
    Relay: Not loaded
    Predis: 2.4.0
    Credis: Not loaded
    PHP Version: 7.4.33
    Plugin Version: 2.6.5
    Redis Version: 5.0.3
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 5913
    Filesystem: Writable
    Timeout: 1
    Read Timeout: 1
    • This topic was modified 7 months ago by imddev. Reason: additional info
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    That’s probably a timeout. Are you seeing anything in your redis-cli SLOWLOG GET 100? Or in your redis.log error log?

    Thread Starter imddev

    (@imddev)

    Hm…


    Running redis-cli in the WP root is calling is calling the wrong port. It doesn’t read the wp-config.php it seems like. It times out calling the default :6379

    I can’t seem to find such thing as a redis.log file anywhere either.

    I tried running redis plugin CLI commands through the WP-CLI as so wp-cli redis status , but some Dokan module isn’t happy and ends this attempt in a fatal error. Note: my beautiful hosting works with “wp-cli” commands, not jut “wp“. I don’t know if there’s a difference.

    Plugin Author Till Krüss

    (@tillkruess)

    Might be worth asking your hosting provider in that case for assistance with their setup.

    Thread Starter imddev

    (@imddev)

    So, I managed to stabilize the situation for the time being.
    Note: I haven’t had any prior issues with the plugin nor my hosting regarding Redis up until now. I’ve used this setup for over half an year until problems arose now.

    I attempted changing Redis server’s capacity, countless restarts and config resets, plugin resets – and no success.

    What I did to stabilize the situation and clear all timeouts: simply downgraded to 2.6.3
    I’ve gone from multiple timeouts in an hour, to total of 2 timeouts for 3 days.

    I’ll check the situation with my provider and try v2.6.5 again sometime.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error while reading line from the server’ is closed to new replies.