Intermittent Invalid Subscription Error Messages in the LCS Platform

This article documents a known issue in the Liferay Connected Services (LCS) Platform—versions 4.0.0 and 4.0.1—that causes intermittent invalid subscriptions error messages in the instance's UI, as well as in the LCS Client and Liferay logs. It applies to projects where the number of Allowed Servers is equal to the number of Used Servers for a specific subscription.

Steps to Reproduce

  1. Create an environment based on a subscription with 1 Allowed Server
  2. Generate the LCS token, place it in the {liferay-home}/data folder and start the Liferay DXP instance
  3. Disconnect from the internet for two minutes (not more than 5-6 minutes)
  4. Reconnect the internet connection

Expected Result

The LCS Client reconnects immediately without any error messages. 

Actual Results

  • LCSHandshakeException is published in the LCS Client logs
2018/05/15 09:52:46 INFO  [LCS Worker 0][LCSGatewayUnavailableRunnable:205] Unable to complete handshake
java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.liferay.lcs.exception.LCSHandshakeException: {"errorCode": 1, "message": "No entity exists with
 the criteria {elastic: false , increment: true , lcsProject: 186306 , processorCoresTotal: 4 , subscriptionType: PRODUCTION }", "status": 404}
  • If the fix pack or hotfix build date is before 17 Nov 2017, this error may also be displayed in the UI as a Connection Grace Period message.
  • The LCS Client can only connect 2-3 minutes after the network connection is restored


The solution to this issue will be released in the LCS Platform 4.1.0 version.

Status: Workaround Available

In the meantime, affected customers can create a Help Center ticket with the Patch Management component to receive an updated fix pack or hotfix. This will alleviate the symptoms by introducing a one-hour delay of the grace period messages and by extending the grace period from 7 days to 30 days.

Additional Information

Customers may be facing a different issue:

  • If the LCS connection is not restored 2-3 minutes after the connection is re-established
  • If the subscription used by the affected servers has more Allowed Servers than Used Servers

In these cases, please review the LCS Troubleshooting guide and contact the Liferay Support team.

You may also want to read our FAQ for Liferay Connected Services (LCS).

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0