Docker: redis in different container, redis-cli connects, redis object cahce not
-
I’ve spun up a docker image for wordpress connecting to my installed redis container running on the same host. A nextcoud installation is already using this redis container succesfully. Both the wordpress and owncloud container link to the redis container via docker linkage and are available via ENV variables.
Trying
redis-cli -h redis
inside the wordpress container works – PING returns PONG
There is no password set on the redis server.Here are the diagnostics:
PHP Version: 7.1.5 Multisite: No Redis: 3.1.2 Predis: 1.1.1 Status: Not Connected Client: PECL Extension (v3.1.2) WP_REDIS_CLIENT: "pecl" WP_REDIS_HOST: "redis" WP_CACHE_KEY_SALT: "" Drop-in: Valid Global Prefix: "wp_" Blog Prefix: "wp_" 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"] Ignored Groups: ["counts","plugins","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","themes"]
Here is the error:
Warning: Redis::connect(): connect() failed: Connection refused in /var/www/html/wp-content/object-cache.php on line 418 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/object-cache.php:418) in /var/www/html/wp-includes/option.php on line 828 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/object-cache.php:418) in /var/www/html/wp-includes/option.php on line 829
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Docker: redis in different container, redis-cli connects, redis object cahce not’ is closed to new replies.