Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Could Not Initialize NSS
Could Not Initialize NSS [message #1220847] Sat, 14 December 2013 08:09 Go to next message
Peter Wolf is currently offline Peter WolfFriend
Messages: 2
Registered: December 2013
Junior Member
Tonight I've run into two bugs. The first one was I could not get egit to download due to a "Could Not Initialize NSS" bug.

That was fixed by adding the following line:
nssLibraryDirectory = /usr/lib/x86_64-linux-gnu

to:
/etc/java-7-openjdk/security/nss.cfg


Now I'm running into the same problem "Could Not Initialize NSS" when I try to clone a repo or perform other git related tasks such as fetch from upstream.

What can I do to continue debugging this? It really confuses me how eclipse *seems* to know about it (otherwise the downloader wouldn't have started working)
Re: Could Not Initialize NSS [message #1220868 is a reply to message #1220847] Sat, 14 December 2013 22:25 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I think this is rather a problem of your OpenJDK / NSS setup
Re: Could Not Initialize NSS [message #1220871 is a reply to message #1220868] Sat, 14 December 2013 23:31 Go to previous messageGo to next message
Peter Wolf is currently offline Peter WolfFriend
Messages: 2
Registered: December 2013
Junior Member
If that is the case:
1. What does the eclipse software download plugin utilize that is different than what the egit plugin uses (After the nss.cfg modification that works perfectly fine).
2. How can I debug this? I just need some means to start probing, see a stack trace.. anything really. For now I'm stuck Sad

I'm willing to continue looking at this, but am out of ideas as to how to go about finding the problem.

Thanks

[Updated on: Sat, 14 December 2013 23:41]

Report message to a moderator

Re: Could Not Initialize NSS [message #1221411 is a reply to message #1220871] Tue, 17 December 2013 16:25 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
You can try to follow the contributor guide [1] to debug egit, but I am pretty sure the
problem you are looking for is buried somewhere in OpenJDK and its use of the security provider,
which in your case seems to be nss. If you are cloning over ssh you are using jsch [2] which itself
probably makes use of some security APIs of the JDK. Similar things happen when you clone
over https.

[1] http://wiki.eclipse.org/EGit/Contributor_Guide
[2] http://www.jcraft.com/jsch/
Previous Topic:eGit URL http://download.eclipse.org/egit/updates doesn't have any repository.
Next Topic:How to check status of local branch with respect to remote branch in a lightweight way?
Goto Forum:
  


Current Time: Wed Apr 24 18:39:46 GMT 2024

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

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

Back to the top