Issue
- The following expired licensing error displays in Liferay PaaS logs:
ERROR [main][LicenseManager:-1] Digital Enterprise Unlimited Enterprise-Wide license is expired
Environment
- Liferay PaaS
Resolution
-
There are two workarounds that will work to resolve the issue:
-
Delete the cached
.lifile in/opt/liferay/data/licenseand restart Liferay. -
Using the Liferay shell, on each node, delete the cached
.lifile in/opt/liferay/data/license, and then copy the.xmlfile in/mnt/dxpcloud/licenseto/opt/liferay/deploy.
-
- The first workaround requires a Liferay restart whereas the second one does not. Neither results in any downtime.
Additional Information
-
When a Liferay PaaS environment is clustered, even though the license is deployed on every node, it only shows as registered on the node where it was first deployed.
-
In other words, only the first deployment gets processed. The other nodes still show the expiring license, which results in an error message being displayed to the user.
-
You will only see this error message if you are accessing Liferay on one of the nodes where the license is not registered.