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

Cannot connect to redis when using authentication #21

Open
nahsi opened this issue Jan 16, 2022 · 0 comments
Open

Cannot connect to redis when using authentication #21

nahsi opened this issue Jan 16, 2022 · 0 comments

Comments

@nahsi
Copy link

nahsi commented Jan 16, 2022

When using ACL (username:password) auth or legacy auth (just password, username is implied as default) there are errors in the log:

stdout:

[Nest] 1   - 01/16/2022, 4:26:03 PM   [SuspensionProcessor] Error for job undefined (Error): undefined +2002ms
[Nest] 1   - 01/16/2022, 4:26:03 PM   [DeleteForDomainProcessor] Error for job undefined (Error): undefined +1ms
[Nest] 1   - 01/16/2022, 4:26:05 PM   [SuspensionProcessor] Error for job undefined (Error): undefined +2003ms
[Nest] 1   - 01/16/2022, 4:26:05 PM   [DeleteForDomainProcessor] Error for job undefined (Error): undefined +1ms

stderr:

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9)
(node:1) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND ducky
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)

Seems that it tries to resolve ducky which is a name of a user in redis. When using legacy auth (<password>@redis:6379/10) it will try to resolve the password.

REDIS_URL=redis://<username>:<password>@master.redis-mail.service.consul:6379/10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant