pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
228 stars 68 forks source link

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

Open dvershinin opened 1 year ago

dvershinin commented 1 year ago

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.

pwtyler commented 1 year ago

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