Legacy Knowledge Base
Published Sep. 10, 2025

If a Staging publication is on progress and the server is shut down, publication stays on queue and no further publications are possible

Written By

Alfonso Abad

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.

Issue

  • If a publication on staging is made and the server is shut down, the publication will stay on queue on start-up and, even if cancelled, no more staging publications can be made.
  • The following java class stays queued:
BackgroundTaskResult backgroundTaskResult = 
backgroundTaskExecutor.execute(backgroundTask); 
status = backgroundTaskResult.getStatus(); 
statusMessage = backgroundTaskResult.getStatusMessage(); 

catch (DuplicateLockException e) { 
status = BackgroundTaskConstants.STATUS_QUEUED; 

Environment

  • Portal 6.2
  • DXP 7.0
  • DXP 7.1
  • DXP 7.2

Resolution

  • Cancel all pending staging publications.
  • Stop all Liferay servers.
  • Clear the Lock_ table on the Database (Via DB console or Groovy script)

For example, on the portal, run the following Groovy script:

com.liferay.portal.kernel.backgroundtask.BackgroundTaskManagerUtil.cleanUpBackgroundTasks();
  • Start up the servers.

Additional Information

  • Be careful when suggesting a DB alteration to the customer.
  • On Liferay Cloud currently the only solution is via Groovy.
  • Once the server is starting, it will create again a Lock_ table, but it would be empty.
  • LPP-34173
Did this article resolve your issue ?

Legacy Knowledge Base