Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Cadet 3rd Class Cadet 3rd Class
Cadet 3rd Class
137 views

Error msg received testing upgrade from 10.63 IP4 to 2020.10

Hello, 

I am trying to test upgrade from Omi 10.63 IP4 (2017.11) to 2020.10 using   ./upgrade.sh -d -silent. 
We recently cloned our Omi Server (DP & GW) and the DB server (Oracle) 

the upgrade is failing with the following message.  Not sure if something was missed with the configuration when it was cloned (Im new to Omi/OBM)  former Admin left the company, no documentation left behind.  

upgrade is failing with the following error msg. 

G4JPROPS=/distro/Update/update_log.properties
+ [ -e /var/opt/OV/tmp/update_log.properties ]
+ LOGOPTIONS='-Dlog4j.configuration=file:/distro/Update/update_log.properties -Dlog.folder=/var/opt/OV/log'
+ export LOGOPTIONS
+ CLASSPATH='./*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*'
+ export CLASSPATH
+ [ 0 -eq 0 ]
+ [ 0 -eq 1 ]
+ [ 0 -eq 1 ]
+ [ 1 -eq 1 ]
+ log 'INFO: (./upgrade.sh) Checking for multiple DPS setup'
INFO: (./upgrade.sh) Checking for multiple DPS setup
+ /opt/HP/BSM/JRE/bin/java '-DskipDDPKIProvider=true' -client '-Dmerc.home=/opt/HP/BSM' -cp './*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*' '-Dlog4j.configuration=file:/distro/Update/update_log.properties' '-Dlog.folder=/var/opt/OV/log' '-Djava.library.path=/opt/HP/BSM/bin' '-Dtopaz.home=/opt/HP/BSM' com.hp.opr.premigration.UpgradeUtility -checkmultipledps
ERROR: null
+ STATUS=4
+ [ 4 -eq 2 ]
+ [ 4 -eq 3 ]
+ [ 0 -eq 0 ]
+ log 'ERROR: (./upgrade.sh) System error, Failed to check number of DPS, Exiting the process. Please make sure the DB is up and re-run the upgrade wizard. Logs present in /var/opt/OV/log/opr-upgradeBackup.log'
ERROR: (./upgrade.sh) System error, Failed to check number of DPS, Exiting the process. Please make sure the DB is up and re-run the upgrade wizard. Logs present in /var/opt/OV/log/opr-upgradeBackup.log
+ exit 1

In our production environment we have an NNMi server with the connector co-located between it and the Omi Server.  The NNMi server was NOT cloned for the upgrade test.  Could that be the issue?  
Thanks in Advance for any suggestions/advice 

 

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Hello,

Sorry, I don't have any suggestions.  But I looked a the upgrade script and I'll try to annotate what happened and what you might be able to do to move the problem forward...

449 if [ $PROCESSINGSERVER -eq 1 ] || [ $TYPICAL -eq 1 ]; then
450 log "INFO: ($0) Checking for multiple DPS setup"
451 $SUDO $JAVA $JVM_FIPS_OPTS -client -Dmerc.home=$TOPAZ_HOME -cp $CLASSPATH $LOGOPTIONS -Djava.library.path=${TOPAZ_HOME}/bin -Dtopaz.home=${TOPAZ_HOME} com.hp.opr.premigration.UpgradeUtility -checkmultipledps

+ /opt/HP/BSM/JRE/bin/java '-DskipDDPKIProvider=true' -client '-Dmerc.home=/opt/HP/BSM' -cp './*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*' '-Dlog4j.configuration=file:/distro/Update/update_log.properties' '-Dlog.folder=/var/opt/OV/log' '-Djava.library.path=/opt/HP/BSM/bin' '-Dtopaz.home=/opt/HP/BSM' com.hp.opr.premigration.UpgradeUtility -checkmultipledps
ERROR: null

There is this "ERROR: null" which isn't good. this sets STATUS to 4:

452 STATUS=$?

STATUS=4

No Permission denied or stack trace message? Status value 4 is not tested so then it errors on line 470:

453 if [ $STATUS -eq 2 ]; then
454 log "INFO: ($0) Multiple DPS detected. Will check for Active/Backup DPS"
455 MULTIPLEDPS=1
456 elif [ $STATUS -eq 3 ]; then
457 log "INFO: ($0) Single DPS detected. Will not check for Active/Backup DPS"
458 if [ $TYPICAL -eq 0 ]; then
459 log "INFO: ($0) Checking if Gateway is running before proceeding"
460 $SUDO $JAVA $JVM_FIPS_OPTS -client -Dmerc.home=$TOPAZ_HOME -cp $CLASSPATH $LOGOPTIONS -Djava.library.path=${TOPAZ_HOME}/bin -Dtopaz.home=${TOPAZ_HOME} com.hp.opr.premigration.UpgradeUtility -checkgw
461 STATUS=$?
462 if [ $STATUS -eq 2 ]; then
463 if [ $MINIMALDT -eq 0 ]; then
464 log "WARN: ($0) Gateway is still running. Please make sure Gateway is stopped and re run this script."
465 exit 1
466 fi
467 fi
468 fi
469 else
470 if [ $MINIMALDT -eq 0 ]; then
471 log "ERROR: ($0) System error, Failed to check number of DPS, Exiting the process. Please make sure the DB is up and re-run the upgrade wizard. Logs present in /var/opt/OV/log/opr-upgradeBackup.log"

+ log 'ERROR: (./upgrade.sh) System error, Failed to check number of DPS, Exiting the process. Please make sure the DB is up and re-run the upgrade wizard. Logs present in /var/opt/OV/log/opr-upgradeBackup.log'

Then the exit the script with an exit code of one:

472 exit 1
473 else
474 log "INFO: ($0) Failed to check number of DPS. Continuing upgrade as Minimal Downtime is supported."
475 fi
476 fi
477 fi


On your system, this Java is the problem which you can wrap up into a script /tmp/run.me to troubleshoot:

--
#!/bin/bash
/opt/HP/BSM/JRE/bin/java '-DskipDDPKIProvider=true' -client '-Dmerc.home=/opt/HP/BSM' -cp './*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*' '-Dlog4j.configuration=file:/distro/Update/update_log.properties' '-Dlog.folder=/var/opt/OV/log' '-Djava.library.path=/opt/HP/BSM/bin' '-Dtopaz.home=/opt/HP/BSM' com.hp.opr.premigration.UpgradeUtility -checkmultipledps
STATUS=$?
echo "This is the return code $STATUS"
--

Running this on my test system:

# sh -xv /tmp/run.me
#!/bin/bash
/opt/HP/BSM/JRE/bin/java '-DskipDDPKIProvider=true' -client '-Dmerc.home=/opt/HP/BSM' -cp './*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*' '-Dlog4j.configuration=file:/data/OBM_2020.10_for_Linux/Update/update_log.properties' '-Dlog.folder=/var/opt/OV/log' '-Djava.library.path=/opt/HP/BSM/bin' '-Dtopaz.home=/opt/HP/BSM' com.hp.opr.premigration.UpgradeUtility -checkmultipledps
+ /opt/HP/BSM/JRE/bin/java -DskipDDPKIProvider=true -client -Dmerc.home=/opt/HP/BSM -cp './*:Update/*:/opt/HP/BSM/lib/*:/opt/HP/BSM/opr/lib/opr-premigration.jar:/opt/OV/java/*' -Dlog4j.configuration=file:/data/OBM_2020.10_for_Linux/Update/update_log.properties -Dlog.folder=/var/opt/OV/log -Djava.library.path=/opt/HP/BSM/bin -Dtopaz.home=/opt/HP/BSM com.hp.opr.premigration.UpgradeUtility -checkmultipledps
INFO: Multiple DPS configured
INFO: More than one DPS connected
STATUS=$?
+ STATUS=2
echo "This is the return code $STATUS"
+ echo 'This is the return code 2'
This is the return code 2

 

I don't know what STATUS value 4 means. If you don't get much further then please contact Micro Focus support and I'm sure they will be able to help.

CT.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.