Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis have a password #42

Open
dunkel015 opened this issue Dec 12, 2020 · 5 comments
Open

redis have a password #42

dunkel015 opened this issue Dec 12, 2020 · 5 comments
Labels

Comments

@dunkel015
Copy link

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:
@danhunsaker
Copy link
Member

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

@lttin0912
Copy link

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

@danhunsaker
Copy link
Member

You need the : in front of the password.

@lttin0912
Copy link

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

@danhunsaker
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants