Introduction
A Terraform Enterprise instance operates within a collective set of containers. Each individual container is launched with specific parameters and generates log messages into different locations. Terraform Enterprise, therefore, is equipped with a tool to perform the task of collecting the logs from each container as well as hardware and system information from the machine that Terraform Enterprise is running on.
Use Case
When Terraform Enterprise fails to perform normal operations, it is often necessary to review the application’s internal logging to determine the root cause. A support bundle is commonly recommended as a starting point to investigate the internal components due to the comprehensive information it gathers in order to provide the context of events and symptoms to system administrators and HashiCorp Support.
Procedure
Standalone Installation
Option 1 - Terminal console
-
Open a terminal session and log in to the Terraform Enterprise host machine using SSH.
-
Execute command
replicatedctl support-bundle
and the output support bundle file is generated under/var/lib/replicated/support-bundles
. Please note that it may take time to generate a support bundle.ptfe@ptfe:~$ replicatedctl support-bundle [sudo] password for ptfe: Support bundle file created at /var/lib/replicated/support-bundles/replicated-support155601372.tar.gz
-
Make sure that the size of the generated support bundle file is greater than 4kb, otherwise proceed to the article Terraform Enterprise Support Bundles Are Empty and perform the steps in the Solutions section to reduce the footprint of the support bundle. Once the actions have been taken, attempt to generate a new bundle with the command in the previous step.
-
If you are working with HashiCorp Support, upload the support bundle to the ticket by following the How To Add Bundles and Files to Zendesk Support Tickets guide.
Option 2 - UI Interface
- Navigate to
https://<TFE HOSTNAME>:8800/support
. - Click
Download Support Bundle
to begin generating and downloading the support bundle. If the download times out, please consider using Option 1 (generating via a terminal session) or use the Terraform Enterprise Support Bundles Are Empty guide to reduce the footprint of the support bundle. - If you are working with HashiCorp Support, upload the support bundle to the ticket following the How To Add Bundles and Files to Zendesk Support Tickets guide.
Active/Active Installation
- The only option available in the Active/Active installation is using the terminal console with the
tfe-admin
command, please follow the support bundle guide to generate the support bundle for Active/Active installation. - Make sure that the size of the generated support bundle file from each node is greater than 4kb, otherwise proceed to the article Terraform Enterprise Support Bundles Are Empty and perform the steps in the Solutions section to reduce the footprint of the support bundle on the affected nodes. Once the actions have been taken, attempt to generate a new bundle with the command in the previous step.
- If you are working with HashiCorp Support, upload the support bundle to the ticket by following the How To Add Bundles and Files to Zendesk Support Tickets guide.
Â