Legacy Knowledge Base
Published Jun. 30, 2025

LCS is reporting Unable to validate the environment token file

Written By

Brian Suh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • In a Liferay PaaS environment, the Liferay service is printing the following error:

    ERROR [LCS Worker 3][LCSClusterEntryTokenCheckTask:85] Unable to validate the environment token file

Environment

  • Liferay DXP 7.2 service in a Liferay PaaS environment

Resolution

  • As Liferay Connected Services (LCS) has been deprecated for some time, this may be an indication that the environment that is in use is using an older patch version.
  • If you are unable to update to our more recent Fix Packs or Updates, you will need to remove the following files from ${LIFERAY_HOME}/osgi/marketplace (${LIFERAY_HOME} corresponds with /opt/liferay) which is located in the Liferay service:
    - Liferay Connected Services Client - Impl.lpkg
    - Liferay Connected Services Client - API.lpkg

    Manual deletions will not work as the files are included in the Liferay image itself. As an alternative, you can create a shell script that is executed upon startup as follows:

    #!/bin/sh

    echo "Deleting LCS..."
    rm -rvf ${LIFERAY_HOME}/osgi/marketplace/Liferay\ Connected\ Services\ Client*.lpkg
    rm -rf ${LIFERAY_HOME}/osgi/state/
    echo "Done."

${LIFERAY_HOME} corresponds to /opt/liferay in the Liferay PaaS service.

For further instructions on including a shell script in your Liferay service, please see the links in the "Additional Information" section.

 

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base