after upgraded ioredis from 4.10.0 to 4.11.1 Error: connect ETIMEDOUT
See original GitHub issueerror:
Jul 02 21:23:28 server boot[8665]: [2019/07/02 21:23:28.994] [MASTER] [PID: 008665] [ERROR] [CORE] [SERVICE] [REDIS] error
Jul 02 21:23:28 server boot[8665]: [2019/07/02 21:23:28.996] [MASTER] [PID: 008665] [ERROR] 7/2/2019, 9:23:28 PM unhandledRejection Error: connect ETIMEDOUT
Jul 02 21:23:28 server boot[8665]: at Socket.<anonymous> (/var/p3x/server.patrikx3.com/node_modules/ioredis/built/redis/index.js:270:31)
Jul 02 21:23:28 server boot[8665]: at Object.onceWrapper (events.js:288:20)
Jul 02 21:23:28 server boot[8665]: at Socket.emit (events.js:200:13)
Jul 02 21:23:28 server boot[8665]: at Socket._onTimeout (net.js:434:8)
Jul 02 21:23:28 server boot[8665]: at listOnTimeout (internal/timers.js:531:17)
Jul 02 21:23:28 server boot[8665]: at processTimers (internal/timers.js:475:7) {
Jul 02 21:23:28 server boot[8665]: errorno: 'ETIMEDOUT',
Jul 02 21:23:28 server boot[8665]: code: 'ETIMEDOUT',
Jul 02 21:23:28 server boot[8665]: syscall: 'connect'
Jul 02 21:23:28 server boot[8665]: } Promise {
Jul 02 21:23:28 server boot[8665]: <rejected> Error: connect ETIMEDOUT
Jul 02 21:23:28 server boot[8665]: at Socket.<anonymous> (/var/p3x/server.patrikx3.com/node_modules/ioredis/built/redis/index.js:270:31)
Jul 02 21:23:28 server boot[8665]: at Object.onceWrapper (events.js:288:20)
Jul 02 21:23:28 server boot[8665]: at Socket.emit (events.js:200:13)
Jul 02 21:23:28 server boot[8665]: at Socket._onTimeout (net.js:434:8)
Jul 02 21:23:28 server boot[8665]: at listOnTimeout (internal/timers.js:531:17)
Jul 02 21:23:28 server boot[8665]: at processTimers (internal/timers.js:475:7) {
Jul 02 21:23:28 server boot[8665]: errorno: 'ETIMEDOUT',
Jul 02 21:23:28 server boot[8665]: code: 'ETIMEDOUT',
Jul 02 21:23:28 server boot[8665]: syscall: 'connect'
Jul 02 21:23:28 server boot[8665]: }
Jul 02 21:23:28 server boot[8665]: }
With 4.10.0 it works.
How I connect:
const settings = {
"url2": "redis://:password@127.0.0.1:6379/0",
"url": "redis+unix://:password@/var/run/redis/redis-server.sock?db=0"
}
return new Redis(settings.url);
with 4.10.0 i can connect either url, with 4.11.0 i get timeout.
Issue Analytics
- State:
- Created 4 years ago
- Comments:46 (10 by maintainers)
Top Results From Across the Web
ioredis Unhandled error event: Error: connect ETIMEDOUT
This is occurring for instantiating only Standalone Redis object in node js. Below is the code I am using, var publisher = new...
Read more >ioredis | Yarn - Package Manager
A robust, performance-focused and full-featured Redis client for Node.js. Supports Redis >= 2.6.12 and (Node.js >= 12.22.0).
Read more >ioredis: Versions - Openbase
In the update of v5, we've made ioredis even more stable and ... ETIMEDOUT error with Bluebird when connecting. ... 4.11.1 (2019-06-26) Bug...
Read more >Error: connect ETIMEDOUT - Render community
I am trying to deploy simple node app that attempts to use redis instance: const connection = new IORedis(REDIS_PORT, REDIS_HOST), where ...
Read more >node:net:1247:16 - You.com | The AI Search Engine You Control
Memcached refuse connection after node upgrade to v18.7.0 ... parent: Error: connect ETIMEDOUT 35.197.113.116:5432 at TCPConnectWrap.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Debug info can be enabled by setting the env variable
DEBUG
toioredis:*
:🎉 This issue has been resolved in version 4.11.2 🎉
The release is available on:
Your semantic-release bot 📦🚀