Problem
When starting the Terraform Enterprise application, the installer dashboard at https://$TFE_HOSTNAME:8800 may show the error: “Some containers have stopped unexpectedly.”
This issue can be caused by a problem with the RabbitMQ container. Reviewing the logs for this container may show an 'invalid credentials' error.
To review the RabbitMQ logs, connect to the instance using SSH and run the following command.
$ docker logs rabbitmq
Example error output:
Error: amqp://rabbitmq:5672: not ready yet: Exception (403) Reason: "username or password not allowed"PLAIN login refused: user 'hashicorp' - invalid credentials
Cause
This error can occur if the Replicated component is reinstalled over an existing Terraform Enterprise installation without first deleting the existing rabbitmq Docker volume.
A new random RabbitMQ password is generated during each Replicated installation. However, the old credentials remain cached on the rabbitmq Docker volume, causing a login failure during application startup.
Solution
To resolve this issue, you must stop the application and remove the rabbitmq Docker volume.
Stop the Terraform Enterprise application and remove the volume.
$ replicatedctl app stop $ docker volume rm rabbitmq
Start the Terraform Enterprise application.
$ replicatedctl app start
Outcome
After starting the application, monitor its status to confirm it transitions to a started state. Once started, Terraform Enterprise should be accessible.
$ replicatedctl app status
Additional Information
For more details on managing the application, please refer to the official Terraform Enterprise administration documentation.