Terraform Enterprise fails to start and Replicated reports a status like this:
Container <tfe-container-name> failed:
- The reason for the startup failure is in the container that is named, but not shown in the Replicated status.
- Run the following command, substituting the name of the failure container:
docker logs <tfe-container-name>
The output of the docker logs command should give more details on the failure.
For example the initial error might be
Container tfe-postgresql-setup failed: Timeout waiting for event Postgres setup"
Then you would run the command for that container "tfe-postgresql-setup"
$docker logs tfe-postgresql-setup
2023-04-26T11:27:25.489175000Z Is the server running on that host and accepting TCP/IP connections?
2023-04-26T11:27:26.522317000Z psql: error: connection to server at "tfe-postgresql-20211014181753650300000002.cqwa1vwg6k98.us-east-1.rds.amazonaws.com" (10.165.188.24), port 5432 failed: Connection refused
In this scenario, it is clear that the Postgres server is unavailable and you would need to contact the DBA to resolve.
You may get different containers and different outputs, but you should get some actionable information.
If you cannot resolve this, please contact HashiCorp support and indicate both the initial error and the output of the "docker logs" command.