php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

redis have a password

Open dunkel015 opened this issue 4 years ago • 5 comments

My question:

hey when I try to run the worker, how do I get it to get the redis configuration, because my redis have a password.

QUEUE='*' vendor/bin/resque

PHP Fatal error: Uncaught CredisException: NOAUTH Authentication required. in

My Environment

  • PHP-Resque version:
  • PHP version:7.4
  • Redis version:
  • Server type and version:
  • Operating System and version:

dunkel015 avatar Dec 12 '20 13:12 dunkel015

Pass the REDIS_BACKEND eval as well. This variable uses the normal DSN string format (redis://user:pass@host:port).

danhunsaker avatar Dec 15 '20 07:12 danhunsaker

My question: How to connect redis with only password? I try REDIS_BACKEND=redis://pass@host:port but it is not working

lttin0912 avatar Sep 27 '21 20:09 lttin0912

You need the : in front of the password.

danhunsaker avatar Sep 29 '21 22:09 danhunsaker

I try REDIS_BACKEND=redis://:pass@host:port but it is not working

lttin0912 avatar Sep 30 '21 02:09 lttin0912

Huh. PHP must need a fake user, then. Resque ignores it.

danhunsaker avatar Sep 30 '21 04:09 danhunsaker