services not working

richard.walker's Avatar

richard.walker

20 Nov, 2011 09:41 AM

I've just installed gpgTools for mac on machine running MacOS10.7.2 (lion).

The mail seems to work fine but file services seem to be broken (do not ask for recipients when selected). If I run the FixGPP Tools option in the preferences panel services start asking for recipient data but the dialog box with possible recipients is empty. One one occasion this broke the mail application and I had to reinstall. Can you advise how to fix this

Note: I installed over an old GPG1 installation. I do not know if this is the source of the problem

  1. Support Staff 1 Posted by Luke Le on 20 Nov, 2011 09:46 AM

    Luke Le's Avatar

    Hi Richard,

    due to a mishap we've released a GPGServices version with the latest installer which is not yet fully compatible with Lion.

    You can download the working version 1.6 here: http://www.gpgtools.org/gpgservices/index.html

    Hope that helps,

    Lukas

  2. 2 Posted by Richard Walker on 20 Nov, 2011 10:32 AM

    Richard Walker's Avatar

    Hi luke,

    Thanks for the quick answer but I am afraid it didn't help. Services continue to (misfunction) in exactly the same way as before...It looks very much as though they are trying to display a window off screen (I am on a Macbook 13" with 1280*800 resolution).

    Any ideas?

    Richard

  3. 3 Posted by Alex on 20 Nov, 2011 11:00 AM

    Alex's Avatar

    Maybe you could have a look at the Console.app output and paste relevant information to this discussion. The latest installer includes GPGServices 1.6 that seems to work on most machines.
    You can invoke mission control to show all open windows.

  4. 4 Posted by Richard Walker on 20 Nov, 2011 11:40 AM

    Richard Walker's Avatar

    I think. My installation is the latest one (111117). I have also reinstalled GPGservices 1.6 manually. It makes no difference. Mission control shows no open windows. Sorry but I don't know what output I should be checking in the console. I am working from the finder so usually don't use the console but if you give me a test sequence I'll try it out.

  5. 5 Posted by Alex on 20 Nov, 2011 11:53 AM

    Alex's Avatar

    If Mission Control doesn't show open windows then I assume there is no window. Regarding the console: There is an application called "Console.app" (see above):

    1. Start Console.app
    2. Click "Clear Display"
    3. Right click on a file > Services > OpenPGP: Encrypt > OK
    4. Switch to Console.app
    5. Copy & paste the output
  6. 6 Posted by Richard Walker on 20 Nov, 2011 12:09 PM

    Richard Walker's Avatar

    Thanks a lot: Here is the output - I'll put it in a text file as well


    20/11/2011 13:05:44.178 GPGServices: (

    0   CoreFoundation                      0x00007fff87e25286 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8a53ed5e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff87e250ba +[NSException raise:format:arguments:] + 106
    3   CoreFoundation                      0x00007fff87e25044 +[NSException raise:format:] + 116
    4   CoreFoundation                      0x00007fff87dfe463 -[__NSCFSet addObject:] + 147
    5   GPGServices                         0x000000010000663b +[GPGServices myPrivateKeys] + 367
    6   GPGServices                         0x000000010000811f -[KeyChooserDataSource getPrivateKeys] + 33
    7   GPGServices                         0x0000000100008519 -[KeyChooserDataSource init] + 127
    8   AppKit                              0x00007fff8e168bcf -[NSCustomObject nibInstantiate] + 418
    9   AppKit                              0x00007fff8e1689ba -[NSIBObjectData instantiateObject:] + 303
    10  AppKit                              0x00007fff8e167c19 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 347
    11  AppKit                              0x00007fff8e15e52f loadNib + 322
    12  AppKit                              0x00007fff8e15da28 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
    13  AppKit                              0x00007fff8e15d943 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
    14  AppKit                              0x00007fff8e34cbc6 -[NSWindowController loadWindow] + 221
    15  AppKit                              0x00007fff8e34c981 -[NSWindowController window] + 75
    16  AppKit                              0x00007fff8e34c7ef -[NSWindowController showWindow:] + 40
    17  GPGServices                         0x00000001000067bb -[RecipientWindowController runModal] + 69
    18  GPGServices                         0x0000000100003fc0 -[GPGServices encryptFiles:] + 181
    19  GPGServices                         0x0000000100003ed6 -[GPGServices dealWithFilesPasteboard:userData:mode:error:] + 319
    20  AppKit                              0x00007fff8e6af6b7 -[NSServiceListener _doInvokeServiceIn:msg:pb:userData:error:unhide:] + 1020
    21  AppKit                              0x00007fff8e6af241 _NSServiceMasterCallBack + 120
    22  CoreFoundation                      0x00007fff87e82735 __CFServiceControllerMessagePortCallBack + 629
    23  CoreFoundation                      0x00007fff87e76bb9 __CFMessagePortPerform + 729
    24  CoreFoundation                      0x00007fff87d8411c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 44
    25  CoreFoundation                      0x00007fff87d83e4b __CFRunLoopDoSource1 + 155
    26  CoreFoundation                      0x00007fff87dba587 __CFRunLoopRun + 1895
    27  CoreFoundation                      0x00007fff87db9ae6 CFRunLoopRunSpecific + 230
    28  HIToolbox                           0x00007fff8c69b3d3 RunCurrentEventLoopInMode + 277
    29  HIToolbox                           0x00007fff8c6a263d ReceiveNextEventCommon + 355
    30  HIToolbox                           0x00007fff8c6a24ca BlockUntilNextEventMatchingListInMode + 62
    31  AppKit                              0x00007fff8e1563f1 _DPSNextEvent + 659
    32  AppKit                              0x00007fff8e155cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
    33  AppKit                              0x00007fff8e15262d -[NSApplication run] + 470
    34  AppKit                              0x00007fff8e3d180c NSApplicationMain + 867
    35  GPGServices                         0x0000000100001554 start + 52
    36  ???                                 0x0000000000000002 0x0 + 2
    

    )

  7. 7 Posted by Alex on 20 Nov, 2011 12:22 PM

    Alex's Avatar

    This helps. Something about your private key(s). Is gpg working via command line?

    1. Open Terminal.app
    2. echo test > testfile
    3. gpg -s testfile
    4. gpg --verify testfile.gpg
  8. 8 Posted by Richard Walker on 20 Nov, 2011 01:37 PM

    Richard Walker's Avatar

    I think it is working but am not sure about keys - I imported them from previous PGP and GPG installations...

    I also generated three new keys (not the ones referred to here)

    Last login: Sun Nov 20 12:29:03 on ttys000
    vpn-a-183-236:~ rwalker$
    vpn-a-183-236:~ rwalker$ echo test > testfile
    vpn-a-183-236:~ rwalker$ gpg -s testfile
    gpg: error checking usability status of F488B1C1
    gpg: key F488B1C1: secret key without public key - skipped

    You need a passphrase to unlock the secret key for
    user: "Richard Walker (new key) [email blocked]"
    1024-bit DSA key, ID B8F3AC76, created 2008-09-22

    vpn-a-183-236:~ rwalker$ gpg --verify testfile.gpg
    gpg: Signature made Sun 20 Nov 14:34:14 2011 CET using DSA key ID B8F3AC76
    gpg: Good signature from "Richard Walker (new key) [email blocked]"
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg: There is no indication that the signature belongs to the owner.
    Primary key fingerprint: 1BC8 7C22 0590 332C F67B 4860 01F4 DD2F B8F3 AC76
    vpn-a-183-236:~ rwalker$

  9. 9 Posted by Richard Walker on 20 Nov, 2011 05:42 PM

    Richard Walker's Avatar

    Update...

    I eliminated all my test keys and kept only essential ones. The decrypt service now works perfectly but the encrypt services still refuses to ask for a key to encrypt to.

    Also for some reason mail no longer does automatic decryption - it used to but then I asked it to store the keys on my key chain and it now forces me to download the files and decrypt manually. Not serious but boring.

  10. 10 Posted by Alex on 20 Nov, 2011 06:35 PM

    Alex's Avatar

    Could you rename your gpg config file ($HOME/.gnupg/gpg.conf)? Maybe there are bogus entries? Also I suggest to open some tickets here to get close to your configuration issues: http://gpgtools.lighthouseapp.com/

  11. 11 Posted by Richard Walker on 20 Nov, 2011 07:17 PM

    Richard Walker's Avatar

    I did that but it made no difference. I also redid the verification of GPG from the command line. I got:

    SV-38-86:~ rwalker$ echo test>testfile
    SV-38-86:~ rwalker$ gpg -s testfile
    gpg: error checking usability status of F488B1C1
    gpg: key F488B1C1: secret key without public key - skipped

    You need a passphrase to unlock the secret key for
    user: "Richard Walker [email blocked]"
    2048-bit RSA key, ID 6AEE5DEC, created 2011-11-19 (main key ID 5FD1FE28)

    File `testfile.gpg' exists. Overwrite? (y/N) y
    SV-38-86:~ rwalker$ verify testfile.gpg
    -bash: verify: command not found SV-38-86:~ rwalker$ gpg --verify testfile.gpg
    gpg: Signature made Sun 20 Nov 20:06:23 2011 CET using RSA key ID 6AEE5DEC
    gpg: Good signature from "Richard Walker [email blocked]"
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg: There is no indication that the signature belongs to the owner.
    Primary key fingerprint: 5850 6FF6 1011 7BCD 97FF 635A DC42 D919 5FD1 FE28

     Subkey fingerprint: 470D 4C45 5ECE 4167 54CC  530A C184 0433 6AEE 5DEC
    

    SV-38-86:~ rwalker$

    Note: on GPG keychain access has no reference to this key! Could something be corrupted there?

    Also I see from the console that GPG mail tries to decrypt mails on startup but fails:

    20/11/2011 19:54:53.581 Mail: NSExceptionHandler has recorded the following exception:
    GPGException -- Decrypt failed!
    Stack trace: 0x1104f9c69 0x7fff88d57d5e 0x11174612b 0x1116fb262 0x7fff8a43caad 0x1116fb0eb 0x1116fa300 0x1116f9936 0x7fff82693b92 0x7fff826939c7 0x7fff826e5c84 0x7fff8662796f 0x7fff865ac781 0x7fff866277cb 0x7fff826e599f 0x7fff8663020c 0x7fff866300a4 0x7fff82625745 0x7fff826256eb 0x7fff83edd788 0x7fff83ef09e6 0x7fff8a43a8ba 0x7fff8a43b799 0x7fff850883da 0x7fff85089b85

    Now I'll open a ticket as you suggest

  12. 12 Posted by Alex on 20 Nov, 2011 08:43 PM

    Alex's Avatar

    Your secret key has no public key. What about exporting your secret key, renaming your gpg keychain, and reimporting the secret key again? Technically it should be possible to generate your public key based on your private key.
    Let's move the discussion to the attached ticket.

  13. Alex closed this discussion on 20 Nov, 2011 08:43 PM.

  14. Walker John Richard re-opened this discussion on 20 Nov, 2011 10:19 PM

  15. 13 Posted by Walker John Ric... on 20 Nov, 2011 10:19 PM

    Walker John Richard's Avatar

    Hi alex,

    The problem is resolved. Thanks for the excellent support and good luck for future

    Richard

  16. 14 Posted by Alex on 20 Nov, 2011 10:25 PM

    Alex's Avatar

    Good to hear. How did you solved it?

  17. 15 Posted by Walker John Ric... on 20 Nov, 2011 11:05 PM

    Walker John Richard's Avatar

    I followed your advice - renamed the keyring - and created a new one with a new public private key pair. Then I reimported all my old public keys. I did not reimport my old key pair - it was only a test and I didn't need it.

    Thanks again

    Richard

  18. 16 Posted by Alex on 20 Nov, 2011 11:06 PM

    Alex's Avatar

    Ok, thanks.

  19. Alex closed this discussion on 20 Nov, 2011 11:06 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac