Mailing List Archive

Server indicated a failure
Hi,
As there is no my mail "Server indicated a failure" sent 24.May 2021 in
the Mail list for May, so I send that same mail again.


Hi,

I tried to install msys2 on windows10 but pacman fails to provide pgp
keys because there is some problem that is not clear to me,

the same procedure works on another windows10.

That's why I made a git version of gnupg, but even with that version
it's not possible to do "--refresh-keys" because gnupg reports an error
"gpg: keyserver refresh failed: Server indicated a failure"

and looking at the source I can say my opinion that no one doesn't know
what it's about !

A particular problem in gnupg is the large number of possible errors,
but also without any chance of finding out the reason.

---


gpg --verbose --homedir /etc/pacman.d/gnupg/ --no-permission-warning
--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: Note: RFC4880bis features are enabled.
gpg: no running dirmngr - starting
'\\VBoxSvr\winxp-share-wine-z\mnt\WD-Elements-25A1\msys2\windows-10\usr\local\bin\dirmngr.exe'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: waiting for the dirmngr to come up ... (4s)
gpg: waiting for the dirmngr to come up ... (3s)
gpg: waiting for the dirmngr to come up ... (2s)
gpg: connection to the dirmngr established
gpg: refreshing 12 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Server indicated a failure

---
My basic question is is there anyone who can tell how to overcome this
problem ?


Vladimir Kokovi?, DP senior(70),

Serbia, Belgrade, 24.May 2021
Re: Server indicated a failure [ In reply to ]
On 25/05/2021 08:42, gmail Vladimir Kokovi? via Gnupg-devel wrote:
> gpg: refreshing 12 keys from hkps://hkps.pool.sks-keyservers.net
> gpg: keyserver refresh failed: Server indicated a failure

This is most likely your problem. hkps.pool.sks-keyservers.net currently
consists of a single node, and so is vulnerable to transient network
failures etc. But the default keyserver was changed a long time ago, so
either you are using an old version of gnupg, or you have a custom
config file with obsolete settings.

* What version of gnupg are you using?
* Did you build it locally or download a binary?
* What's in your dirmngr.conf file?

--
Andrew Gallagher
Re: Server indicated a failure [ In reply to ]
Hi,

I explained everything nicely, but I still answer your questions.


1."What version of gnupg are you using"
which gpg
/usr/local/bin/gpg

gpg --version
gpg (GnuPG) 2.3.2-beta60
libgcrypt 1.9.3-unknown
NOTE: THIS IS A DEVELOPMENT VERSION!
It is only intended for test purposes and should NOT be
used in a production environment or with production keys!
Copyright (C) 2021 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:\Users\vlada\AppData\Roaming\gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
AEAD: EAX, OCB
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB

2. "Did you build it locally or download a binary"

GIT_DIR=.git git describe HEAD
gnupg-2.3.1-60-g260bbb4ab

3. "What's in your dirmngr.conf file"

vlada@vlada-kuci-win MSYS ~
ls -laR /z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d
/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d:
total 28
drwxr-xr-x 1 vlada None    0 May 24 06:39 .
drwxr-xr-x 1 vlada None    0 May 25 13:11 ..
drwxr-xr-x 1 vlada None    0 May 24 10:52 gnupg
-rw-r--r-- 1 vlada None 1309 Mar 25 23:24 mirrorlist.mingw32
-rw-r--r-- 1 vlada None 1351 Mar 25 23:24 mirrorlist.mingw64
-rw-r--r-- 1 vlada None 1299 Mar 25 23:24 mirrorlist.msys
-rw-r--r-- 1 vlada None 1351 Mar 25 23:24 mirrorlist.ucrt64

/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg:
total 128
drwxr-xr-x 1 vlada None     0 May 24 10:52 .
drwxr-xr-x 1 vlada None     0 May 24 06:39 ..
-rw-r--r-- 1 vlada None    22 May 24 10:52 S.dirmngr
-rw-r--r-- 1 vlada None    54 May 24 10:37 S.gpg-agent
-rw-r--r-- 1 vlada None    54 May 24 10:37 S.gpg-agent.browser
-rw-r--r-- 1 vlada None    54 May 24 10:37 S.gpg-agent.extra
-rw-r--r-- 1 vlada None    54 May 24 10:37 S.gpg-agent.ssh
drwxr-xr-x 1 vlada None     0 May 24 10:52 crls.d
-rw-r--r-- 1 vlada None    17 May 24 06:39 gpg-agent.conf
-rw-r--r-- 1 vlada None   141 May 24 06:39 gpg.conf
drwxr-xr-x 1 vlada None     0 May 24 06:39 private-keys-v1.d
-rw-r--r-- 1 vlada None 39991 May 24 07:13 pubring.gpg
-rw-r--r-- 1 vlada None 39991 May 24 07:13 pubring.gpg~
-rw-r--r-- 1 vlada None     0 May 24 06:39 secring.gpg
-rw-r--r-- 1 vlada None  1200 May 24 07:13 trustdb.gpg

/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/crls.d:
total 12
drwxr-xr-x 1 vlada None 0 May 24 10:52 .
drwxr-xr-x 1 vlada None 0 May 24 10:52 ..
-rw-r--r-- 1 vlada None 6 May 24 10:52 DIR.txt

/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/private-keys-v1.d:
total 8
drwxr-xr-x 1 vlada None 0 May 24 06:39 .
drwxr-xr-x 1 vlada None 0 May 24 10:52 ..

cat /z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/gpg.conf
no-greeting
no-permission-warning
lock-never
keyserver-options timeout=10
keyserver-options import-clean
keyserver-options no-self-sigs-only

cat
/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/gpg-agent.conf
disable-scdaemon

vlada@vlada-kuci-win MSYS ~

Vladimir Kokovi?, DP senior(70),

Serbia, Belgrade, 25.May 2021
Re: Server indicated a failure [ In reply to ]
Hi, Vladimir.

On 25/05/2021 12:21, gmail Vladimir Kokovi? wrote:
>
> There is NO WARRANTY, to the extent permitted by law.
> Home: C:\Users\vlada\AppData\Roaming\gnupg

Are there any config files in c:\Users\vlada\AppData\Roaming\gnupg ?

You may be able to address this by creating a new file:

```
/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/dirmngr.conf
```

and adding the following line:

```
keyserver hkps://keys.openpgp.net
```

--
Andrew Gallagher
Re: Server indicated a failure [ In reply to ]
On 25/05/2021 13:54, Andrew Gallagher via Gnupg-devel wrote:
>
> ```
> keyserver hkps://keys.openpgp.net
> ```

This should of course be `keys.openpgp.org`. I always get that wrong. :-(

--
Andrew Gallagher
Re: Server indicated a failure [ In reply to ]
Hi Andrew,

vlada@vlada-kuci-win MSYS ~
cat /z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d/gnupg/dirmngr.conf

keyserver hkps://keys.openpgp.org

vlada@vlada-kuci-win MSYS ~
gpg --verbose --homedir /etc/pacman.d/gnupg/ --no-permission-warning
--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: Note: RFC4880bis features are enabled.
gpg: refreshing 12 keys from hkps://hkps.pool.sks-keyservers.net
gpg: keyserver refresh failed: Server indicated a failure

vlada@vlada-kuci-win MSYS ~


Vladimir Kokovi?, DP senior(70),

Serbia, Belgrade, 25.May 2021


On 25.5.21. 14:58, Andrew Gallagher via Gnupg-devel wrote:
> On 25/05/2021 13:54, Andrew Gallagher via Gnupg-devel wrote:
>>
>> ```
>> keyserver hkps://keys.openpgp.net
>> ```
>
> This should of course be `keys.openpgp.org`. I always get that wrong. :-(
>
>
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: Server indicated a failure [ In reply to ]
On 25/05/2021 14:08, gmail Vladimir Kokovi? wrote:
> gpg --verbose --homedir /etc/pacman.d/gnupg/ --no-permission-warning
> --refresh-keys

Is /etc/pacman.d the same directory as
/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d?

You may need to kill the dirmngr process if it is still running from
before you changed the configuration.

--
Andrew Gallagher
Re: Server indicated a failure [ In reply to ]
Hi Andrew,

Yes, msys2 /etc/pacman.d is the
/z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d

or

z:\mnt\WD-Elements-25A1\msys2\windows-10\etc\pacman.d

vlada@vlada-kuci-win MSYS ~
ps -ef|grep dirmngr


On 25.5.21. 15:14, Andrew Gallagher wrote:
> On 25/05/2021 14:08, gmail Vladimir Kokovi? wrote:
>> gpg --verbose --homedir /etc/pacman.d/gnupg/ --no-permission-warning
>> --refresh-keys
>
> Is /etc/pacman.d the same directory as
> /z/mnt/WD-Elements-25A1/msys2/windows-10/etc/pacman.d?
>
> You may need to kill the dirmngr process if it is still running from
> before you changed the configuration.
>

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel