Problem
Having followed the instructions to update the license file there are no errors but after syncing the old expiration date is still showing.
Overview of possible solutions (if applicable)
Solutions:
-
Backup app-config
- Export current TFE settings to a
.json
file by running this command:replicatedctl app-config export --hidden > ptfe-settings.json
- Export current TFE settings to a
-
stopped application and replicated services
-
replicatedctl app stop
- sudo systemctl stop replicated replicated-ui replicated-operator
-
- make a backup of var/lib/replicated directory
-
- cp -R /var/lib/replicated /var/lib/replicated_backup
-
-
remove /var/lib/replicated
-
-
rm -R /var/lib/replicated
-
-
- Start Replicated service
- sudo systemctl start replicated replicated-ui replicated-operator
- Watch docker logs for replicated to start back up.
- docker logs replicated -f
- replicatedctl app start
-
View detailed information on the status of Terraform Enterprise use the command
replicatedctl app status
. This will display the currentState
of the application as well as theDesiredState
.$ replicatedctl app status [ { "AppID": "76519cce25564f315111cf0030829e3d", "Sequence": 421, "PatchSequence": 0, "State": "started", "DesiredState": "started", "Error": "", "IsCancellable": false, "IsTransitioning": false, "LastModifiedAt": "2020-04-23T10:44:19.34554991Z" } ]
-
Use the following command to load the new license.
The license filename must be the same name and located in the same location indicated in the ptfe_settings.json file.$ replicatedctl license-load < /path/to/license.rli
-
Use the
replicatedctl license inspect
command to inspect the license information. TheExpirationTime
value in the output indicates the expiration date/time in UTC.$ replicatedctl license inspect [ { "ID": "670bd320b95245325d80be703330f9b3", "Assignee": "Test Customer Name", "LegacyChannelName": "Stable", "ChannelID": "", "Channels": [], "ExpirationTime": "2021-06-30T00:00:00Z", "ExpirationPolicy": "ignore", "IsExpired": false, "IsActivationRequired": false, "ActivationEmail": "", "Fields": [ { "FieldName": "max_hosts", "FieldTitle": "Maximum Number of Hosts", "FieldType": "Integer", "Value": "9999" }, { "FieldName": "min_hosts", "FieldTitle": "Minimum Number of Hosts", "FieldType": "Integer", "Value": "1" } ] } ]
-