After upgrading Terraform enterprise, users may encounter instances that fail to load while replicated services enter a stop/start loop.
The Replicated daemon is pulling the incorrect image and causes TFE upgrade to fail.
To verify if this is currently taking place on the TFE instance, run the command below:
docker images | grep replicated/replicated
If the current tags are linking to two separate versions the system will fail to pull the most recent image and will enter a restart loop.
The issue can be fixed by running the following three commands to ensure that the correct, current image is pulled:
docker tag quay.io/replicated/replicated:current replicated/replicated:current
docker tag quay.io/replicated/replicated-ui:current replicated/replicated-ui:current
docker tag quay.io/replicated/replicated-operator:current replicated/replicated-operator:current
Then, perform a full restart of the replicated services to ensure that the changes are applied with this command:
systemctl restart replicated replicated-ui replicated-operator
The first command run above will reflect the correct, current image version and the TFE upgrade will succeed.