Having issues with dirmngr in gpg 2.1

MFPA 2014-667rhzu3dc-lists-groups at riseup.net
Fri Jun 3 13:33:17 CEST 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512



On Friday 13 May 2016 at 10:38:28 AM, in
<mid:1DC3C8C67280FB4C9A402CB6DB1358F51B8FF0BAC8 at S2008SBS.intern.giepa.de>,
Daniel Ranft wrote:


> Hi,

> Since a few weeks I cannot search keys anymore. When
> I use gpg

> --keyserver <something> --search-keys <somebody>,
> the commandline

> freezes and the process explorer does not show me a
> dirmngr.exe instance.

My commandline freezes after telling me:-
gpg: connection to the dirmngr established

(at which point dirmngr.exe appears in task manager).
After a couple of minutes two more lines appear and the task exits:-

gpg: no keyserver known (use option --keyserver)
gpg: keyserver search failed: No keyserver available

Subsequent attempts to run
gpg -v --keyserver hkp://pool.sks-keyservers.net --search-keys mfpa
display the "no keyserver known" message with no freezing, barely a
pause.

If I try with GnuPG version 2.1.10 instead of 2.1.12, the only thing
that changes is the error message. The first attempt gives:-

gpg: error searching keyserver: System error w/o errno
gpg: keyserver search failed: System error w/o errno

Subsequent attempts give:-

gpg: error searching keyserver: Input/output error
gpg: keyserver search failed: Input/output error


> I then tried to investigate this further by trying
> to start the

> dirmngr manually with following result:

> C:\Program Files
> (x86)\GNU\GnuPG\2.1.12\bin>dirmngr.exe --daemon

> dirmngr[5020]: Error while opening
> `C:\ProgramData\GNU\etc\gnupg\ldapservers.conf': No
> such file or directory

I get that, plus similar lines for "trusted-certs" and "extra-certs".
(Windows Explorer also doesn't find "ldapservers.conf" at all, and
only finds "trusted-certs" and "extra-certs" in left-over directories
from old installations.)

Then I get:-

dirmngr[892]: failed to open cache dir file
'C:\Users\[Username]\AppData\Local\GNU\cache\gnupg\crls.d\DIR.txt': No
such file or directory

And it proceeds to create it. There is already a "crls.d\DIR.txt"
under "C:\Users\[Username]\AppData\Roaming\gnupg".

Then it seems to stop doing anything.

> dirmngr[5020]: The socket cannot be bound to
> `C:\Windows\S.dirmngr': Unknown error

I don't get that error. And on searching, I find S.dirmngr is
created at C:\Users\[Username]\AppData\Local\VirtualStore\Windows
whereas the S.dirmngr created when GnuPG calls dirmngr.exe is at
C:\Users\[Username]\AppData\Roaming\gnupg (which is
"%appdata%\gnupg").



> I think, gpg should try to create the socket file under
> %appdata%\gnupg instead of under C:\Windows.

For me, it does.


- --
Best regards

MFPA                  <mailto:2014-667rhzu3dc-lists-groups at riseup.net>

Life is a holiday. In the same way that glass is a liquid.
-----BEGIN PGP SIGNATURE-----

iQF8BAEBCgBmBQJXUWr9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCM0FFN0VDQTlBOEM4QjMwMjZBNUEwRjU2
QjdDNzRDRUIzMUYyNUYwAAoJEGt8dM6zHyXwYbAH+QHlfGp8kcMmHVVj6bl26dl5
o56VDr86wxAhj7woLIekIigM3kNdTrKS4jEzpp4jeGwRnTDM94m0QuweScwh25E7
bNukuO84iAQyAEBqu4HAHsLsYqDVzaPguqZXeDgyu4fk1H/osYBHuI2IVFxUE1p+
PpSChxsWcARKTmgX2Bd8DUpxom0oX9NP9Ss2Fm5fvqqEDMMWe9xX4bBZ3DIRqe1n
g5NXaR5w0hyhdsj+FEJMopv0LgkkVFS+kDJ23ipvTAOYxd+RwblqvNKAOzqYefLr
MeCYuE9jCJqLQ8gEwsizoJpMalliyR3XziD1oEmdaiEeoCgLSlZyMMcr9NidiAaI
vgQBFgoAZgUCV1Fq/V8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVu
cGdwLmZpZnRoaG9yc2VtYW4ubmV0MzNBQ0VENEVFOTEzNEVFQkRFNkE4NTA2MTcx
MkJDNDYxQUY3NzhFNAAKCRAXErxGGvd45ImwAPwJsomaw4gsWb1897+4F++qQ1lI
XKJh4q+rstvu5tK1TQD/XKZEqE4VQh+pdPhsR1iXpTXn1MeUObDwJ3gr9YrcHwE=
=O1cz
-----END PGP SIGNATURE-----




More information about the Gnupg-users mailing list