Symptom Diagnosis
These following steps are to diagnose the symptom to determine the match to the scenario:
- Terraform Enterprise is operating in Azure Cloud environment
- Azure Application Gateway is fronting Terraform Enterprise
- Navigate into Terraform Enterprise Host Machine via SSH
- Execute the command
sudo docker logs ptfe_atlas
- The error message below is present in the log output
2020-09-17 00:56:09 [FATAL] [a1f5902f-36a0-49e4-a1c2-66cdc097b27b]
IPAddr::InvalidAddressError (invalid address: 121.200.6.236:3029):
config/initializers/rack_attack.rb:24:in `new'
config/initializers/rack_attack.rb:24:in `block in <top (required)>'
app/middleware/catch_json_parse_errors.rb:10:in `call'
Solutions
There are two possible solutions for the symptom:
- The recommended solution is to upgrade Terraform Enterprise to version v202009-2 or higher
- In the situation where the upgrade is unable to be performed immediately, a workaround solution is to create
Rewrite Rule
and override the headerX-Forwarded-For
with{var_client_ip}
on the Azure Application Gateway- Please note that the
Rewrite Rule
feature is not supported with v1 of the Azure Application Gateway. If this SKU is in use the gateway will need to be replaced or the Terraform Enterprise instance will need to be upgraded.
- Please note that the
Additional information
If you continue to experience the issues after following the guides, please contact HashiCorp Support to request for further assistance.