Installing a Hotfix

Keeping your Liferay instance up-to-date is a critical part of maintenance in Liferay Cloud. If you have to patch an issue before it appears in the next version of Liferay, however, you can deploy a hotfix. Hotfixes are a temporary solution provided by Liferay Support to fix these issues until you are ready to update to the fixed version.

Here, you’ll walk Kyle through the process of requesting and installing a hotfix. He has already scheduled downtime for the site so the hotfix can be deployed and tested in production.

Request a Hotfix

Request a hotfix if you need a short-term fix for a specific issue in Liferay DXP. This can be a known issue that has been recently fixed or a new issue that you discovered in your Liferay instance. In either case, create a request on Liferay’s Help Center.

Request hotfixes by creating tickets on Liferay's Help Center.

Create a new ticket, and a Liferay Support staff member will respond on the ticket to assist you. If you need a hotfix to resolve your issue, Liferay will walk you through the process to provide one for you on the ticket.

You’ll receive email updates whenever Liferay staff updates your ticket, including when your hotfix is ready. Once the hotfix is ready to download, download it from the ticket you created with either of the links on the page.

Download a hotfix via the comment including it or the list of attachments on the ticket.

Create a New Build with Your Hotfix

Once you have the hotfix, commit it to your repository and push it into a new CI build.

  1. In your project repository, copy the hotfix into the liferay/configs/common/patching/ folder.

    Place the hotfix in the common/ folder (so it applies to all environments) to use the same build for both UAT and production.

  2. Add and commit the hotfix to your repository.

    git add .
    
    git commit -m "Install new hotfix for issue..."
    
  3. Push up the branch with your changes.

    git push origin [branch_name]
    

Liferay Cloud detects your changes and creates a new build in CI that you can deploy. Wait a few minutes for the build to complete.

Deploy and Test the Hotfix

Test the hotfix in your UAT environment before applying it to production.

  1. In the Cloud console, click Builds at the top of the screen.

  2. When your new build at the top of the list completes, click Actions ( Actions menu ) → Deploy to…

    Deploy the build with your hotfix to UAT first.

  3. In the Select Environment drop-down menu, select your UAT environment.

  4. Check the checkboxes under Deploy Confirmation to acknowledge the impact of the change.

  5. Click Deploy Build.

    Your UAT environment’s services restart using your hotfix after a delay.

  6. Once the services are back up and running, log into your UAT Liferay instance and test your issue to confirm the hotfixes resolved it.

Deploy to Production

Once you’ve confirmed the hotfix works correctly, repeat the deployment process for your production environment during your reserved downtime. Remember to remove the hotfix when you later update to the Liferay version that fixes the same issue.

Congratulations! You’ve completed the self-managed Cloud Configuration module of the Cloud Administrator course.

Next: Cloud Development Life Cycle.

Relevant Concepts

Ask

Capabilities

Product

DXP

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy