Comments (6)
This week 👍
from redis-cache.
@yatsukhnenko Can you take a look at this?
from redis-cache.
Try setting define('WP_REDIS_CLIENT', 'phpredis');
from redis-cache.
Hello, sorry for the late response.
While testing, now I also get an error when enabling. I really don't know why a few days ago it didn't give me an error and now it does, I'm not very clear if it is my problem that I have changed some configuration or it is the library's problem, that some inconsistent configuration has been left.
Likewise, I have configured the client and re-issued the commands with the following result.
php wp-cli redis status
Status: No activado
Client: phpredis
Drop-in: Not installed
Disabled: No
PhpRedis: 5.3.4
Relay: Not loaded
Predis: Not loaded
Credis: Not loaded
PHP Version: 7.4.30
Plugin Version: 2.5.2
Redis Version: Unknown
Multisite: No
Metrics: Disabled
Metrics recorded: 0
Filesystem: Writable
WP_REDIS_CLIENT: "phpredis"
WP_REDIS_SCHEME: "tcp"
WP_REDIS_CLUSTER: [
"tcp://redisint1.dev:6379?alias=redisint1",
"tcp://redisint2.dev:6379?alias=redisint2",
"tcp://redisint3.dev:6379?alias=redisint3"
]
WP_CACHE_KEY_SALT: "wordpress_site_des"
WP_REDIS_PLUGIN_PATH: "/opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache"
Drop-ins: []
php wp-cli.phar redis enable
Predis\ClientException: Command `_MASTERS` is not a registered Redis command. in /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Factory.php:67
Stack trace:
#0 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(313): Predis\Command\Factory->create()
#1 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(304): Predis\Client->createCommand()
#2 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/class-predis.php(164): Predis\Client->__call()
#3 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/class-predis.php(198): Rhubarb\RedisCache\Predis->flush()
#4 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/cli/class-commands.php(176): Rhubarb\RedisCache\Predis->flushOrFail()
#5 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/cli/class-commands.php(63): Rhubarb\RedisCache\CLI\Commands->flush_redis()
#6 [internal function]: Rhubarb\RedisCache\CLI\Commands->enable()
#7 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#8 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#9 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#10 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke()
#11 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command()
#12 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit()
#13 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#14 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#15 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#16 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/php/boot-phar.php(20): include('phar:///opt/htt...')
#17 /opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar(4): include('phar:///opt/htt...')
#18 {main}
Error: No se pudo activar la caché de objetos. El servidor Redis no está disponible: Command `_MASTERS` is not a registered Redis command.
php wp-cli redis status
(after enabled from wordpress dashboard)
Status: Conectado
Client: PhpRedis (v5.3.4)
Drop-in: Valid
Disabled: No
Ping: 1
Errors: []
PhpRedis: 5.3.4
Relay: Not loaded
Predis: Not loaded
Credis: Not loaded
PHP Version: 7.4.30
Plugin Version: 2.5.2
Redis Version: 5.0.8
Multisite: No
Metrics: Enabled
Metrics recorded: 5
Filesystem: Writable
Global Prefix: "wp_"
Blog Prefix: "wp_"
Timeout: 1
Read Timeout: 1
Retry Interval:
WP_REDIS_CLIENT: "phpredis"
WP_REDIS_SCHEME: "tcp"
WP_REDIS_CLUSTER: [
"tcp://redisint1.dev:6379?alias=redisint1",
"tcp://redisint2.dev:6379?alias=redisint2",
"tcp://redisint3.dev:6379?alias=redisint3"
]
WP_REDIS_PREFIX: "wordpress_site_des"
WP_CACHE_KEY_SALT: "wordpress_site_des"
WP_REDIS_PLUGIN_PATH: "/opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache"
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",
"network-queries",
"site-queries",
"theme_files",
"translation_files",
"user-queries"
]
Ignored Groups: [
"counts",
"plugins",
"theme_json",
"themes"
]
Unflushable Groups: []
Groups Types: {
"blog-details": "global",
"blog-id-cache": "global",
"blog-lookup": "global",
"global-posts": "global",
"networks": "global",
"rss": "global",
"sites": "global",
"site-details": "global",
"site-lookup": "global",
"site-options": "global",
"site-transient": "global",
"users": "global",
"useremail": "global",
"userlogins": "global",
"usermeta": "global",
"user_meta": "global",
"userslugs": "global",
"redis-cache": "global",
"blog_meta": "global",
"network-queries": "global",
"site-queries": "global",
"theme_files": "global",
"translation_files": "global",
"user-queries": "global",
"counts": "ignored",
"plugins": "ignored",
"theme_json": "ignored",
"themes": "ignored"
}
Drop-ins: [
"Redis Object Cache Drop-In v2.5.2 by Till Krüss"
]
php wp-cli redis update-dropin
PHP Warning: chmod(): Operation not permitted in /opt/http-2.4.48/htdocs/wordpress-site/wp-admin/includes/class-wp-filesystem-direct.php on line 173
Warning: chmod(): Operation not permitted in /opt/http-2.4.48/htdocs/wordpress-site/wp-admin/includes/class-wp-filesystem-direct.php on line 173
Predis\ClientException: Command `_MASTERS` is not a registered Redis command. in /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Command/Factory.php:67
Stack trace:
#0 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(313): Predis\Command\Factory->create()
#1 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(304): Predis\Client->createCommand()
#2 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/class-predis.php(164): Predis\Client->__call()
#3 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/class-predis.php(198): Rhubarb\RedisCache\Predis->flush()
#4 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/cli/class-commands.php(176): Rhubarb\RedisCache\Predis->flushOrFail()
#5 /opt/http-2.4.48/htdocs/wordpress-site/wp-content/plugins/redis-cache/includes/cli/class-commands.php(155): Rhubarb\RedisCache\CLI\Commands->flush_redis()
#6 [internal function]: Rhubarb\RedisCache\CLI\Commands->update_dropin()
#7 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#8 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#9 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#10 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke()
#11 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command()
#12 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit()
#13 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#14 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#15 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#16 phar:///opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar/php/boot-phar.php(20): include('phar:///opt/htt...')
#17 /opt/http-2.4.48/htdocs/wordpress-site/wp-cli.phar(4): include('phar:///opt/htt...')
#18 {main}
Error: El dependiente de caché no se pudo actualizar. El servidor Redis no está disponible: Command `_MASTERS` is not a registered Redis command.
from redis-cache.
@Albvadi could you test fix #529?
from redis-cache.
Hi @yatsukhnenko any idea when you guys planning on releasing it? i have same issues while trying to wp redis enable
even tho in wp-config.php
im using phpredis
define('WP_REDIS_CLIENT','phpredis');
from redis-cache.
Related Issues (20)
- Not writeable fault with ssh2 option HOT 3
- wp_cache_flush_group fails on 2.5.2 HOT 5
- Transient cache not properly invalidated HOT 4
- Failure to activate the plugin and delete it from WordPress HOT 1
- Config question (agregate) for existing working redis cluster HOT 1
- Uncaught Error: Call to a member function get on `null` HOT 1
- Support disabling of group flush HOT 1
- RedisException: OOM command not allowed when used memory > 'maxmemory' HOT 1
- PHP Fatal error: Uncaught Error: Call to a member function get() on null in /wp-content/object-cache.php:193 HOT 1
- Error when saving in editor HOT 3
- The CPU of redis suddenly increased, causing my site to crash HOT 1
- Redis Object Cache throws exception during BG save operation HOT 21
- Critical Error When Updating Posts with UX Builder Due to Redis Connection Issues HOT 4
- Missing property in object cache class HOT 5
- "The command 'INFO' is not allowed in replication mode." after upgrade to 2.53 HOT 2
- Incorrect cache behavior with 2 servers using AWS load balancer HOT 5
- wp cache flush breaks when using redis cluster on 2.5.3 HOT 5
- Cache Issues with Identical WordPress Instances Using Redis Behind AWS ALB HOT 1
- NGINX & PHP-FPM crashes when activating or enabling cache HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-cache.