Workers can't connect to redis behind proxy

Description

Workers run into timeouts repeatedly trying to connect to Redis.

Error Message

Workers log: connection canceled.

Background Info

Redis is running and I can successfully connect from localhost and pods running in my k8s cluster via redis-cli -u rediss://<user>:<pass>@<host>:<port> --tls --sni <host>. SNI flag has to be set, otherwise the connection fails.

I tried the same with bullmq, as it appears n8n is using it under the hood.

const connection = new Redis({
  port: <port>,
  host: <host>,
  username: <user>,
  password: <pass>,
  tls: {
    servername: <host>
  },
  maxRetriesPerRequest: null
})

With the servername in the tls options set. It connects successfully otherwise not.

Now I did a look into the n8n code and found that you set the TLS config, but not the servername if the tls config flag is set to true:

Is this a known issue? Is there a workaround? My cloud provider requires setting the servername. Is there an option to set it for n8n?

Cheers.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.