Problem
The specific error below is encountered when attempting to start up Terraform Enterprise (TFE) FDO:
==> /var/log/terraform-enterprise/terraform-enterprise.log <== ... 2023-08-04T22:39:19.281Z [ERROR] terraform-enterprise: check failed: name=database duration=1m0.001926008s err=timeout ... 2023-08-04T22:39:19.281Z [ERROR] terraform-enterprise: the following startup checks failed: checks=["database"] 2023-08-04T22:39:19.281Z [ERROR] terraform-enterprise: startup: error="startup checks failed"
Cause:
- The value you have configured for
TFE_DATABASE_NAME
is not found to exist within the external PostgreSQL instance.- At the time of this writing, this database is required to exist within the PostgreSQL instance prior to the TFE application launching for the first time.
- At the time of this writing, this database is required to exist within the PostgreSQL instance prior to the TFE application launching for the first time.
Solution:
- Manually create the desired database within the existing PostgreSQL instance, then attempt to run the TFE application again.
Additional Information
- If the issue still persists, and your company has a paid support plan with HashiCorp Support, please open a support ticket with HashiCorp Support through the Support Portal, and mention that you performed the steps within this article: https://support.hashicorp.com