Unable to retrieve the credentials from the store : oracle.security.jps.service.credstore.CredStoreException:

595 views
Skip to first unread message

KdM

unread,
Sep 12, 2018, 9:16:01 PM9/12/18
to atg_...@googlegroups.com
Hi,

While doing ./promote_content.sh, i am getting the below error.
But it  is specific to environment. Any reason for this issue or any fix you suggest?


endeca@vxxxxx16155 control]$ ./promote_content.sh

[09.12.18 17:10:04] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.

[09.12.18 17:10:05] INFO: Definition has not changed.

[09.12.18 17:10:05] INFO: Exporting MDEX tool contents to file CCTen.mdex.2018-09-12_17-10-05.zip

[09.12.18 17:10:05] WARNING: JPS-01050

[09.12.18 17:10:05] SEVERE: Unable to retrieve the credentials from the store : 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.

[09.12.18 17:10:05] SEVERE: Workbench login credentials are not found or found invalid credential type for key <ifcr> and mapName <endecaToolsAndFrameworks>. Please update using <ENDECA_TOOLS_ROOT>/credential_store/bin/manage_credentials script with '--type password' as argument. Please refer to script usage.

[09.12.18 17:10:05] SEVERE: Failed to initialize IFCRUtility.

Occurred while executing line 8 of valid BeanShell script:

[[

 

 5|          // The zip is written to the local config directory for the live

 6|          // dgraph cluster.  A key file is stored along with the zip.

 7|          // This key file keeps the latest version of the zip file.

 8|          IFCR.exportConfigSnapshot(LiveDgraphCluster);

 9|

10|          // IFCR exportApplication

11|          // Used to export a particular node to disk. This on disk format will represent

 

]]

 

[09.12.18 17:10:05] SEVERE: Caught an exception while invoking method 'run' on object 'PromoteAuthoringToLive'. Releasing locks.

 

Caused by java.lang.reflect.InvocationTargetException

sun.reflect.NativeMethodAccessorImpl invoke0 - null

Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException

com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.

Caused by com.endeca.soleng.eac.toolkit.exception.AppConfigurationException

com.endeca.soleng.eac.toolkit.component.IFCRComponent initIFCR - Failed to initialize IFCRUtility.

AKB

unread,
Sep 12, 2018, 9:20:58 PM9/12/18
to atg_...@googlegroups.com
Seems to be an issue with workbench password issue and please refer the below 

Regards
A.Kumaresh Babu

--
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en
---
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atg_tech+u...@googlegroups.com.
To post to this group, send email to atg_...@googlegroups.com.
Visit this group at https://groups.google.com/group/atg_tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/atg_tech/CAMD9EGwWX-P97gUXz3G5Gq-gJvEKM2zxtW%2BypTULfXY6Rva7NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

KdM

unread,
Sep 12, 2018, 9:32:28 PM9/12/18
to atg_...@googlegroups.com
I tried these, but ended up in below errors.

-- like ..  /CCTen.mdex.2018-09-12_17-01-15.zip (Permission denied)


./manage_credentials.sh add --config /opt/endeca/ToolsAndFrameworks/11.2.0/server/workspace/credential_store/jps-config.xml --mapName endecaToolsAndFrameworks --user admin --key ifcr --type password
WARNING: j2sdk/bin/java does not exist
WARNING: Using java in /opt/java/default/bin/java
Sep 12, 2018 5:40:21 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.
12 Sep 2018 17:40:21,886 ERROR CSFHandler:83 - Failed to create CredentialStore for map : endecaToolsAndFrameworks and configuration : /opt/endeca/ToolsAndFrameworks/11.2.0/server/workspace/credential_store/jps-config.xml.
Cause :JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
Exception in thread "main" java.lang.RuntimeException: 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 com.endeca.credentialstore.handler.CSFHandler.<init>(CSFHandler.java:85)
        at com.endeca.credentialstore.util.ManageCredentialsTool.execute(ManageCredentialsTool.java:213)
        at com.endeca.credentialstore.util.ManageCredentialsTool.main(ManageCredentialsTool.java:251)
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)






[vxxxxx.a@xxxxx16155 control]$ ./promote_content.sh
Can't load log handler "com.endeca.soleng.eac.toolkit.logging.RelativePathFileHandler"
java.io.FileNotFoundException: /opt/endeca/Apps/CCTen/logs/CCTen.0.0.log (Permission denied)
java.io.FileNotFoundException: /opt/endeca/Apps/CCTen/logs/CCTen.0.0.log (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
        at java.util.logging.FileHandler.open(FileHandler.java:210)
        at java.util.logging.FileHandler.openFiles(FileHandler.java:536)
        at java.util.logging.FileHandler.<init>(FileHandler.java:362)
        at com.endeca.soleng.eac.toolkit.logging.RelativePathFileHandler.<init>(RelativePathFileHandler.java:99)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at java.util.logging.LogManager$5.run(LogManager.java:966)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:958)
        at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1578)
        at java.util.logging.LogManager.access$1500(LogManager.java:145)
        at java.util.logging.LogManager$RootLogger.accessCheckedHandlers(LogManager.java:1667)
        at java.util.logging.Logger.getHandlers(Logger.java:1776)
        at java.util.logging.Logger.log(Logger.java:735)
        at java.util.logging.Logger.doLog(Logger.java:765)
        at java.util.logging.Logger.log(Logger.java:788)
        at java.util.logging.Logger.fine(Logger.java:1515)
        at com.endeca.soleng.eac.toolkit.Controller.parseArgs(Controller.java:1038)
        at com.endeca.soleng.eac.toolkit.Controller.main(Controller.java:137)
[09.12.18 17:01:14] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
[09.12.18 17:01:15] INFO: Updating provisioning for component 'DailyReportGenerator'.
[09.12.18 17:01:15] INFO: Updating definition for component 'DailyReportGenerator'.
[09.12.18 17:01:15] INFO: Definition updated.
[09.12.18 17:01:15] INFO: Exporting MDEX tool contents to file CCTen.mdex.2018-09-12_17-01-15.zip
[09.12.18 17:01:16] SEVERE: Failed to create zip file or the key file associated with it

Occurred while executing line 8 of valid BeanShell script:
[[

 5|          // The zip is written to the local config directory for the live
 6|          // dgraph cluster.  A key file is stored along with the zip.
 7|          // This key file keeps the latest version of the zip file.
 8|          IFCR.exportConfigSnapshot(LiveDgraphCluster);
 9|
10|          // IFCR exportApplication
11|          // Used to export a particular node to disk. This on disk format will represent

]]

[09.12.18 17:01:16] SEVERE: Caught an exception while invoking method 'run' on object 'PromoteAuthoringToLive'. Releasing locks.


Caused by java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl invoke0 - null
Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException
com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.
Caused by com.endeca.soleng.eac.toolkit.exception.AppConfigurationException
com.endeca.soleng.eac.toolkit.component.IFCRComponent exportConfigSnapshot - Failed to create zip file or the key file associated with it
Caused by java.io.FileNotFoundException
java.io.FileOutputStream open0 - /opt/endeca/Apps/CCTen/data/dgraphcluster/LiveDgraphCluster/config_snapshots/CCTen.mdex.2018-09-12_17-01-15.zip (Permission denied)

[vxxxxx.a@xxxxx16155 control]$ cd /opt/endeca/Apps/CCTen
 


NewBie

unread,
Sep 17, 2018, 12:39:16 AM9/17/18
to ATG_Tech
We are seeing this issue in prod too. but executing as root fixed the issue.
Not sure whether it is a correct solution.any comments / thoughts
Reply all
Reply to author
Forward
0 new messages