Legacy Knowledge Base
Published Jun. 30, 2025

Unable to revert hotfix

Written By

Kanchan Bisht

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

  • In some circumstances, users are unable to revert back their hotfix from their environment. The cause is often due to corrupt hotfix files or missing files in this environment, which could happen as a result of applying modifications to a running DXP server.
  • Sometimes, users receive the following error line: 
    • Exception occurred during the restore of the backup
    • ERROR [Patcher:-1] The command has failed. Please see the log for details
  • After executing'./patching-tool.sh auto-discovery' command, the error 'Liferay home was not found in the specified directory' is observed 

Environment

  • Liferay DXP [all version]

Resolution

  • When a hotfix is installed in any environment, the following files are found in the application server's 'webapps/ROOT/WEB-INF' path.
    hotfix-xyz-backup.zip,
    hotfix-xyz-new archives.json,
    hotfix-xyz-new files.json,
    hotfix-xyz-renames.json
  • The root of the issue here [in this use case] was the absence of hotfix-xyz-backup.zip from this path, which was fixed by re-adding this file to this path using the same patching tool version that was used to install this hotfix. 

  • Besides that, the error line 'ERROR [c:-1] Cannot proceed with the install - the following files are missing: [../webapps/ROOT/WEB-INF/hotfix-xyz-backup.zip]' can sometimes be found in patching log files.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base