Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:41 Go to next message
Simon Kuzin is currently offline Simon KuzinFriend
Messages: 18
Registered: February 2019
Location: Singapore
Junior Member
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 15:45]

Report message to a 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 12:25 Go to previous messageGo to next message
Vincent Lorenzo is currently offline Vincent LorenzoFriend
Messages: 248
Registered: June 2010
Location: Paris Saclay, France
Senior Member
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 23:40 Go to previous message
Paul Wagland is currently offline Paul WaglandFriend
Messages: 3
Registered: July 2009
Junior Member
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: Fri Apr 19 19:49:14 GMT 2024

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

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

Back to the top