LCS is reporting Unable to validate the environment token file

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

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助