Thread Starter
swiftc
(@swiftc)
I do have other things like PHP Sessions being cached in another db also using AUTH OK via php.ini:
===
session.save_handler = redis
session.save_path = “tcp://127.0.0.1:6379?database=10&auth=mypass”
===
That all works OK. But for WordPress via plugin I see this in Apache error_log:
===
[01-Mar-2016 21:13:51 UTC] PHP Fatal error: Uncaught exception ‘RedisException’ with message ‘Failed to AUTH connection’ in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php:939
Stack trace:
#0 [internal function]: Redis->flushAll()
#1 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(939): call_user_func_array(Array, Array)
#2 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(1047): WP_Object_Cache->_call_redis(‘flushAll’)
#3 /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php(155): WP_Object_Cache->__construct()
#4 /home/example/public_html/wp-includes/load.php(473): wp_cache_init()
#5 /home/example/public_html/wp-settings.php(95): wp_start_object_cache()
#6 /home/example/public_html/wp-config.php(84): require_once(‘/home/example…’)
#7 /home/example/public_html/wp-load.php(37): require_once(‘/home/example…’)
#8 /home/example/public_html/wp-blog-header.php(12): require_once(‘/home/example…’)
#9 /home/example/public_html in /home/example/public_html/wp-content/plugins/wp-redis/object-cache.php on line 939
===
Thanks for any help!
Just to verify, you’re using the latest version of the plugin?
I don’t have any great ideas off the top of my head as to why authentication is failing. Can you try deleting the wp_redis_do_redis_failback_flush option from the database so WordPress doesn’t try to flush Redis, and see if the error persists?
Hi,
Have you fixed the AUTH problem? I am interested in also setting up AUTH on my Redis config but would like to check before that it works.
@xberg Auth should be functional in the most recent release of the plugin. If you run into a reproducible issue, feel free to file a Github issue and we’ll take a look.