XRAY: How to overcome the error "License has been expired"?

XRAY: How to overcome the error "License has been expired"?

AuthorFullName__c
Elina Floim
articleNumber
000005202
ft:sourceType
Salesforce
FirstPublishedDate
2022-01-23T13:48:42Z
lastModifiedDate
2022-01-23
VersionNumber
4

If you have come across the following error in the xray-server-service.log: 

2021-12-27T06:55:14.208Z [33m[jfxr ][0m [1m[31m[ERROR][0m [        ] [license_mgr:51        ] [main        ] License has been expired
There are a few actions that can be taken to ensure that the license being utilized is valid:

1. The license files are located on the Artifactory host machine in the following path: $JFROG HOME/var/etc/artifactory/
a. For an Artifactory standalone instance, the license key can be found in the artifactory.lic file
b. For an HA Artifactory, the licenses can be found in the artifactory.cluster.license file. The licenses should be separated with two blank lines
2. If the licenses are valid but the error persists,it is possible that an Xray trial license is still being used (in case it was used before). This can be verified by running the following request:
curl -u <user>:<password> http://jfrog_url/xray/api/v1/license
If the request produces an empty response, there is no trial license available. If a response with the license is returned, a trial license is still being used. The trial license can be then removed by following the steps mentioned here.