How to stop the new instances of the Liferay service from receiving requests during a deployment


  • During a deployment when new instances are being created and can receive request while the deployment is still being executed. 
  • Also the following warning is shown on the logs:
WARN [http-nio2-8080-exec-19] [UploadServletRequestImpl: 255] Unable to parse upload request: the request doesn't contain a multipart / form-data or multipart / mixed stream, content type header is null


  • Liferay Cloud


  • You can set the property: publishNotReadyAddressesForCluster: false on your LCP.json file for the Liferay instances being started (created by the deploy) to not receive any requests until they are ready.


Was this article helpful?
1 out of 3 found this helpful