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 backupERROR [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.zipfrom 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
- Installing a hotfix
- Reverting a hotfix while keeping your existing Fix Pack
- Liferay always recommends performing any patch, hotfix, infra modifications, or property changes after stopping the DXP server and before restarting it, clear all temp directories from liferay_home.