Can't connect to Redis protected by password and TLS disabled
Google Cloud environment has Redis instance protected by password and no TLS. All required config variables are provided:
- LOCKSMAP_REDIS_INSTANCE_ADDRESS: minio-seismic-store
- LOCKSMAP_REDIS_INSTANCE_PORT: 6379
- LOCKSMAP_REDIS_INSTANCE_KEY: password
- LOCKSMAP_REDIS_INSTANCE_TLS_DISABLE: true
When application is trying to connect to Redis instance I get the following errors in logs:
"[ioredis] Unhandled error event: Error: connect ETIMEDOUT
at TLSSocket.<anonymous> (/seistore-service/node_modules/ioredis/built/Redis.js:170:41)
at Object.onceWrapper (events.js:519:28)
at TLSSocket.emit (events.js:400:28)
at TLSSocket.emit (domain.js:475:12)
at TLSSocket.Socket._onTimeout (net.js:495:8)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)"
It seems that redisSubscriptionClient
in dataset/locker.ts is always created with TLS option when LOCKSMAP_REDIS_INSTANCE_KEY
provided despite LOCKSMAP_REDIS_INSTANCE_TLS_DISABLE
is equal to true.
Possible fix is included in MR: !656 (merged)