• Resolved inevitablezn

    (@inevitablezn)


    Hi,

    I have Nginx running two WordPress sites on a single server. I have an elasticache redis cluster set up on AWS. I’m able to successfully connect the first site to it, and its been working great. The second site keeps failing to connect. I changed the database parameter to 1 (the other site is 0), without luck. Both sites are on the same hardware and reach out to RDS for the WordPress database as well as cdn etc. I can’t seem to figure out why I can’t connect redis to the second sites redis object cache plugin. Your assistance will be greatly appreciated.

    First Website:

      Overview
      
      Status:	 Connected
      Drop-in:	 Valid
      Filesystem:	 Writeable
      Connection
      
      Client:	PhpRedis (v5.3.6)
      Host:	<redacted_for_privacy>.usw2.cache.amazonaws.com
      Port:	6379
      Database:	0
      Connection Timeout:	1s
      Read Timeout:	1s
      Retry Interval:	0ms
      Redis Version:	6.2.5

      Diagnostics:

      Status: Connected
      Client: PhpRedis (v5.3.6)
      Drop-in: Valid
      Disabled: No
      Ping: 1
      Errors: []
      PhpRedis: 5.3.6
      Relay: Not loaded
      Predis: Not loaded
      Credis: Not loaded
      PHP Version: 8.0.15
      Plugin Version: 2.0.23
      Redis Version: 6.2.5
      Multisite: No
      Metrics: Enabled
      Metrics recorded: 896
      Filesystem: Working
      Global Prefix: "wp_"
      Blog Prefix: "wp_"
      WP_REDIS_HOST: "<redacted_for_privacy>.usw2.cache.amazonaws.com"
      WP_REDIS_PORT: 6379
      WP_REDIS_DATABASE: 0
      WP_REDIS_TIMEOUT: 1
      WP_REDIS_READ_TIMEOUT: 1
      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",
          "wordfence",
          "wordfence-ls"
      ]
      Unflushable Groups: []
      Drop-ins: [
          "advanced-cache.php v by ",
          "Redis Object Cache Drop-In v2.0.23 by Till Krüss"
      ]

      Second Website:

      Overview
      
      Status:	 Not connected
      Drop-in:	 Valid
      Filesystem:	 Writeable

      Diagnostics:

      Status: Not connected
      Client: PhpRedis (v5.3.6)
      Drop-in: Valid
      Disabled: No
      Ping: 
      Errors: [
          "Connection refused"
      ]
      PhpRedis: 5.3.6
      Relay: Not loaded
      Predis: Not loaded
      Credis: Not loaded
      PHP Version: 8.0.15
      Plugin Version: 2.0.23
      Redis Version: Unknown
      Multisite: No
      Metrics: Disabled
      Metrics recorded: null
      Filesystem: Working
      Global Prefix: "wp_"
      Blog Prefix: "wp_"
      WP_REDIS_HOST: "<redacted_for_privacy>.usw2.cache.amazonaws.com"
      WP_REDIS_PORT: 6379
      WP_REDIS_DATABASE: 1
      WP_REDIS_TIMEOUT: 1
      WP_REDIS_READ_TIMEOUT: 1
      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"
      ]
      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",
          "wordfence",
          "wordfence-ls"
      ]
      Unflushable Groups: []
      Drop-ins: [
          "advanced-cache.php v by ",
          "Redis Object Cache Drop-In v2.0.23 by Till Krüss"
      ]

      It makes no sense to me because the environment is the same down to the WordPress site version, plugins, configurations, nginx server conf, etc. The first site works 100% and the other doesn’t?

    • This topic was modified 4 years, 1 month ago by inevitablezn.
    • This topic was modified 4 years, 1 month ago by inevitablezn.
    • This topic was modified 4 years, 1 month ago by inevitablezn.
Viewing 1 replies (of 1 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    “Connection refused” means PHP cannot open a connection to Redis and beyond the support scope of this plugin.

    You could try increasing your timeouts.

Viewing 1 replies (of 1 total)

The topic ‘Status: Not connected – “Connection Refused”’ is closed to new replies.