question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: connect ECONNREFUSED 127.0.0.1:6379

See original GitHub issue

I received this error when I try to start my Node server in k8s

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
Error: connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)
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(). The promise rejected with the reason:
Error: connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)

I am using bullmq that using ioredis

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
davalaparcommented, Jan 5, 2020

in your redis config:

bind 0.0.0.0
7reactions
QUDUSKUNLEcommented, May 28, 2021

While trying to connect to Redis right from inside a container, one can use this host.docker.internal as host and 6379 as the port.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redis connection to 127.0.0.1:6379 failed - Stack Overflow
but I got error Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED . Please help me resolve this problem.
Read more >
Error: connect ECONNREFUSED 127.0.0.1:6379 · Issue #1713
Description Actually i'am using Redis with Bee Queue and i would like to try Bull the problem is i'am unable to connect to...
Read more >
connect ECONNREFUSED 127.0.0.1:6379 - Fly.io
The error Error: connect ECONNREFUSED 127.0.0.1:6379 is continually logged and the queue cannot listen to onComplete changes.
Read more >
Connect ECONNREFUSED 127.0.0.1:27017 - MongoDB
I'm receiving error connect ECONNREFUSED 127.0.0.1:27017 randomly today after my DB connection worked for over two years.
Read more >
Connect ECONNREFUSED 127.0.0.1:80 - Node
(node:1571) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found