getlantern/lantern — Issue #128: Keychain reading error in installed version
Author: myleshorton
Created: 2012-01-25 20:46:57+00:00
State: open
Labels: critical, mac

OK, so I'm unfortunately getting the following every time with the installed version. First, with no ~/.lantern, the setup runs fine. On the *second run,* however, I get the following. I think it's actually every time (as in every install -- definitely happens on every subsequent run), but I need to verify that. Not sure what's different when running from an installed version -- maybe it uses elevated privileges somehow when installed -- oh I it might have to do something special to put things in /Applications?

0 2012-01-25 12:40:43,352 ERROR [main] lantern.SettingsIo.read (SettingsIo.java:67) - Could not read settings
java.security.GeneralSecurityException: com.mcdermottroe.apple.OSXKeychainException: The user name or passphrase you entered is not correct.
at org.lantern.MacLocalCipherProvider.loadKeyData(MacLocalCipherProvider.java:47)
at org.lantern.AbstractAESLocalCipherProvider.getLocalKey(AbstractAESLocalCipherProvider.java:79)
at org.lantern.AbstractLocalCipherProvider.newLocalCipher(AbstractLocalCipherProvider.java:90)
at org.lantern.AbstractAESLocalCipherProvider.newLocalCipher(AbstractAESLocalCipherProvider.java:24)
at org.lantern.LanternUtils.localDecryptInputStream(LanternUtils.java:797)
at org.lantern.LanternUtils.localDecryptInputStream(LanternUtils.java:802)
at org.lantern.SettingsIo.read(SettingsIo.java:55)
at org.lantern.LanternHub.resetSettings(LanternHub.java:388)
at org.lantern.LanternHub.(LanternHub.java:116)
at org.lantern.Launcher.main(Launcher.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.MacLauncher.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
Caused by: com.mcdermottroe.apple.OSXKeychainException: The user name or passphrase you entered is not correct.
at com.mcdermottroe.apple.OSXKeychain._findGenericPassword(Native Method)
at com.mcdermottroe.apple.OSXKeychain.findGenericPassword(OSXKeychain.java:184)
at org.lantern.MacLocalCipherProvider.loadKeyData(MacLocalCipherProvider.java:44)
... 22 more