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

Unable to proceed past node ./lib/index.js run --name my-queue-name #1

Closed
peterklingelhofer opened this issue Apr 14, 2022 · 3 comments

Comments

@peterklingelhofer
Copy link
Member

~/Dev/audio-process-queue main* ❯ node ./lib/index.js run --name my-queue-name
info: Queue processing started {"service":"audio-process-queue"}
info: Audio duration queue started {"service":"audio-process-queue"}
error: undefined {"address":"127.0.0.1","code":"ECONNREFUSED","errno":-61,"port":6379,"service":"audio-process-queue","syscall":"connect"}
@auggod
Copy link
Member

auggod commented Apr 15, 2022

Adding a redis password should fix the issue

@peterklingelhofer
Copy link
Member Author

@auggod, I have added the password from the .env to my redis config file with

~/Dev/audio-process-queue main* ❯ sudo nano /usr/local/etc/redis.conf

And I'm starting redis with:

~/Dev/audio-process-queue main* 1m 1s ❯ redis-server /usr/local/etc/redis.conf 

Now, at this stage, I get NOAUTH Authentication required.:

~/Dev/audio-process-queue main* 16s ❯ node ./lib/index.js run --name my-queue-name
info: Queue processing started {"service":"audio-process-queue"}
info: Audio duration queue started {"service":"audio-process-queue"}
(node:45631) UnhandledPromiseRejectionWarning: ReplyError: NOAUTH Authentication required.
    at parseError (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:302:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:45631) 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: 1)
(node:45631) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:45631) UnhandledPromiseRejectionWarning: ReplyError: NOAUTH Authentication required.
    at parseError (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:302:14)
(node:45631) 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: 2)
(node:45631) UnhandledPromiseRejectionWarning: ReplyError: NOAUTH Authentication required.
    at parseError (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:302:14)
(node:45631) 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: 3)
(node:45631) UnhandledPromiseRejectionWarning: ReplyError: NOAUTH Authentication required.
    at parseError (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/Users/peterklingelhofer/Dev/audio-process-queue/node_modules/redis-parser/lib/parser.js:302:14)
(node:45631) 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: 4)

@peterklingelhofer
Copy link
Member Author

It looks like it works if you use npm start:

~/Dev/audio-process-queue main* 15s ❯ npm start                                  10:16:04

> audio-process-queue@1.0.0 start
> node -r ./node_modules/dotenv-safe/config ./lib/index.js run

info: Queue processing started {"service":"audio-process-queue"}
info: Audio duration queue started {"service":"audio-process-queue"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants