A not working report caused by keychain issue
Closed this issue · 6 comments
From a comment for the blog post:
http://blog.yakitara.com/2009/10/unofficial-google-wave-notifier-for-mac.html?showComment=1256760545389#c6873114350653752585
floehopper said...
It looks great, but I can't get it to work. I'm getting "SecKeychainFindGenericPassword: failed. (OSStatus: -25300)" and "SecKeychainAddGenericPassword: failed. (OSStatus: -61)" errors in the log. Do you have any idea what might be wrong?
From Apple's document:
http://developer.apple.com/mac/library/DOCUMENTATION/Security/Reference/keychainservices/Reference/reference.html#//apple_ref/doc/uid/TP30000898-CH5g-CJBEABHG
"errSecItemNotFound –25300 The item cannot be found"
However I couldn't find -61.
I could reproduce -25300 when I remove keychain item with "/Applications/Utilities/Keychain Access.app" by hand.
Have you seen the item "Unofficial Google Wave Notifier" in the "Keychain access.app"?
Floehoppe,
I guess that you entered a password but keychain refused to store it by some reason...
Any idea?
Also please tell me about your environmens:
- Leopard or Snow Leopard?
- if Leopard intel mac or power mac|book?
- Which version do you use? See bottom line of the preferences windows
- Downloaded binary release or built yourself?
I'm on Leopard 10.5.8 on an Intel MacBook Pro. I'm using a downloaded binary version of your app - version 0.3.
I installed the app, but I accidentally entered the wrong account details and couldn't work out why it wasn't working. So I uninstalled it. At that time I deleted the "Unofficial Google Wave Notifier" keychain item using "Keychain Access".app. I also deleted the com.yakitara.Unofficial_Google_Wave_Notifier.plist preferences file. When I reinstalled the app and try to enter the correct account details, I got the errors mentioned above.
Any ideas?
Hmm, I attempted to reproduce the error by tracing what you explained, but I didn't get any clue.
I just googling with keywords: SecKeychainAddGenericPassword "-61"
http://www.google.com/search?hl=en&as_q=SecKeychainAddGenericPassword+%22-61%22&as_epq=&as_oq=&as_eq=&num=10&lr=&as_filetype=&ft=i&as_sitesearch=&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images
Some of them mentioned about permission of accessing keychain.
I'm afraid, but I doubt that you may have a permission problem of using .keychain files. Do you use login.keychain for your account informations? Do you have right permission for it?
FYI, mine is:
$ ls -l ~/Library/Keychains/login.keychain
-rw-r--r-- 1 hiroshi staff 121904 Oct 29 20:19 /Users/hiroshi/Library/Keychains/login.keychain
Anyway, I need your help to resolve this issue :)
Yep, I got osstatus -61 just after entering the command below:
$ chmod u-w ~/Library/Keychains/login.keychain
I think you've solved the problem. The login.keychain file had the correct permissions, but for some reason it was owned by root. I changed the owner to my user using chown and your app now works. Many thanks :-)
Not at all :)
I wrote troubleshooting page on the wiki of this project:
http://wiki.github.com/hiroshi/Unofficial-Google-Wave-Notifier/troubleshooting