• Resolved Jeff Wolfe

    (@bytezilla)


    The Redis Object Cache plugin has been installed and working for months.

    When I try to run a command using wp such as wp redis diagnostics it fails with
    `Error: Error establishing a Redis connection. NOAUTH Authentication required.

    In the wp-config.php file the define statement looks like
    define('WP_REDIS_PASSWORD', [ 'user' => 'UUUUUUUU', 'password' => 'PPPPPPPPPP' ] );

    All other documentation I find does not show a user in WP_REDIS_PASSWORD

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Are you able to connect using redis-cli, if so please post the full command here.

    Thread Starter Jeff Wolfe

    (@bytezilla)

    Post the redis-cli command? I’m not sure what you are asking for specifically. The redis-cli command connects without any problem.

    Some lines have been redacted. There are currently 474 keys in Redis.

    $ redis-cli -h 10.2.100.227 -p 6379
    10.2.100.227:6379> auth USERUSERUSER PASSPASSPASS
    OK
    10.2.100.227:6379> keys *
    1) “nap:default:get_caches-25c9abdd0884d1e8618a75e9f40ebfd0-0.45506800 1706293483”
    2) “nap:user_meta:466”
    3) “nap:userslugs:xxxxxxxxxx”
    4) “nap:wpforms_form_tag_relationships:59”
    5) “nap:post-queries:wp_query-474edf4a00206fb9d0b312ea7466824c-0.17520600 1706279326”
    6) “nap:options:alloptions”
    7) “nap:user_meta:505”
    8) “nap:userlogins:xxxxxxxxxxxx”
    9) “nap:post-queries:wp_query-e4e4c7665ab2e263ccbd3c32375b02c1-0.17520600 1706279326”
    10) “nap:userlogins:xxxxxxxxxxxxxxxxxxx”
    11) “nap:default:get_caches-e8806ae381a8355f84038ca5f1f041af-0.25035000 1706283288”
    12) “nap:default:get_caches-bd9e16aa1acabe7920846e52b7ac0ff6-0.99160800 1706289958”
    13) “nap:post-queries:wp_query-c99c088b99d0d399ab39f789927d1f4c-0.17520600 1706279326”
    14) “nap:default:get_caches-b58210f421cde8fd772b20bfdc535ef2-0.88379200 1706295257”

    Plugin Support Julie

    (@julieadrienne)

    Hi!

    Are all your WP_REDIS_* constants at the very top of the wp-config.php file?

    Did you try setting WP_REDIS_CLIENT to predis or phpredis to see if either works?

    Thread Starter Jeff Wolfe

    (@bytezilla)

    Putting the Define Redis statements at the top of wp-config.php seems to have worked.
    I usually put all new settings right above the “stop editing!” line in the wp-config.php file.

    I can now run wp redis status or wp user list --field=ID and get a result.

    Plugin Author Till Krüss

    (@tillkruess)

    Sweet, glad it worked out!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NOAUTH error when running wp-cli’ is closed to new replies.