dirmngr DNS error again? Can't do any keyserver operations

Hi!

No matter what I try, I can’t complete any keyserver operations on my Windows machine. Using gpg on Linux inside Bach on Windows work fine, and also on separate Linux servers. This is what it looks like.

Starting C:\Program Files (x86)\GnuPG\bin\gpg.exe --refresh-keys
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: refreshing 23 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Resource temporarily unavailable

Tried using different keyservers, with same sad result.
http://pgp.zdv.uni-mainz.de:11371
hkps://hkps.pool.sks-keyservers.net
pgp.mit.edu

c:\Program Files (x86)\GnuPG\bin>gpg -vvv --debug-all --keyserver=“pgp.mit.edu” --search-keys 8This_is_my_key_A
gpg: reading options from ‘C:/Users/MyUser/AppData/Roaming/gnupg/gpg.conf’
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: using character set ‘CP850’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_0x000000d0 ← # Home: C:/Users/MyUser/AppData/Roaming/gnupg
gpg: DBG: chan_0x000000d0 ← # Config: C:/Users/MyUser/AppData/Roaming/gnupg/dirmngr.conf
gpg: DBG: chan_0x000000d0 ← OK Dirmngr 2.1.22-beta149 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_0x000000d0 → GETINFO version
gpg: DBG: chan_0x000000d0 ← D 2.1.22-beta149
gpg: DBG: chan_0x000000d0 ← OK
gpg: DBG: chan_0x000000d0 → KEYSERVER --clear hkp://pgp.mit.edu
gpg: DBG: chan_0x000000d0 ← OK
gpg: DBG: chan_0x000000d0 → KS_SEARCH – 8This_is_my_key_A
gpg: DBG: chan_0x000000d0 ← ERR 167804934 Resource temporarily unavailable
gpg: error searching keyserver: Resource temporarily unavailable
gpg: keyserver search failed: Resource temporarily unavailable
gpg: DBG: chan_0x000000d0 → BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks

Added “standard-resolver” to dirmngr.conf and since that isn’t supported on windows I got a slightly different error message.

c:\Program Files (x86)\GnuPG\bin>gpg -vvv --debug-all --keyserver=“pgp.mit.edu” --search-keys 8This_is_my_key_A
gpg: reading options from ‘C:/Users/MyUser/AppData/Roaming/gnupg/gpg.conf’
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: using character set ‘CP850’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: no running Dirmngr - starting ‘c:\Program Files (x86)\GnuPG\bin\dirmngr.exe’
gpg: waiting for the dirmngr to come up … (5s)
gpg: DBG: chan_0x000000ec ← # Home: C:/Users/MyUser/AppData/Roaming/gnupg
gpg: DBG: chan_0x000000ec ← # Config: C:/Users/MyUser/AppData/Roaming/gnupg/dirmngr.conf
gpg: DBG: chan_0x000000ec ← OK Dirmngr 2.1.22-beta149 at your service
gpg: connection to the dirmngr established
gpg: DBG: chan_0x000000ec → GETINFO version
gpg: DBG: chan_0x000000ec ← D 2.1.22-beta149
gpg: DBG: chan_0x000000ec ← OK
gpg: DBG: chan_0x000000ec → KEYSERVER --clear hkp://pgp.mit.edu
gpg: DBG: chan_0x000000ec ← OK
gpg: DBG: chan_0x000000ec → KS_SEARCH – 8This_is_my_key_A
gpg: DBG: chan_0x000000ec ← ERR 167772220 Not supported
gpg: error searching keyserver: Not supported
gpg: keyserver search failed: Not supported
gpg: DBG: chan_0x000000ec → BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks

Same problem with both 273 and 275.

259 works perfect.

270 also broken.

So,
Dirmngr 2.1.22-beta30 works, but
Dirmngr 2.1.22-beta149 and Dirmngr 2.1.22-beta169 are broken.

Thanks for the Report. (And now I know who you are in IRC :wink: )

I can reproduce the problem. I’ll bisect it and see to it that its fixed.

Sorry for the latest Beta’s we were focusing on some Compliance mode things and did not do our Usual Smoke test. And the autotest suite does not do tests that require an internet connection,…

FTR. I’ve opened a task for this: https://dev.gnupg.org/T3318

For straight bugs you can also report them directly to https://dev.gnupg.org

Regards,
Andre

Yey, beta 276 works!

gpg -vvv --debug-all --keyserver=“pgp.mit.edu” --search-keys 8_My_key_A
gpg: reading options from ‘C:/Users/MyUser/AppData/Roaming/gnupg/gpg.conf’
gpg: using character set ‘CP850’
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: no running Dirmngr - starting ‘c:\Program Files (x86)\GnuPG\bin\dirmngr.exe’
gpg: waiting for the dirmngr to come up … (5s)
gpg: waiting for the dirmngr to come up … (4s)
gpg: DBG: chan_0x000000e8 ← # Home: C:/Users/MyUser/AppData/Roaming/gnupg
gpg: DBG: chan_0x000000e8 ← # Config: C:/Users/MyUser/AppData/Roaming/gnupg/dirmngr.conf
gpg: DBG: chan_0x000000e8 ← OK Dirmngr 2.1.22 at your service
gpg: connection to the dirmngr established
gpg: DBG: chan_0x000000e8 → GETINFO version
gpg: DBG: chan_0x000000e8 ← D 2.1.22
gpg: DBG: chan_0x000000e8 ← OK
gpg: DBG: chan_0x000000e8 → KEYSERVER --clear hkp://pgp.mit.edu
gpg: DBG: chan_0x000000e8 ← OK
gpg: DBG: chan_0x000000e8 → KS_SEARCH – 8_My_key_A
gpg: DBG: chan_0x000000e8 ← S SOURCE http://pgp.mit.edu:11371
gpg: DBG: chan_0x000000e8 ← D info:1:1%0Apub:8_My_key_A:1:4096:123123123:123123123:%0Auid:MyUser MyUser@MyDomain.com:123123123::%0Auid:MyUser MyUser@MyDomain.com:123123123::%0Auid:MyUser MyUser@MyDomain.com:123123123::%0A%0D%0A
gpg: data source: http://pgp.mit.edu:11371
gpg: DBG: chan_0x000000e8 ← OK
gpg: DBG: iobuf-1.0: close ‘?’
(1) MyUser MyUser@MyDomain.com
MyUser MyUser@MyDomain.com
MyUser MyUser@MyDomain.com
4096 bit RSA key 7My_short_keyA, created: 2015-06-20, expires: 2019-06-30
Keys 1-1 of 1 for “8_My_key_A”. Enter number(s), N)ext, or Q)uit > n
gpg: DBG: chan_0x000000e8 → BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg: build=0 update=0 insert=0 delete=0
gpg: reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x00000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks