Skip to content

redis链接时的SSL问题 #2762

Description

@wyocl7pr

Describe the bug

在使用upstash的云redis时,由于upstash默认开启了ssl,无法连接至数据库

Reproduction

upstash云redis,docker部署

System Info

ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 3). Refer to "maxRetriesPerRequest" option for details.
    at Socket.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:21098:22)
    at Object.onceWrapper (node:events:631:26)
    at Socket.emit (node:events:509:28)
    at TCP.<anonymous> (node:net:351:12)
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)
==> Port scan timeout reached, no open HTTP ports detected. If you don't need to receive public HTTP traffic, create a private service instead.
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"connect","error":"read ECONNRESET"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Reached the max retries per request limit (which is 3). Refer to \"maxRetriesPerRequest\" option for details."}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 3). Refer to "maxRetriesPerRequest" option for details.
    at Socket.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:21098:22)
    at Object.onceWrapper (node:events:631:26)
    at Socket.emit (node:events:509:28)
    at TCP.<anonymous> (node:net:351:12)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 3). Refer to "maxRetriesPerRequest" option for details.
    at Socket.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:21098:22)
    at Object.onceWrapper (node:events:631:26)
    at Socket.emit (node:events:509:28)
    at TCP.<anonymous> (node:net:351:12)
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Reached the max retries per request limit (which is 3). Refer to \"maxRetriesPerRequest\" option for details."}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 3). Refer to "maxRetriesPerRequest" option for details.
    at Socket.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:21098:22)
    at Object.onceWrapper (node:events:631:26)
    at Socket.emit (node:events:509:28)
    at TCP.<anonymous> (node:net:351:12)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)
 ERROR  [ioredis] Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 3). Refer to "maxRetriesPerRequest" option for details.
    at Socket.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:21098:22)
    at Object.onceWrapper (node:events:631:26)
    at Socket.emit (node:events:509:28)
    at TCP.<anonymous> (node:net:351:12)
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
 ERROR  [RedisService] {"module":"RedisService","message":"Redis connection error","redisStatus":"reconnecting","error":"Command timed out"}
⚠ [RedisService] {"module":"RedisService","message":"Redis connection closed","redisStatus":"reconnecting"}
⚠ [RedisService] {"module":"RedisService","message":"Redis reconnecting","redisStatus":"reconnecting"}
 ERROR  [ioredis] Unhandled error event: Error: Command timed out
    at Timeout.<anonymous> (file:///app/chunks/bootstrap-GAsG74e4.mjs:16943:55)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions