Self-Hosted License Server trusted storage cleanup
You suddenly experience issues with the licensing component, such as frequent "License Lost" occurences or not being able to retrieve your licenses in Tosca Commander. You are using a Flexera self-hosted license server.
Performing the steps below will help improve the performance and stability of your self-hosted license server. Note that during this procedure, Tosca will be unavailable to users. Please notify users in advance of performing these steps!
- On the machine on which the license server is installed, open the command prompt in admin mode.
To do so, press the Windows key and type in Command Prompt. Right-click Command Prompt and select Run as administrator from the context menu.
- Navigate to <License Server Install Directory>\License Server Deployment\<64-bit version of license server>\server
- Stop the license server service by using flexnetls.bat -stop.
- In Windows Explorer, navigate to the license server's trusted storage, commonly located at C:\Windows\ServiceProfiles\NetworkService\flexnetls\TRICLIC1.
You can also search for the TRICLIC1 directory in Windows Explorer.
- In the TRICLIC1 directory, delete all files with the extensions .mv.db and .ks.
- Restart the License Server service by using flexnetls.bat -start.
If your license server is installed as an online license server, the cleanup is hereby complete. The system will automatically retrieve activated licenses within the next couple of minutes; the time frame depends on the quality of your internet connection. This process will be logged in the license server log file. Once the retrieval process is complete, you can start Tosca Commander and verify that all options are enabled.
If your license server is installed as an offline license server, you have to manually retrieve activated licenses. To do so, follow the steps below:
- On the machine where Tosca Commander is installed, open Tosca Commander. Go to the Project menu and select License.
- Click Activate and select License Server.
- Enter an activation ID with all zeroes: 0000-0000-0000-0000-0000-0000-0000-0000. The system then creates an offline capability request file and saves it to your machine.
- Log on to the Tricentis Support Portal and navigate to License overview.
- Upload the capability request file you just created.
- Once the upload is complete, refresh the page. Click the License Requests tab.
- Download the newly created response file. Check the Created on column for time and date to make sure you download the correct response file.
- In Tosca Commander, navigate back to Project->License->Activate->License Server. Then click Activate from file.
- Select the response file you downloaded from the Support Portal and click OK.
If the system generates an error message saying that the Activation Id is not valid, click OK.
- Open the Manage tab and click Refresh.
This retrieves all your previously available licenses. In Tosca Commander, all options are once again enabled.
If you use an offline license server, we recommend you use the automated synchronization tool described in this article on a regular basis (e.g. once a week) to keep your license server performant and stable.