Problem
When you attempt to apply a new Replicated license file to Terraform Enterprise, the process may fail without an immediate error in the user interface.
After navigating to the Replicated console at https://TFE_HOSTNAME:8800/license and clicking Sync License, you can find the following error by inspecting the Replicated container logs.
Run the following command to view the logs:
$ docker logs replicated
The command output displays the error:
Unable to sync license: Error: Internal Server Error
Prerequisites
- Terraform Enterprise
Cause
This issue occurs when the new license file is generated from a different Replicated account than the one that originally issued the current license.
Solutions
There are two possible solutions for this issue.
Solution 1: Re-initialize Terraform Enterprise with the New License
This approach involves re-creating the Terraform Enterprise instance and providing the new license during the initialization process.
Note: This is a destructive action and will result in a new, clean installation of Terraform Enterprise. Ensure you have appropriate backups if you need to preserve existing data.
Solution 2: Obtain an Updated License File
The new license must be issued from the same Replicated account as the original license to be compatible. Contact your HashiCorp account team to request an updated license file from the correct organization.