Monday, 27 January 2020

Error message: JPS-01050: Opening of wallet based credential store failed PKI-02002: Unable to open the wallet. Check password.

Error:

[oracle@bach2-app bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=512m
.
WLS Start Mode=Production
.
CLASSPATH=/u01/oracle/middleware/o
.
.
.
.
.
.

Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:



Jan 27, 2020 6:03:40 PM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
Error message: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password. >

.
.
.
.
.
Caused By: oracle.security.jps.service.credstore.CredStoreException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
        at oracle.security.jps.internal.credstore.ssp.CsfWalletManager.openWallet(CsfWalletManager.java:184)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.doInit(SspCredentialStore.java:238)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.(SspCredentialStore.java:153)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.(SspCredentialStore.java:138)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider.getInstance(SspCredentialStoreProvider.java:115)
        Truncated. see log file for complete stacktrace
>




Reason:

The cause for this particular scenario was that the permissions to the /tmp directory was blocked for the weblogic runtime user. Therefore the user was not able to open the cwallet in the /tmp directory.

Solution:

Provide permissions to /tmp directory.



[root@bach2-app ~]# chmod -R 777 /tmp/

Also check that you are able to open the wallet without being prompted for a wallet password using the command below:


[oracle@bach2-app ~]$ /u01/oracle/middleware/oracle_common/bin/orapki wallet display -wallet /u01/oracle/middleware/user_projects/domains/ClassicDomain/config/fmwconfig/bootstrap
Oracle PKI Tool : Version 11.1.1.6.0
Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.

Requested Certificates:
User Certificates:
Oracle Secret Store entries:
fks@#3#@current.key
fks@#3#@master.key.0
IntegrityChecker@#3#@kss
Trusted Certificates:
Subject:        OU=Class 2 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
Subject:        OU=Class 3 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
Subject:        CN=GTE CyberTrust Global Root,OU=GTE CyberTrust Solutions\, Inc.,O=GTE Corporation,C=US
Subject:        OU=Class 1 Public Primary Certification Authority,O=VeriSign\, Inc.,C=US
[oracle@bach2-app ~]$
[oracle@bach2-app ~]$
[oracle@bach2-app ~]$
[oracle@bach2-app ~]$

Now Start the service

[oracle@bach2-app bin]$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=512m
.
WLS Start Mode=Production
.
CLASSPATH=/u01/oracle/middleware/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/oracle/middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/oracle/middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/jdk1.7.0_10/lib/tools.jar:/u01/oracle/middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/oracle/middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/oracle/middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/oracle/middleware/wlserver_10.3/server/lib/webservices.jar:/u01/oracle/middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/oracle/middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/oracle/middlewa
.
.
.
.
.
.
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
Jan 27, 2020 6:08:46 PM oracle.ods.virtualization.engine.util.VDELogger info
INFO: Notification sent for Mapping config object reloaded
Jan 27, 2020 6:08:46 PM oracle.ods.virtualization.engine.util.VDELogger info
INFO: ConfigObjectReloaded for ServerConfig. PreviousVersion : -1 : CurrentVersion : 0

.
.
.
.
.
.
:1>



..........have fun!!!!!!!!!!!!!!!

No comments:

Post a Comment