wp-redis icon indicating copy to clipboard operation
wp-redis copied to clipboard

[BUGS-5944] Command "wp redis cli" fails

Open dvershinin opened this issue 1 year ago • 1 comments

When configured a Redis socket in wp-config.php:

$redis_server = array(
    'host'     => '/var/run/redis/redis.sock',
    'database' => 0, // Optionally use a specific numeric Redis database. Default is 0.

Then everything works fine but wp redis cli fails like this:

wp redis cli
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Could not connect to Redis at /var/run/redis/redis.sock:0: Name or service not known
not connected> 

At the same time redis-cli -s /var/run/redis/redis.sock works fine.

Expected: wp redis cli works without problem.

dvershinin avatar Mar 03 '23 16:03 dvershinin

Thanks for the report! We're tracking this internally as BUGS-5944.

pwtyler avatar Mar 03 '23 18:03 pwtyler