IBM Support

Terraform Enterprise startup: panic: runtime error: invalid memory address or nil pointer dereference

Troubleshooting


Problem

Starting Terraform Enterprise fails with the following error in the logs

panic: runtime error: invalid memory address or nil pointer dereference

 

Prerequisites

  • Terraform Enterprise version 1.2.0 or 1.2.1

 

Cause

The primary error is a configuration issue in the compose.yaml file of Terraform Enterprise.

An example of a configuration issue is the following where it is pointing to a file that doesn't exist. 

  TFE_TLS_CA_BUNDLE_FILE: /etc/ssl/private/terraform-enterprise/bundle-wrong.pem

When starting the environment you see the panic error with version 1.2.0/1.2.1 specifically. Using any other version you see the actual error in the logs like below

tfe-1 | {"component":"terraform-enterprise","log":"2026-03-23T09:10:55.782Z [ERROR] terraform-enterprise: startup: error="failed retrieving configuration: failed generating configuration: error constructing the default CA bundle: : open /etc/ssl/private/terraform-enterprise/bundle-wrong.pem: no such file or directory""}


Solution

This issue has been fixed in Terraform Enterprise versions: 1.2.2, 2.0.0 or higher, hence the application should be upgraded to use one of these versions for proper messaging in the logs.

The panic error is specific only to versions 1.2.0 and 1.2.1.

Outcome

TFE version 1.2.2, 2.0.0 and higher will show the exact error message in the logs and this help users identify the problem from thand fix it.

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH5YK","label":"IBM Terraform Self-Managed"},"ARM Category":[{"code":"a8mgJ0000000Dy9QAE","label":"Terraform-\u003ETFE Operations"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.2.0"}]

Document Information

Modified date:
23 March 2026

UID

ibm17267134