Support » Plugin: Redis Object Cache » Weird Error in Debug Log

  • Resolved angrowmkt1

    (@angrowmkt1)


    Hello,
    Hope you doing great, I’m having a weird ConnectionException error. Could you please let me know what is it? Everything working well but this weird error in my debug log file, and I don’t like to see err in my debug file.

    Thank you!

    here s the log file:

    [20-Jan-2023 01:51:26 UTC] Predis\Connection\ConnectionException: Error while reading line from the server. [tcp://127.0.0.1:6379] in /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:132
    Stack trace:

    0 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(286): Predis\Connection\AbstractConnection->onConnectionError()

    1 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(120): Predis\Connection\StreamConnection->read()

    2 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(112): Predis\Connection\AbstractConnection->readResponse()

    3 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(316): Predis\Connection\AbstractConnection->executeCommand()

    4 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(299): Predis\Client->executeCommand()

    5 /var/www/mydomainname.com/public_html/wp-content/object-cache.php(1872): Predis\Client->__call()

    6 /var/www/mydomainname.com/public_html/wp-content/object-cache.php(193): WP_Object_Cache->get()

    7 /var/www/mydomainname.com/public_html/wp-cron.php(70): wp_cache_get()

    8 /var/www/mydomainname.com/public_html/wp-cron.php(191): _get_cron_lock()

    9 {main}

    [20-Jan-2023 03:51:32 UTC] Predis\Connection\ConnectionException: Error while reading line from the server. [tcp://127.0.0.1:6379] in /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:132
    Stack trace:

    0 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(286): Predis\Connection\AbstractConnection->onConnectionError()

    1 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(120): Predis\Connection\StreamConnection->read()

    2 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(112): Predis\Connection\AbstractConnection->readResponse()

    3 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(316): Predis\Connection\AbstractConnection->executeCommand()

    4 /var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(299): Predis\Client->executeCommand()

    5 /var/www/mydomainname.com/public_html/wp-content/object-cache.php(1872): Predis\Client->__call()

    6 /var/www/mydomainname.com/public_html/wp-content/object-cache.php(193): WP_Object_Cache->get()

    7 /var/www/mydomainname.com/public_html/wp-cron.php(70): wp_cache_get()

    8 /var/www/mydomainname.com/public_html/wp-cron.php(191): _get_cron_lock()

    9 {main}



    Here is the diagnostics:

    Status: Connected
    Client: Predis (v2.0.3)
    Drop-in: Valid
    Disabled: No
    Ping: PONG
    Errors: []
    PhpRedis: Not loaded
    Relay: Not loaded
    Predis: 2.0.3
    Credis: Not loaded
    PHP Version: 7.4.33
    Plugin Version: 2.2.3
    Redis Version: 7.0.7
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 1165
    Filesystem: Working
    Global Prefix: “nf”
    Blog Prefix: “nf”
    WP_REDIS_PREFIX: “mydomainname.com”
    WP_CACHE_KEY_SALT: “mydomainname.com”
    WP_REDIS_PLUGIN_PATH: “/var/www/mydomainname.com/public_html/wp-content/plugins/redis-cache”
    WP_REDIS_IGNORED_GROUPS: [

        “bp_notifications”,

        “bp_pages”,

        “wp_review_total”,

        “wp-review”,

        “mts_recent_reviews”,

        “comment”,

        “get_the_author_meta()”,

        “wc_session_id”,

        “bp_messages”,

        “options”,

        “WPML_TM_ICL_Translations::translations”

    ]

    Global Groups: [

        “blog-details”,

        “blog-id-cache”,

        “blog-lookup”,

        “global-posts”,

        “networks”,

        “rss”,

        “sites”,

        “site-details”,

        “site-lookup”,

        “site-options”,

        “site-transient”,

        “users”,

        “useremail”,

        “userlogins”,

        “usermeta”,

        “user_meta”,

        “userslugs”,

        “redis-cache”,

        “blog_meta”

    ]

    Ignored Groups: [

        “bp_notifications”,

        “bp_pages”,

        “wp_review_total”,

        “wp-review”,

        “mts_recent_reviews”,

        “comment”,

        “get_the_author_meta()”,

        “wc_session_id”,

        “bp_messages”,

        “options”,

        “WPML_TM_ICL_Translations–translations”,

        “counts”,

        “plugins”,

        “themes”

    ]

    Unflushable Groups: []

    Groups Types: {

        “blog-details”: “global”,

        “blog-id-cache”: “global”,

        “blog-lookup”: “global”,

        “global-posts”: “global”,

        “networks”: “global”,

        “rss”: “global”,

        “sites”: “global”,

        “site-details”: “global”,

        “site-lookup”: “global”,

        “site-options”: “global”,

        “site-transient”: “global”,

        “users”: “global”,

        “useremail”: “global”,

        “userlogins”: “global”,

        “usermeta”: “global”,

        “user_meta”: “global”,

        “userslugs”: “global”,

        “redis-cache”: “global”,

        “bp_notifications”: “ignored”,

        “bp_pages”: “ignored”,

        “wp_review_total”: “ignored”,

        “wp-review”: “ignored”,

        “mts_recent_reviews”: “ignored”,

        “comment”: “ignored”,

        “get_the_author_meta()”: “ignored”,

        “wc_session_id”: “ignored”,

        “bp_messages”: “ignored”,

        “options”: “ignored”,

        “WPML_TM_ICL_Translations–translations”: “ignored”,

        “blog_meta”: “global”,

        “counts”: “ignored”,

        “plugins”: “ignored”,

        “themes”: “ignored”

    }

    Drop-ins: [

        “Query Monitor Database Class (Drop-in) v3.11.1 by John Blackbourn”,

        “Redis Object Cache Drop-In v2.2.3 by Till Krüss”

    ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter angrowmkt1

    (@angrowmkt1)

    I forget to add my wp-config.php files for redis:

    /* REDIS SITE CONF */
    define( ‘WP_CACHE_KEY_SALT’, ‘mydomain.com’ );
    define( ‘WP_CACHE’, true );

    /* REDIS EXCLUDE GROUPS */
    define(‘WP_REDIS_IGNORED_GROUPS’, [
    “bp_notifications”,
    “bp_pages”,
    “wp_review_total”,
    “wp-review”,
    “mts_recent_reviews”,
    “comment”,
    “get_the_author_meta()”,
    “wc_session_id”,
    “bp_messages”,
    “options”,
    “WPML_TM_ICL_Translations::translations”,
    ]);

    and my server is Ubuntu 20LTS
    nginx 18
    Mariadb10.3
    Redis 7
    php7.4

    Thread Starter angrowmkt1

    (@angrowmkt1)

    there is no control panel or something like that pure manual installation of all the server app and configration.

    Plugin Author Till Krüss

    (@tillkruess)

    Error while reading line from the server. [tcp://127.0.0.1:6379] 

    Typically means your Redis Server isn’t responding, try restarting it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.