Introduction
Problem
With Terraform Enterprise version v202502-1 the generation of the support bundle fails:
tfectl support bundle
Support bundle generated successfully:
file=/run/terraform-enterprise/support-bundles/a17b0b52-2267-ac92-3f41-ca950bdf5104/hcdiag-2025-03-05T135134Z.tar.gz
Uploading support bundle: filename=/run/terraform-enterprise/support-bundles/a17b0b52-2267-ac92-3f41-ca950bdf5104/hcdiag-2025-03-05T135134Z.tar.gz
waiting for command to finish execution on node terraform-enterprise-dbc4df486-4cnwf
The support bundle fails to be uploaded to the S3 bucket on AWS with the following message:
2025-03-05T13:46:22.410Z [ERROR] commander: error executing command:
error="error uploading support bundle: blob (key \"terraform-enterprise/support-bundles/2025-03-05T13:43:25Z/terraform-enterprise-dbc4df486-4cnwf/terraform-enterprise-dbc4df486-4cnwf-support-bundle-2025-03-05T13:43:25Z.tar.gz\")
(code=Unknown): upload multipart failed, upload id: MKPhO08e.7YwerabkDhBL7Bz__enVybq49j7RofeC4BuIp1eKmtUp4YK88hJKa66f62vL_Dnxq13E0bCobseNeh7QDt1wsip_3eQLZlxSP0po7fW5Vehs5DmWVTMVdb3a6f2hLpeZLaOgrjha2ny33MG0liF6._GpII3efdSCC4-,
cause: operation error S3: CompleteMultipartUpload, https response error StatusCode: 400, RequestID: N6N5ZTC0DXYHQ218, HostID: RdVkF+M5ps0H3lAI1imDtG1Fb0K5xo19puypxWUPQU84n4fNgGaqJ9ya0QG5mLNFAMQafnYuQ21j7QWPxWl+Qr8dgFSpxkLw,
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
- S3 bucket is on AWS
Cause
Version v202502-1 of Terraform Enterprise contains a bug related to uploading the support bundle to an AWS S3 bucket.
Solution
-
Upgrade to Terraform Enterprise version v202503-1 or higher
or
- Copy the log files to your own local machine
Example: Kubernetes
kubectl cp ./terraform-enterprise -n terraform-enterprise <pod-id>:/var/log/terraform-enterprise
Example: Docker
docker cp ./terraform-enterprise <container-id>:/var/log/terraform-enterprise
Outcome
Get the required Terraform Enterprise logs.