Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691666 - emerge --sync fails while refreshing keys if ipv6 is not enabled
Summary: emerge --sync fails while refreshing keys if ipv6 is not enabled
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-07 07:39 UTC by Stefano Crocco
Modified: 2023-08-17 06:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info (emerge-info,6.32 KB, text/plain)
2019-08-07 07:39 UTC, Stefano Crocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Crocco 2019-08-07 07:39:51 UTC
Created attachment 585964 [details]
Output of emerge --info

When running emerge --sync using a kernel with ipv6 disabled, ot hangs at the refreshing keys stage. This is the messages I get:

>>> Syncing repository 'gentoo' into '/usr/portage'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ... [ !! ]
 * Refreshing keys from keyserver hkps://keys.gentoo.org ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: keyserver refresh failed: No keyserver available

After that, it tries again multiple times, each time repeating the last two lines, before giving up and exiting.

Using a kernel with ipv6 enabled, emerge --sync completes successfully. 
I started experiencing this problem when the line

sync-openpgp-keyserver = hkps://keys.gentoo.org

was added in /usr/share/portage/config/repos.conf (i believe with portage-2.3.69): without this line, emerge is able to sync successfully even without ipv6.

I already saw bug #646194 (actually, it's what suggested me to try enabling ipv6 in the kernel in the first place), but as it's supposed to be fixed, I decided to create another one.
Comment 1 Reva Denis 2020-02-26 13:22:50 UTC
I confirm that's bug present in Raspberry pi 3 and generic Gentoo PC.
pi64 ~ # LC_ALL=C eix-sync
 * Running emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...                                                                                                               [ !! ]
 * Refreshing keys from keyserver hkps://keys.gentoo.org ...OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: keyserver refresh failed: Server indicated a failure

OpenPGP keyring refresh failed:
gpg: refreshing 4 keys from hkps://keys.gentoo.org
gpg: keyserver refresh failed: Server indicated a failure

^C

Exiting on signal Signals.SIGINT
 * Time statistics:
    26 seconds total
Comment 2 Reva Denis 2020-02-26 13:23:34 UTC
I vote for this bug should be solved.
Comment 3 Reva Denis 2020-02-26 13:24:18 UTC
And I confirm that issue starts when I switched to router that doesn't support ipv6 yet.
Comment 4 Zac Medico gentoo-dev 2020-02-26 17:46:50 UTC
Maybe the same or related to bug 704456.
Comment 5 Reva Denis 2020-03-01 05:33:17 UTC
=app-crypt/gnupg-2.2.19 solves the issue
Comment 6 Reva Denis 2020-03-01 05:36:42 UTC
1. Update portage tree via emerge-webrsync
2. Install =app-crypt/gnupg-2.2.19 with ~ keyword
Comment 7 Reva Denis 2020-12-23 11:53:46 UTC
That bug seems to be fixed.
Comment 8 Larry the Git Cow gentoo-dev 2023-08-17 06:52:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=9268a92b9666eaaf263999b18220c0d56d8c476c

commit 9268a92b9666eaaf263999b18220c0d56d8c476c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-08-13 04:36:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-17 06:52:55 +0000

    sync: rsync, git: respect --debug for gemato
    
    Respect --debug and pass it down to gemato so we get nice debugging output
    when e.g. 'refreshing keys' is stuck.
    
    Bug: https://bugs.gentoo.org/646194
    Bug: https://bugs.gentoo.org/647696
    Bug: https://bugs.gentoo.org/691666
    Bug: https://bugs.gentoo.org/779766
    Bug: https://bugs.gentoo.org/873133
    Bug: https://bugs.gentoo.org/906875
    Bug: https://github.com/projg2/gemato/issues/7
    Bug: https://github.com/projg2/gemato/issues/25
    Signed-off-by: Sam James <sam@gentoo.org>

 lib/portage/sync/modules/git/git.py     | 15 +++++++++++++--
 lib/portage/sync/modules/rsync/rsync.py | 11 +++++++++--
 lib/portage/sync/syncbase.py            | 12 ++++++++----
 3 files changed, 30 insertions(+), 8 deletions(-)