Redis socket “Connection refused”
-
Hi,
I’m unable to get the connection to my redis unix socket working. I already checked file permissions.
PHP is able to connect to redis.
php > $redis = new Redis();
php > $redis->connect(‘/home/user1/.redis/redis.sock’);
php > $res = $redis->ping();
php > echo $res;
1
php > exitAlso I tried connection to unix socket with another wordpress plugin (litespeed cache) which worked as well. Connection had been established and keys were available in redis db.
But unfortunately Redis Object Cache plugin don’t want to connect to my socket.
Status: Nicht verbunden
Client: PhpRedis (v5.3.3)
Drop-in: Valid
Disabled: No
Ping:
Errors: [
“Connection refused”
]
PhpRedis: 5.3.3
Relay: Not loaded
Predis: Not loaded
Credis: Not loaded
PHP Version: 8.0.17
Plugin Version: 2.0.25
Redis Version: Unknown
Multisite: No
Metrics: Disabled
Metrics recorded: null
Filesystem: Working
Global Prefix: “wp_”
Blog Prefix: “wp_”
WP_REDIS_SCHEME: “unix”
WP_REDIS_PATH: “/home/user1/.redis/redis.sock”
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”
]
Unflushable Groups: []
Drop-ins: [
“advanced-cache.php v by “,
“Redis Object Cache Drop-In v2.0.25 by Till Krüss”
]define( ‘WP_REDIS_PATH’, ‘/home/user1/.redis/redis.sock’ );
define( ‘WP_REDIS_SCHEME’, ‘unix’ );Do you have any ideas what could be the reason?
Best Regards!
- The topic ‘Redis socket “Connection refused”’ is closed to new replies.