• Resolved Viraj

    (@viraj-sk)


    Hello there,

    The Redis plugin shows that the connection to the server is disconnected every few hours after restarting. Once Redis is restarted from the server side, the status is changed to Connected again. I had to restart Redis whenever I saw the Status as Not connected.

    I have installed Redis on Plesk using Docker. This is the diagnostic from the plugin:

    Status: Not connected
    Client: PhpRedis (v5.3.7)
    Drop-in: Valid
    Disabled: No
    Ping: 1
    Errors: [
        "READONLY You can't write against a read only replica."
    ]
    PhpRedis: 5.3.7
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 7.4.32
    Plugin Version: 2.2.1
    Redis Version: 7.0.5
    Multisite: No
    Metrics: Disabled
    Metrics recorded: 0
    Filesystem: Working
    Global Prefix: "m7NqiXg6Y_"
    Blog Prefix: "m7NqiXg6Y_"
    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: [
        "counts",
        "plugins",
        "themes",
        "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"
    ]
    Unflushable Groups: []
    Groups Types: {
        "blog-details": "ignored",
        "blog-id-cache": "ignored",
        "blog-lookup": "ignored",
        "global-posts": "ignored",
        "networks": "ignored",
        "rss": "ignored",
        "sites": "ignored",
        "site-details": "ignored",
        "site-lookup": "ignored",
        "site-options": "ignored",
        "site-transient": "ignored",
        "users": "ignored",
        "useremail": "ignored",
        "userlogins": "ignored",
        "usermeta": "ignored",
        "user_meta": "ignored",
        "userslugs": "ignored",
        "redis-cache": "ignored",
        "counts": "ignored",
        "plugins": "ignored",
        "themes": "ignored",
        "blog_meta": "ignored"
    }
    Drop-ins: [
        "advanced-cache.php v by ",
        "maintenance.php v by ",
        "Redis Object Cache Drop-In v2.2.1 by Till Krüss"
    ]

    Your help will be highly appreciated. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also encounter the same issue, it only work in 5-6 hours and then the status is changed to not connected, i have to turn it on again.
    Hope to find a way to sovle this problem

    Plugin Author Till Krüss

    (@tillkruess)

    If you’re using Docker, you need to set the WP_REDIS_HOST to point at your Docker container.

    READONLY You can't write against a read only replica.

    I’ve never seen this error before, it seems that Redis Server running at 127.0.0.1 is configured to be a read-only replica. Ask you web host about this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Status changes to Not Connected after few hours’ is closed to new replies.