Search code examples
liferay

Running validation because of mismatched checksum for liferay-target-platform


Every time I start Liferay, I get:

Running validation because of mismatched checksum for liferay-target-platform
LPKG validation time 01:59s

How can I avoid wasting these 2 minutes every time I restart?

Full message with timestamps and fluff:

03:33:43,463 INFO  [Start Level: Equinox Container: e0662c6f-3135-0017-1c4b-98e88b99c01c][LPKGIndexValidator:159] Running validation because of mismatched checksum for liferay-target-platform
03:35:40,202 INFO  [Start Level: Equinox Container: e0662c6f-3135-0017-1c4b-98e88b99c01c][LPKGIndexValidator:266] LPKG validation time 01:59s

Relevant Liferay source code: LPKGIndexValidator.java


Solution

  • Please have a look at the Liferay blog. To avoid validation you can try to set

    module.framework.properties.lpkg.index.validator.enabled=false
    

    in your portal-ext.properties file. However, as mentioned in the blog post, this is not recommended on production environments.