Problem
When generating a support bundle in Terraform Enterprise version v202502-1, the tfectl command reports success but hangs while attempting to upload the bundle.
$ tfectl support bundle Support bundle generated successfully: file=/run/terraform-enterprise/support-bundles/a17b0b52-2267-ac92-3f41-ca950bdf5104/hcdiag-....tar.gz Uploading support bundle: filename=/run/terraform-enterprise/support-bundles/a17b0b52-2267-ac92-3f41-ca950bdf5104/hcdiag-....tar.gz waiting for command to finish execution on node terraform-enterprise-dbc4df486-4cnwf
The Terraform Enterprise container logs show an error indicating the multipart upload to the S3 bucket failed.
[ERROR] commander: error executing command: error="error uploading support bundle: blob (key \"terraform-enterprise/support-bundles/.../support-bundle.tar.gz\") (code=Unknown): upload multipart failed, upload id: MKPhO08e...##..., cause: operation error S3: CompleteMultipartUpload, https response error StatusCode: 400, RequestID: N6N5ZTC0DXYHQ218, HostID: RdVkF+M5...##..., api error InvalidPart: One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag."
Prerequisites
- Terraform Enterprise version
v202502-1 - An AWS S3 bucket configured for support bundle storage
Cause
Terraform Enterprise version v202502-1 contains a known issue that affects the support bundle upload process to AWS S3 buckets.
Solutions
Solution 1: Upgrade Terraform Enterprise
The recommended solution is to upgrade to Terraform Enterprise version v202503-1 or a later version, which contains a fix for this issue.
Solution 2: Manually Copy Log Files
If an immediate upgrade is not possible, you can manually copy the log files from the Terraform Enterprise container to your local machine.
For Kubernetes environments, use the following command.
$ kubectl cp ./terraform-enterprise -n terraform-enterprise <pod-id>:/var/log/terraform-enterprise
For Docker environments, use the following command.
$ docker cp ./terraform-enterprise <container-id>:/var/log/terraform-enterprise
Outcome
After applying one of the solutions, you will be able to retrieve the Terraform Enterprise logs required for troubleshooting.
Additional Information
- For guidance on upgrading your installation, refer to the official Terraform Enterprise upgrade documentation.