13c: Upgrading OMS to 13.4/13.5 Fails During OMSCA while securing the OMS with Error: java.lang.Exception: Migrating policy store failed with exit code: 2
(Doc ID 2675871.1)
Last updated on OCTOBER 18, 2022
Applies to:
Enterprise Manager Base Platform - Version 13.4.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
Upgrading OMS to 13.4, fails during the OMSCA phase while securing the OMS with the error:
OMS_HOME/cfgtoollogs/omsca/omsca_<timestamp>.log
May 27, 2020 2:54:56 PM oracle.sysman.emctl.util.UpgradeOPSS performUpgrade
INFO: Completed migrating policy store with exit code: 2
May 27, 2020 2:54:56 PM oracle.sysman.omsca.adapter.wls.OMSWLSAdapter adapterPostDeployAndReposSetup
SEVERE: Exception occurred while securing OMS:
java.lang.Exception: Migrating policy store failed with exit code: 2
at oracle.sysman.emctl.util.UpgradeOPSS.performUpgrade(UpgradeOPSS.java:206)
at oracle.sysman.omsca.adapter.wls.OMSWLSAdapter.adapterPostDeployAndReposSetup(OMSWLSAdapter.java:3366)
at oracle.sysman.omsca.framework.OMSGenericAdapter.postDeployAndReposSetup(OMSGenericAdapter.java:334)
at oracle.sysman.omsca.framework.OMSCAUpgradeInstall.execute(OMSCAUpgradeInstall.java:580)
at oracle.sysman.omsca.framework.OMSConfigAssistantDriver.main(OMSConfigAssistantDriver.java:289)
OMS_HOME/cfgtoollogs/omsca/logs<timestamp>/emLogs/sysman/log/secure.log
2020-05-27 14:54:56,480 [main] INFO util.EmctlUtil logp.251 - Output messages of the command :
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Migrate policies jps-config: <OMS_INSTANCE_HOME>/em/EMGC_OMS1/sysman/config/upgrade_migrate_policies.xml
Migrating policyStore
set common.components.home to <OMS_HOME>/oracle_common
Command resulted in: Name "appRoleName" starts or ends with whitespace.
Name of Exception: oracle.security.jps.service.policystore.info.common.InvalidArgumentException
Code of Exception: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: Name "appRoleName" starts or ends with whitespace.
SEVERE: Exception occurred while migrating policystore
2020-05-27 14:54:56,480 [main] INFO util.EmctlUtil logp.251 - Exit code: 2
2020-05-27 14:54:56,480 [main] INFO util.EmctlUtil logp.251 - error messages of the command : No messages
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |