Skip to content

redis have a password #42

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

Closed
dunkel015 opened this issue Dec 12, 2020 · 6 comments
Closed

redis have a password #42

dunkel015 opened this issue Dec 12, 2020 · 6 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.

@pprkut
Copy link
Collaborator

pprkut commented Mar 4, 2025

This question looks answered to me. I will close it!

If you still have questions left feel free to re-open 🙂

@pprkut pprkut closed this as completed Mar 4, 2025
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

4 participants