Problem
This error appears in the tfe-licensing
container in your Terraform Enterprise (TFE) installation:
{
"@level": "error",
"@message": "error exporting snapshot",
"@module": "tfe-licensing.census",
"@timestamp": "2023-05-11T01:50:51.662155Z",
"err": "export failed with error POST https://reporting.hashicorp.services giving up after 5 attempt(s): Post \"https://reporting.hashicorp.services\": dial tcp 35.166.5.222:443: i/o timeout"
}
Cause
-
Your network does not allow the correct egress for the Automated License Utilization Reporting feature to export its report successfully to HashiCorp.
- This feature was released in TFE version 202305-1 and is enabled by default. Please refer to our documentation regarding this feature if you want to opt-out.
- This feature was released in TFE version 202305-1 and is enabled by default. Please refer to our documentation regarding this feature if you want to opt-out.
Solution
-
Ensure that your network allows egress to
https://api.replicated.com
, as described in our network requirements documentation. -
Ensure that your network also allows HTTPS egress on port
443
tohttps://reporting.hashicorp.services
by allow-listing the following IP addresses:
Additional Information
- Here's a link to our documentation regarding this feature: https://developer.hashicorp.com/terraform/enterprise/admin/application/automated-license-utilization-reporting