GPG Config Error

TAN's Avatar

TAN

10 Jan, 2012 03:26 PM

Good Day Sirs/Madam...
I have a MacAir with OS Lion. I have installed the GPG recently for mail and have been running fine up to today.
I have now a message " GPG Config Error .... Ups, something went wrong. GPG was found on your system but there seems to be a problem with the config file. Please contact GPGTools team http://www.gpgtools.org/about.html."

  1. 1 Posted by Alex on 11 Jan, 2012 12:50 PM

    Alex's Avatar

    Does the issue still occurs after (re-)installing the latest GPGTools package?

  2. 2 Posted by Troy T on 25 Jan, 2012 03:32 AM

    Troy T's Avatar

    I have the exact same issue and it continues after both restarting and re-installing. I've not had luck with prior versions of GPG and there may be elements of those old packages lurking somewhere on my machine. I've run multiple versions of the "uninstall" app, but also without luck.

  3. 3 Posted by Alex on 25 Jan, 2012 07:07 AM

    Alex's Avatar

    Ok, let's hunt this bug down. Could you please attach your gpg.conf file? See http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-inf... for details.

  4. 4 Posted by Troy Torres on 26 Jan, 2012 06:10 PM

    Troy Torres's Avatar

    Alex

    I'll get that to you tonight. Sorry on the delay―I work in Finance and it's a busy time of year for my group.

    Kind regards,
    Troy.

     ...
     Troy Torres
     Sent from my iPhone

    (please excuse any typographical errors as this message was created on a mobile device)

  5. Support Staff 5 Posted by Steve on 26 Jan, 2012 11:43 PM

    Steve's Avatar

    Hey Troy, no problem. It's a busy time for our little team almost the whole year :P

    Just send the info whenever you find the time and we'll have a look.

    All the best, steve

  6. 6 Posted by Troy Torres on 27 Jan, 2012 03:34 AM

    Troy Torres's Avatar

    Alex

    Thanks for helping me out. Here is the gpg.conf file you requested.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  7. Support Staff 7 Posted by Luke Le on 28 Jan, 2012 09:27 PM

    Luke Le's Avatar

    Hi Troy,

    testing your configuration I can't find any errors on my system, so I guess
    old installations also messed up your system a bit.

    The easiest way to solve this would be a sceen sharing session.
    Of course this is a very sensitive process but it's often the fastest way
    to fix potential bugs unrelated to the tools themselves.

    I'd propose to use Team Viewer if you'd be willing to do that.

  8. 8 Posted by Troy Torres on 30 Jan, 2012 01:08 AM

    Troy Torres's Avatar

    Luke

    I'm not comfortable with that approach—I use this machine for work and have a large number of confidential client files on the drive. If you can provide a list of where residual files from previous installs could be hanging out, I'll hunt them down and remove them (keeping a list of what has been removed for future troubleshooting, if needed).

    If you have other options, please let me know.

    I really do appreciate the time and effort you and your team are devoting to my problem, but I can't hand over the keys to my encrypted drive.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  9. Support Staff 9 Posted by Luke Le on 30 Jan, 2012 06:39 AM

    Luke Le's Avatar

    Hi Troy,

    of course, that's absolutely understandable.
    We'll find a way to fix it without remote access.

    Could you please open terminal.app and run the
    following commands (after typing each line press enter)
    and post their output?

    ls -l /usr/local
    ls -l /opt
    which gpg
    which gpg2
    ls -l ~/.gnupg
    ls -ld ~/.gnupg

    This should already give us some more insight

  10. 10 Posted by Troy Torres on 05 Feb, 2012 08:58 PM

    Troy Torres's Avatar

    Luke, the results are posted. I've "bolded" the line used in terminal, followed with the result.

    ls -l /usr/local
    total 0
    drwxr-xr-x@ 16 root wheel 544 Jan 26 20:51 bin
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 clamXav
    drwxr-xr-x@ 7 root wheel 238 Jan 23 23:52 include
    drwxr-xr-x@ 22 root wheel 748 Jan 23 23:52 lib
    drwxr-xr-x@ 3 root wheel 102 Jan 23 23:51 libexec
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 sbin
    drwxr-xr-x@ 9 root wheel 306 Jan 23 23:52 share

    ls -l /opt
    ls: /opt: No such file or directory

    which gpg
    /usr/local/bin/gpg

    which gpg2
    [no result]

    ls -l ~/.gnupg
    total 432
    srwxr-xr-x 1 marinerrr staff 0 Jan 24 08:44 S.gpg-agent
    -rw------- 1 marinerrr staff 9119 Mar 18 2007 gpg copy.conf
    -rw------- 1 marinerrr staff 9158 Aug 14 13:46 gpg.conf
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04 copy.42
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04.42
    -rw-r--r-- 1 marinerrr staff 9029 Mar 27 2007 gpg.conf.macgpg.07-03-27_19.15.13
    -rw-r--r-- 1 marinerrr staff 9154 May 10 2009 gpg.conf.macgpg.09-05-10_23.59.08
    drwx------ 2 marinerrr staff 68 Aug 14 14:18 private-keys-v1.d
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg~
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg~
    -rw------- 1 marinerrr staff 600 Jun 3 2007 random_seed
    -rw------- 1 marinerrr staff 600 Mar 17 2007 random_seed copy
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring copy.gpg
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring.gpg
    -rw------- 1 marinerrr staff 1200 Mar 18 2007 trustdb copy.gpg
    -rw------- 1 marinerrr staff 1320 Jan 24 20:15 trustdb.gpg

    ls -ld ~/.gnupg
    drwx------ 20 marinerrr staff 680 Jan 26 20:27 /Users/marinerrr/.gnupg

    Sorry on the delay getting this back to you.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  11. 11 Posted by Mento on 09 Feb, 2012 01:28 PM

    Mento's Avatar

    Please install the latest MacGPG2 from http://www.gpgtools.org/macgpg2/index.html

  12. Support Staff 12 Posted by Luke Le on 09 Feb, 2012 02:29 PM

    Luke Le's Avatar

    Hi Troy,

    as Mento points out, it looks like you don't have our version of GPG 2.x installed, which might be the reason why you're still seeing problems.
    Please install the package from the site Mento linked to and let us know if it solves your problems.

  13. 13 Posted by Troy Torres on 09 Feb, 2012 02:44 PM

    Troy Torres's Avatar

    I will do that tonight.

    FYI: I did use the provided uninstaller before contacting you about this issue. Mail would give me error messages when the package was installed but not working.

    Kind regards,
    Troy.

     ...
     Troy Torres
     Sent from my iPhone

    (please excuse any typographical errors as this message was created on a mobile device)

  14. 14 Posted by Troy Torres on 11 Feb, 2012 06:41 AM

    Troy Torres's Avatar

    Luke and Mento

    I re-installed the following in this order:
       1. MacGPG2-2.0.17-9
       2. GPG Keychain Access-1.0b6
       3. GPGMail-2.0a21
       4. GPGPreferences-0.9.2
       5. GPGServices-1.6

    When I ran GPG Keychain Access, the following error came up:

    GPG Keychain Access
    GPG Config Error
    Ups, something went wrong. GPG was found on your system but there seems to be a problem with the config file. Please contact the GPGTools team http://www.gpgtools.org/about.html.

    When I ran Mail, the following error came up:

    GPG_CONFIG_ERROR_TITLE
    GPG_CONFIG_ERROR_MESSAGE

    Then I reinstalled the GPGTools-20111224.dmg package (35.7MB) over the top of what was already there and tried again with the exact same results.

    Also, in the GPG preference pane, the Default Key box is blank and it does not allow me to select anything (I have existing keys from another Mac).

    Any help you can provide is greatly appreciated.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  15. Support Staff 15 Posted by Luke Le on 14 Feb, 2012 06:07 AM

    Luke Le's Avatar

    Hi Troy,

    could you please post your ~/.gnupg/gpg.conf file again?
    It's strange you're still getting this error.
    Please also check your Console.app log for error messages and post them.

  16. 16 Posted by Troy Torres on 14 Feb, 2012 02:32 PM

    Troy Torres's Avatar

    Alex

    Here is the config file:

    Here is the other data from terminal:

    ls -l /usr/local
    total 0
    drwxr-xr-x 11 root wheel 374 Feb 10 23:09 MacGPG2
    drwxr-xr-x@ 18 root wheel 612 Feb 10 23:09 bin
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 clamXav
    drwxr-xr-x@ 7 root wheel 238 Jan 23 23:52 include
    drwxr-xr-x@ 22 root wheel 748 Jan 23 23:52 lib
    drwxr-xr-x@ 3 root wheel 102 Jan 23 23:51 libexec
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 sbin
    drwxr-xr-x@ 9 root wheel 306 Jan 23 23:52 share

    ls -l /opt
    ls: /opt: No such file or directory

    which gpg
    /usr/local/bin/gpg

    which gpg2
    /usr/local/bin/gpg2

    ls -l ~/.gnupg
    total 432
    srwx------ 1 marinerrr staff 0 Jan 24 08:44 S.gpg-agent
    -rw------- 1 marinerrr staff 9119 Mar 18 2007 gpg copy.conf
    -rw------- 1 marinerrr staff 9158 Aug 14 2011 gpg.conf
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04 copy.42
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04.42
    -rw------- 1 marinerrr staff 9029 Mar 27 2007 gpg.conf.macgpg.07-03-27_19.15.13
    -rw------- 1 marinerrr staff 9154 May 10 2009 gpg.conf.macgpg.09-05-10_23.59.08
    drwx------ 2 marinerrr staff 68 Aug 14 2011 private-keys-v1.d
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg~
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg~
    -rw------- 1 marinerrr staff 600 Jun 3 2007 random_seed
    -rw------- 1 marinerrr staff 600 Mar 17 2007 random_seed copy
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring copy.gpg
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring.gpg
    -rw------- 1 marinerrr staff 1200 Mar 18 2007 trustdb copy.gpg
    -rw------- 1 marinerrr staff 1320 Jan 24 20:15 trustdb.gpg

    ls -ld ~/.gnupg
    drwx------ 20 marinerrr staff 680 Feb 10 23:09 /Users/marinerrr/.gnupg

    I'll look through the console later today and will also get that information to you soon.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  17. 17 Posted by GAry on 21 Feb, 2012 03:23 AM

    GAry's Avatar

    I have the exact same issue. Please let me know what you find. Also when I uninstall, the error message still appears and I cannot use GPG Key Maker.

  18. 18 Posted by Troy Torres on 25 Feb, 2012 06:47 PM

    Troy Torres's Avatar

    Any updates or suggestions from here? I had to uninstall again due to conflicts in Mail. Any suggestions or hints are greatly appreciated?

    Kind regards,
    Troy.

    /////

    Luke and Mento

    I re-installed the following in this order:
       1. MacGPG2-2.0.17-9
       2. GPG Keychain Access-1.0b6
       3. GPGMail-2.0a21
       4. GPGPreferences-0.9.2
       5. GPGServices-1.6

    When I ran GPG Keychain Access, the following error came up:

    GPG Keychain Access
    GPG Config Error
    Ups, something went wrong. GPG was found on your system but there seems to be a problem with the config file. Please contact the GPGTools team http://www.gpgtools.org/about.html.

    When I ran Mail, the following error came up:

    GPG_CONFIG_ERROR_TITLE
    GPG_CONFIG_ERROR_MESSAGE

    Then I reinstalled the GPGTools-20111224.dmg package (35.7MB) over the top of what was already there and tried again with the exact same results.

    Also, in the GPG preference pane, the Default Key box is blank and it does not allow me to select anything (I have existing keys from another Mac).

    Any help you can provide is greatly appreciated.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  19. 19 Posted by Troy Torres on 25 Feb, 2012 06:48 PM

    Troy Torres's Avatar

    Alex

    Any follow-up from this email sent on 2/14? Any suggestions or hints you have are greatly appreciated.

    /////

    Alex

    Here is the config file:

    Here is the other data from terminal:

    ls -l /usr/local
    total 0
    drwxr-xr-x 11 root wheel 374 Feb 10 23:09 MacGPG2
    drwxr-xr-x@ 18 root wheel 612 Feb 10 23:09 bin
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 clamXav
    drwxr-xr-x@ 7 root wheel 238 Jan 23 23:52 include
    drwxr-xr-x@ 22 root wheel 748 Jan 23 23:52 lib
    drwxr-xr-x@ 3 root wheel 102 Jan 23 23:51 libexec
    drwxr-xr-x@ 8 root wheel 272 Jan 23 23:52 sbin
    drwxr-xr-x@ 9 root wheel 306 Jan 23 23:52 share

    ls -l /opt
    ls: /opt: No such file or directory

    which gpg
    /usr/local/bin/gpg

    which gpg2
    /usr/local/bin/gpg2

    ls -l ~/.gnupg
    total 432
    srwx------ 1 marinerrr staff 0 Jan 24 08:44 S.gpg-agent
    -rw------- 1 marinerrr staff 9119 Mar 18 2007 gpg copy.conf
    -rw------- 1 marinerrr staff 9158 Aug 14 2011 gpg.conf
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04 copy.42
    -rw------- 1 marinerrr staff 9029 Mar 17 2007 gpg.conf.macgpg.07-03-17_23.04.42
    -rw------- 1 marinerrr staff 9029 Mar 27 2007 gpg.conf.macgpg.07-03-27_19.15.13
    -rw------- 1 marinerrr staff 9154 May 10 2009 gpg.conf.macgpg.09-05-10_23.59.08
    drwx------ 2 marinerrr staff 68 Aug 14 2011 private-keys-v1.d
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg
    -rw------- 1 marinerrr staff 24040 Mar 18 2007 pubring copy.gpg~
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg
    -rw------- 1 marinerrr staff 31361 Jan 24 20:15 pubring.gpg~
    -rw------- 1 marinerrr staff 600 Jun 3 2007 random_seed
    -rw------- 1 marinerrr staff 600 Mar 17 2007 random_seed copy
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring copy.gpg
    -rw------- 1 marinerrr staff 5857 Mar 17 2007 secring.gpg
    -rw------- 1 marinerrr staff 1200 Mar 18 2007 trustdb copy.gpg
    -rw------- 1 marinerrr staff 1320 Jan 24 20:15 trustdb.gpg

    ls -ld ~/.gnupg
    drwx------ 20 marinerrr staff 680 Feb 10 23:09 /Users/marinerrr/.gnupg

    I'll look through the console later today and will also get that information to you soon.

    Kind regards,
    Troy.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  20. Support Staff 20 Posted by Luke Le on 25 Feb, 2012 07:05 PM

    Luke Le's Avatar

    Hi Troy,

    unfortunately there's no error discoverable in the info you sent us.

    One last thing I could think of is two commands you could run in terminal:

    ls -l /usr/local/bin/gpg2
    ls -l /usr/local/bin/gpg

    and one other is trying to encrypt a file in terminal

    gpg2 -a -e -r email path/to/file

    replace email with the address of someone you have the public key to.

    Please post the output and hopefully we'll finally find out what's wrong.

  21. 21 Posted by CHIEF on 26 Feb, 2012 01:35 AM

    CHIEF's Avatar

    Hi,

    I have the same problem, and when uninstalling gpgtools using the uninstaller I still have the Icon of gpgtool in my System Preferences.. ;(
    Is there any solution for this problem yet?

    Best regards

  22. 22 Posted by Alex on 28 Feb, 2012 07:50 PM

    Alex's Avatar

    @Chief: Thanks. The nightly release (see http://nightly.gpgtools.org ) now removes the System Preference too (it wasn't deleted since it was renamed some weeks ago)

    @TAN/Troy/Gary: please provide us the "General GPGTools System Diagnostics" (see http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-inf...) in case you still have config errors and create a new discussion for yourself. It's hard keep track on open issues if they get "hijacked" ;)

  23. Alex closed this discussion on 28 Feb, 2012 07:50 PM.

  24. Troy Torres re-opened this discussion on 06 Mar, 2012 02:48 AM

  25. 23 Posted by Troy Torres on 06 Mar, 2012 02:48 AM

    Troy Torres's Avatar

    Alex

    Good news. GPG now works on my machine. I did a lot of "cleaning up" but I believe the ultimate culprit was what I found when looking to see if I was infected with Flashback.G (see the following article: http://tidbits.com/article/12818 ). About half way down the page, you'll see this paragraph:

    This latest variant also creates a file at /Users/Shared/.svcdmp and a plist file, used to patch applications, at ~/.MACOSX/environment.plist, along with a log stored at ~/Library/Logs/vmLog.

    I went into the environment.plist file to see what was going on and I was shocked to see some GPG stuff from six years ago. I made a backup of this file, then deleted it, reinstalled GPG and it worked! I must say that I'm not 100% certain this was the culprit—I had also used ONYX to purge all of my caches, rebuild everything ONYX would let me rebuild, and for good measure, I restarted with zapping the P-RAM. It may have been one of these other items that did the job, but I really think it was some conflicting legacy code in that environment.plist file.

    Here is my (recently updated) public key.

    ____________________________________________________________________
    Troy Torres | [email blocked] | +1 707-341-6317 | sent via "Tsunami"

  26. Support Staff 24 Posted by Steve on 06 Mar, 2012 12:04 PM

    Steve's Avatar

    Glad the issue could be resolved. Thx for your feedback :)

  27. Steve closed this discussion on 06 Mar, 2012 12:04 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