From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Boehm Newsgroups: gmane.emacs.bugs Subject: bug#54096: 27.2; Error retrieving package descriptions when TLS 1.3 is used (macOS) Date: Mon, 21 Feb 2022 18:12:28 +0000 (UTC) Message-ID: <38098a8ac3cb76e9@sometimesfood.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4885"; mail-complaints-to="usenet@ciao.gmane.io" To: 54096@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 23:15:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nMGxi-0000yZ-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 23:15:18 +0100 Original-Received: from localhost ([::1]:58352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMGxg-00038V-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 17:15:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMGxS-000386-8F for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 17:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMGxR-0005O8-VG for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 17:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMGxR-0003rJ-RR for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 17:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Boehm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 22:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54096 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164548164814756 (code B ref -1); Mon, 21 Feb 2022 22:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2022 22:14:08 +0000 Original-Received: from localhost ([127.0.0.1]:39354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMGwa-0003pv-9I for submit@debbugs.gnu.org; Mon, 21 Feb 2022 17:14:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMDHH-0001s2-55 for submit@debbugs.gnu.org; Mon, 21 Feb 2022 13:19:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMDHG-0000WF-WD for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 13:19:15 -0500 Original-Received: from [2a01:7e00::f03c:91ff:fe93:4e8c] (port=37304 helo=sometimesfood.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMDHE-0000M2-6r for bug-gnu-emacs@gnu.org; Mon, 21 Feb 2022 13:19:14 -0500 Original-Received: from sometimesfood.org (localhost [127.0.0.1]) by sometimesfood.org (OpenSMTPD) with ESMTP id bd481eea for ; Mon, 21 Feb 2022 18:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sometimesfood.org; h=from:date:to:subject:content-type:mime-version :content-transfer-encoding:message-id; s=dkim; bh=o3VG1DXmZqDchr aSFUcIq3/oDDw=; b=BqaKN1S433NTvstVZbZ7PVLv7nMdy2s0tw9fPxLTO4pa0f oLz4Cz5hWGNsddcnVvcFGWqvgwt0No2qqNB4FAGZt27rZz1z2eNml6uEvolNyunp h9P+K/EB/iaV4OWPk/WN5GH4qHDb/Y2DenYqmGMjAhPTBgikalo9sAYwiHeW0= Original-Received: from localhost (sometimesfood.org [local]) by sometimesfood.org (OpenSMTPD) with ESMTPA id fad71fb6 for ; Mon, 21 Feb 2022 18:12:28 +0000 (UTC) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:7e00::f03c:91ff:fe93:4e8c (failed) Received-SPF: pass client-ip=2a01:7e00::f03c:91ff:fe93:4e8c; envelope-from=sebastian@sometimesfood.org; helo=sometimesfood.org X-Spam_score_int: 20 X-Spam_score: 2.0 X-Spam_bar: ++ X-Spam_report: (2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 21 Feb 2022 17:14:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227389 Archived-At: After upgrading Emacs from 27.1 to 27.2 on my macOS system, I've run into a problem with refreshing my package descriptions when TLS 1.3 is enabled. When I try to upgrade my package descriptions from the package list, the following error message appears in the minibuffer: error in process sentinel: Error retrieving: https://elpa.gnu.org/packages/archive-contents (error connection-failed "connect" :host "elpa.gnu.org" :service 443) The problem goes away if I disable TLS 1.3 by setting gnutls-algorithm-priority: (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") Could this be related to #34341? While #34341 was fixed in Emacs 26.3, the symptoms and workaround are the same. Steps to reproduce: 1. Add a second archive to the package archive list, display package list, refresh packages. (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) (list-packages) (package-refresh-contents) 2. Wait for a couple of seconds for the error message to appear. Additional information: - I cannot reproduce the problem reliably without following all of the steps above. - I am using packages downloaded from emacsformacosx.com. The problem can be reproduced by installing Emacs via Homebrew as well via "brew install homebrew/cask/emacs". - I am not experiencing any intermittent network failures. - I can reproduce the problem as a different user with an empty .emacs.d and with "emacs -Q". - The package lists are displayed correctly when using ewww to visit the pages mentioned above. - Only Emacs 27.2 seems to be affected. I cannot reproduce the problem with Emacs 26.3, Emacs 27.1 or Emacs 28.0.90. - Affected version: GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) - macOS version: 12.2.1 - Other people seem to be affected by the same issue as well: https://clojurians-log.clojureverse.org/emacs/2021-09-03 If I enable toggle-debug-on-error, I get the backtrace below: Debugger entered--Lisp error: (error "Error retrieving: https://elpa.gnu.org/packages/archive-contents (error connection-failed \"connect\" :host \"elpa.gnu.org\" :service 443)") signal(error ("Error retrieving: https://elpa.gnu.org/packages/archive-contents (error connection-failed \"connect\" :host \"elpa.gnu.org\" :service 443)")) #f(compiled-function (status) #)((:error (error connection-failed "connect" :host "elpa.gnu.org" :service 443))) apply(#f(compiled-function (status) #) (:error (error connection-failed "connect" :host "elpa.gnu.org" :service 443))) url-http-activate-callback() url-http-async-sentinel(# "connect") As far as I can tell, the debug messages emitted by GnuTLS when gnutls-log-level is set to 1 or 2 are unremarkable, but if there's anything specific that I should look out for, just let me know. Is there anything I can do to help debug this issue? Best, Sebastian