Skip to main content



      Home
Home » Modeling » Papyrus » [Solved] MacOs. Unable to retrieve the master password while adding CDO Repository. (Error: Secure storage was unable to retrieve the master password from the OS keyring.)
[Solved] MacOs. Unable to retrieve the master password while adding CDO Repository. [message #1805463] Mon, 15 April 2019 11:41 Go to next message
Eclipse UserFriend
Dear all,
would like to share my findings on solving issues of secure storage issues on MacOS.
It might be a trivial thing for you, however i was not able to find direct description of the issue nor in forums nor in bugzilla and had to spent a day of tracing secure storage and macos keyring adapter code to find a solution.

Environment:
MacOS Mojave.
CDO server with authentication enabled.

Scenario:
Add new CDO Repository in "CDO Repositories" view.
Fill all parameters. Click Finish.

While adding new CDO repository , Papyrus displays "Not Authenticated" error message box or message box with error icon and no text.

In error log there is following message:
Secure storage was unable to retrieve the master password from the OS keyring. Make sure that this application has access to the OS keyring. If the error persists, the password recovery feature could be used, or secure storage can be deleted and re-created.


Root Cause:
I found that code signature on papyrus executable is invalid, so macos was denying access to keyring.

Solution:
1. Close Papyrus and all instances of Eclipse based apps.
2. Verify Papyrus code signature
$ codesign -v /Applications/Papyrus.app/Contents/MacOS/papyrus

3. Verification is expected to fail. If not - you do have a different issue :)
4. Papyrus creates some crash logs Papyrus.app/Contents/MacOS/ directory. This drives MacOs crazy :) Remove all files , except "papyrus" from /Applications/Papyrus.app/Contents/MacOS/ directory
5. Re-sign papyrus
$  codesign -f -s - /Applications/Papyrus.app/Contents/MacOS/papyrus

6. Delete ~/.eclipse/org.eclipse.equinox.security/secure_storage file. Even if by chance it has some data successfully encrypted with osxkeystoreintegration, by this moment they already invalid.
7. Start Papyrus. Now adding CDO connections should work fine.

The same solution should be effective for any other eclipse based application and any other case of data stored in encrypted way in secure storage.

Hope it will save someones time.

[Updated on: Mon, 15 April 2019 11:45] by Moderator

Re: [Solved] MacOs. Unable to retrieve the master password while adding CDO Repository. [message #1805560 is a reply to message #1805463] Wed, 17 April 2019 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Hello Simon,
we thank you for sharing your experience!

/Vincent
Re: [Solved] MacOs. Unable to retrieve the master password while adding CDO Repository. [message #1836786 is a reply to message #1805463] Wed, 13 January 2021 18:40 Go to previous message
Eclipse UserFriend
Thank you for your experience! Once the solution is presented, it is "obvious" but until you realise what the problem is, it's painful!

I couldn't re-sign the app in the way that you did, but this gave me the pointer to fixing it. so thank you for that!
Previous Topic:cannot drag'n drop any elements from the palette to the diagram
Next Topic:SysML 2.0 Installation failure
Goto Forum:
  


Current Time: Thu Jul 03 06:46:58 EDT 2025

Powered by FUDForum. Page generated in 0.06703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top