Problem
When using Consolidated Services on Terraform Enterprise v202309-1, if Redis is on a different port than the default 6379
, Terraform Enterprise will still try to use port 6379
regardless of the redis_port
setting.
This issue results in logs such as ERROR: worker.fetch - dial
tcp xx.xx.xx.xx:6379: i/o timeout
Solution
This issue is only present in v202309-1 and is resolved in v202310-1.
If upgrading is not an option, a workaround is to add the port to the redis_host
setting, however this will cause the tfe-admin health-check
command to use an invalid URL, causing logs such as: redis://redis.example.com:7480:7480: not ready yet: dial tcp: lookup redis.example:7480:7480: no such host
, so it is not viable for workflows that depend on this command.