Title: Cannot AUTH
Last modified: August 31, 2016

---

# Cannot AUTH

 *  Resolved [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth-1/)
 * Hello,
 * When redis is set to:
 * requirepass somepass
 * WordPress can no longer connect to it, Even with wp-config.php:
 * $redis_server = array(
    ‘host’ => ‘127.0.0.1’, ‘port’ => 6379, ‘auth’ => ‘somepass’,);
   Could you offer any guidance here please?
 * Thanks.
 * [https://wordpress.org/plugins/wp-redis/](https://wordpress.org/plugins/wp-redis/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [swiftc](https://wordpress.org/support/users/swiftc/)
 * (@swiftc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth-1/#post-7113335)
 * 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!
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-auth-1/#post-7113346)
 * 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?
 *  [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [10 years ago](https://wordpress.org/support/topic/cannot-auth-1/#post-7113477)
 * 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.
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [10 years ago](https://wordpress.org/support/topic/cannot-auth-1/#post-7113478)
 * [@xberg](https://wordpress.org/support/users/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](https://github.com/pantheon-systems/wp-redis/issues)
   and we’ll take a look.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cannot AUTH’ is closed to new replies.

 * ![](https://ps.w.org/wp-redis/assets/icon-256x256.png?rev=3417699)
 * [WP Redis](https://wordpress.org/plugins/wp-redis/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-redis/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-redis/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-redis/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-redis/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-redis/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/cannot-auth-1/#post-7113478)
 * Status: resolved