Problem
Attempt to generate a Support Bundle for Terraform Enterprise (TFE) Flexible Deployment Options (FDO) as documented here fails.
Following command used:
$tfectl support bundle
Error: unexpected EOF
Cause
Content of /var/log/terraform-enterprise
grew large (approx. 2 GB or more) and it could not be uploaded to Object Storage (e.g. AWS S3 bucket, Azure Blob Storage or Google Cloud Storage)
Solution
The issue has been permanently resolved in TFE v202404-2.
As a workaround for older versions, you can collect the requested information for HashiCorp Support by the following steps:
-
Gain access to the container CLI (Docker or Kubernetes) as shown here
-
Execute the following command
tfe-support-bundle-generate
This will generate a support bundle, but makes it available as a download link on TFE itself instead of uploading it to Object Storage - Download the support bundle
-
Execute the following command to disable the download for the support bundle
tfe-support-bundle-disable-downloads
-
or
-
Manually zip the content of
/var/log/terraform-enterprise
Outcome
The logs from TFE FDO were successfully collected.