Getting error while migrating RHPAM 7 between minor versions
Issue
- I am upgrading
Red Hat Decision Manager
from 7.3.0 to 7.4.0. The upgrade from 7.3.0 to 7.3.1 was successful, but when I was upgrading from 7.3.1 to 7.4.0 then I am getting below error message:
[user@localhost rhdm-7.4.0-update]$ ./apply-updates.sh /home/user/jboss-dm-7.4/jboss-eap-7.2/standalone/deployments/decision-central.war rhdm-decision-central-eap7-deployable
JAVA_HOME system variable not set, using Java binary found on PATH
07:45:55.902 [main] INFO - File blacklist.txt found at /home/user/rhdm-7.4/rhdm-7.4.0-update/blacklist.txt.
07:45:56.176 [main] INFO - Backing-up (copying) root directory /home/user/jboss-dm-7.4/jboss-eap-7.2/standalone/deployments/decision-central.war to ./backup/2019-08-01-07-45-55-849/rhdm-decision-central-eap7-deployable.
07:45:57.720 [main] INFO - Removing old files from directory /home/user/jboss-dm-7.4/jboss-eap-7.2/standalone/deployments/decision-central.war
07:45:59.022 [main] INFO - Applying updates to directory /home/user/jboss-dm-7.4/jboss-eap-7.2/standalone/deployments/decision-central.war
07:45:59.913 [main] INFO - File blacklist.txt found at /home/user/rhdm-7.4/rhdm-7.4.0-update/blacklist.txt.
07:45:59.920 [main] INFO - Backing-up (copying) root directory /home/user/jboss-dm-7.4/jboss-eap-7.2/docs/licenses-rhba to ./backup/2019-08-01-07-45-55-849/rhdm-decision-central-eap7-deployable-licenses.
07:45:59.922 [main] ERROR - Unexpected error occurred when backing-up the licenses!
java.io.FileNotFoundException: Source '/home/user/jboss-dm-7.4/jboss-eap-7.2/docs/licenses-rhba' does not exist
- We are trying to upgrade
Red Hat Process Automation Manager
from 7.1.0 to 7.9.1. We have upgraded till RHPAM 7.3.1 without any issues. In process of migrating the instance from RHPAM 7.3.1 to 7.4.0 we are facing the below issue.
# ./apply-updates.sh /opt/rhpam710/rhpam71/jboss-eap-7.2/standalone/deployments/business-central.war rhpam-business-central-eap7-deployable
JAVA_HOME system variable not set, using Java binary found on PATH
09:14:24.946 [main] INFO - File blacklist.txt found at /var/tmp/RHPAM710upgrade/upgradezip/rhpam-7.4.0-update/blacklist.txt.
09:14:25.265 [main] INFO - Backing-up (copying) root directory /opt/rhpam710/rhpam71/jboss-eap-7.2/standalone/deployments/business-central.war to ./backup/2021-02-23-09-14-24-903/rhpam-business-central-eap7-deployable.
09:14:27.847 [main] INFO - Removing old files from directory /opt/rhpam710/rhpam71/jboss-eap-7.2/standalone/deployments/business-central.war
09:14:28.655 [main] INFO - Applying updates to directory /opt/rhpam710/rhpam71/jboss-eap-7.2/standalone/deployments/business-central.war
09:14:29.457 [main] INFO - File blacklist.txt found at /var/tmp/RHPAM710upgrade/upgradezip/rhpam-7.4.0-update/blacklist.txt.
09:14:29.476 [main] INFO - Backing-up (copying) root directory /opt/rhpam710/rhpam71/jboss-eap-7.2/docs/licenses-rhba to ./backup/2021-02-23-09-14-24-903/rhpam-business-central-eap7-deployable-licenses.
09:14:29.478 [main] ERROR - Unexpected error occurred when backing-up the licenses!
java.io.FileNotFoundException: Source '/opt/rhpam710/rhpam71/jboss-eap-7.2/docs/licenses-rhba' does not exist
at org.apache.commons.io.FileUtils.checkFileRequirements(FileUtils.java:1405)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1368)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1268)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1237)
at org.jboss.brmsbpmsuite.patching.client.DirectoryPatcher.backup(DirectoryPatcher.java:42)
at org.jboss.brmsbpmsuite.patching.phase.BasePatchingPhaseRunner.run(BasePatchingPhaseRunner.java:24)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runPhases(ClientPatcherRunner.java:81)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runLicensesPatcher(ClientPatcherRunner.java:69)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.run(ClientPatcherRunner.java:41)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherApp.commonMain(ClientPatcherApp.java:53)
at org.jboss.brmsbpmsuite.patching.client.BPMSuiteClientPatcherApp.main(BPMSuiteClientPatcherApp.java:6)
09:14:29.478 [main] ERROR - Error occurred during the execution!
org.jboss.brmsbpmsuite.patching.client.ClientPatcherException: Unexpected error occurred when backing-up the licenses!
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runPhases(ClientPatcherRunner.java:85)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runLicensesPatcher(ClientPatcherRunner.java:69)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.run(ClientPatcherRunner.java:41)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherApp.commonMain(ClientPatcherApp.java:53)
at org.jboss.brmsbpmsuite.patching.client.BPMSuiteClientPatcherApp.main(BPMSuiteClientPatcherApp.java:6)
Caused by: java.io.FileNotFoundException: Source '/opt/rhpam710/rhpam71/jboss-eap-7.2/docs/licenses-rhba' does not exist
at org.apache.commons.io.FileUtils.checkFileRequirements(FileUtils.java:1405)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1368)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1268)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1237)
at org.jboss.brmsbpmsuite.patching.client.DirectoryPatcher.backup(DirectoryPatcher.java:42)
at org.jboss.brmsbpmsuite.patching.phase.BasePatchingPhaseRunner.run(BasePatchingPhaseRunner.java:24)
at org.jboss.brmsbpmsuite.patching.client.ClientPatcherRunner.runPhases(ClientPatcherRunner.java:81)
... 4 common frames omitted
Below are the contents of the folder /opt/rhpam710/rhpam71/jboss-eap-7.2/docs
drwxrwxr-x. 3 user user 47 Jan 7 2019 examples
drwxrwxr-x. 2 user user 4096 Jan 7 2019 licenses
drwxrwxr-x. 2 user user 16384 Feb 23 10:15 schema
Environment
- Red Hat Process Automation Manager (PAM)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.