From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: GNU Elpa and Emacs 25.3 Date: Sat, 15 Feb 2020 22:05:32 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000077c451059ea3afe6" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33234"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 15 22:06:28 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j34dv-0008Wo-UM for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Feb 2020 22:06:28 +0100 Original-Received: from localhost ([::1]:54658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j34du-0005fj-Vq for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Feb 2020 16:06:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j34dI-00051n-3f for emacs-devel@gnu.org; Sat, 15 Feb 2020 16:05:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j34dG-0007JH-Fq for emacs-devel@gnu.org; Sat, 15 Feb 2020 16:05:47 -0500 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:37512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j34dG-0007Go-1h for emacs-devel@gnu.org; Sat, 15 Feb 2020 16:05:46 -0500 Original-Received: by mail-wr1-x435.google.com with SMTP id w15so15089173wru.4 for ; Sat, 15 Feb 2020 13:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lJCpkpKJAOzmEF6SnO42lnNpQm4fuVDty21DKiTpo+A=; b=FpUAqhrDaWDY0ef7c8rWaFM5KE9ulJAZchBDjEK2u1Gd4+UbAO9d0R+ab3+/LR/z2b vY7zNV08kHwX0QBG62fIBLsxsPUGgpc6Coxw17D935HKkB6sYtcH39WXkFnqhVsUx9qO uWi5A4Ypt/mazbiF3BWyxlRa9SRqiFYKPGd/Q5VsU9cvOkeWGb4yLl+xNcXCV6TvWrAX KzCUBBppWoHYrd2rtde5Bcm6gYEXJIJUS59JsMKp73nXH/U6/QnE4MBwrHcdGMYOIGbt O3d3NnoeUqEr6QLO2VdIJcKcfh6XNCpRttrlcMhkg7qbMyOIADqE8Pq5FytpZh0C8XmQ q1ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lJCpkpKJAOzmEF6SnO42lnNpQm4fuVDty21DKiTpo+A=; b=e/v+thlhZ34k50JytOHBeXEy0rfbyVjM/K4BFVc1in5hkmnmKmFo3mDd5tBYwEifA+ bpV5PjQ8qpAGB1GGQawIp/Yfrv91tt1ZykYQep1vKXPtSmkrwH1xXr1v0OvA8j6TaGbU je9bdaCGXkEUpQebh7DvqLM9R0ctnst4qyFw3eY4D/OwJVeOgf2hed8ES5dqSsYFTRfw KssbJLdq+teVelA+icfywmSyglEh/jrWNLlqzHPjCDo3oik5xQpLXNCU/eXFY+YiGYT5 y7KwlwJNW6EHxNdI9adXHlPPYLOrUY6b3aTbp/8xg4IX3rE2ymW+GZHwj5peoN/t0m7x uNSg== X-Gm-Message-State: APjAAAW4c3sQ8cXLUZBe0gEqGUetRY/abHDx/PK+UlQnj256kfGn1GCi DVx/A3FB+wjfbga4mG9SrQMYcVKo3+LRZjljvg== X-Google-Smtp-Source: APXvYqwStNUlcvY/X5e81PhaMs4KaT9CcJBIESpmjlHDr/29xWw2C1VB2D7Z8tDwqDfjjDrvFyi6izwTcSfK8bmMTQM= X-Received: by 2002:adf:f64b:: with SMTP id x11mr11351378wrp.355.1581800744271; Sat, 15 Feb 2020 13:05:44 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244957 Archived-At: --00000000000077c451059ea3afe6 Content-Type: text/plain; charset="UTF-8" Sorry to bother again, but now I run into a different problem with this. I set `gnutls-algorithm-priority' to "NORMAL:-VERS-TLS1.3" as suggested in that bugreport. This does work fine locally. However, when I use the same code on Travis CI for automated testing, I get the following error: gnutls.c: [1] (Emacs) connecting to host: stable.melpa.org gnutls.c: [1] (Emacs) allocating credentials gnutls.c: [2] (Emacs) allocating x509 credentials gnutls.c: [2] (Emacs) using default verification flags gnutls.c: [1] (Emacs) setting the trustfile: /etc/ssl/certs/ca-certificates.crt gnutls.c: [1] (Emacs) gnutls callbacks gnutls.c: [1] (Emacs) gnutls_init gnutls.c: [1] (Emacs) got non-default priority string: NORMAL:-VERS-TLS1.3 gnutls.c: [1] (Emacs) setting the priority string gnutls.c: [2] ASSERT: gnutls_priority.c:832 gnutls.el: (err=[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1.3 :hostname stable.melpa.org :loglevel 2 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) Package refresh done Debugger entered--Lisp error: (gnutls-error #> -50) signal(gnutls-error (#> -50)) Travis CI (Ubuntu distribution Trusty) has an ancient GnuTLS version 2.12.6. As far as I understand, it doesn't know about TLS1.3 and therefore the attempt to disable it fails. Is there a way to use "NORMAL:-VERS-TLS1.3" in "do not fail" mode? Maybe I could somehow query if the library knows about 1.3 first? Paul On Sat, 25 Jan 2020 at 16:33, Noam Postavsky wrote: > On Sat, 25 Jan 2020 at 09:55, Paul Pogonyshev > wrote: > > > > (file-error "https://elpa.gnu.org/packages/archive-contents" "Bad > Request") > > > > for me. Also fails if I replace "https" with "http" in the command, > > though with a different error. > > The https failure is Bug#36749, though I'm surprised to hear that it > fails with plain http as well. > > > * The command with different Emacs version: 24.5, 26.3 and 28.0.50 > > (trunk). > > Is your 24.5 Emacs linked against an older version of libgnutls? > Otherwise I would expect it to have the same problem. > --00000000000077c451059ea3afe6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry to bother again, but now I run into a different prob= lem with this. I set `gnutls-algorithm-priority' to "NORMAL:-VERS-= TLS1.3" as suggested in that bugreport. This does work fine locally. H= owever, when I use the same code on Travis CI for automated testing, I get = the following error:

=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (= Emacs) connecting to host: stable.melpa= .org
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (Emacs) allocating credential= s
=C2=A0 =C2=A0 =C2=A0gnutls.c: [2] (Emacs) allocating x509 credentials<= br>=C2=A0 =C2=A0 =C2=A0gnutls.c: [2] (Emacs) using default verification fla= gs
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (Emacs) setting the trustfile: =C2= =A0/etc/ssl/certs/ca-certificates.crt
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] = (Emacs) gnutls callbacks
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (Emacs) gnutl= s_init
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (Emacs) got non-default priorit= y string: NORMAL:-VERS-TLS1.3
=C2=A0 =C2=A0 =C2=A0gnutls.c: [1] (Emacs) = setting the priority string
=C2=A0 =C2=A0 =C2=A0gnutls.c: [2] ASSERT: gn= utls_priority.c:832
=C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0gnutls.e= l: (err=3D[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1= .3 :hostname stable.melpa.org :logl= evel 2 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt)= :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks = nil)
=C2=A0 =C2=A0 =C2=A0Package refresh done
=C2=A0 =C2=A0 =C2=A0Deb= ugger entered--Lisp error: (gnutls-error #<process stable.melpa.org<1>> -50)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0signal(gnutls-error (#<process stable.melpa.org<1>> -50))

T= ravis CI (Ubuntu distribution Trusty) has an ancient GnuTLS version 2.12.6.= As far as I understand, it doesn't know about TLS1.3 and therefore the= attempt to disable it fails.

Is there a way to us= e "NORMAL:-VERS-TLS1.3" in "do not fail" mode? Maybe I = could somehow query if the library knows about 1.3 first?

Paul

On Sat, 25 Jan 2020 at 16:33, Noam Postavsky <npostavs@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 25 Jan 2020 at 09:= 55, Paul Pogonyshev <pogonyshev@gmail.com> wrote:
>
>=C2=A0 =C2=A0 =C2=A0(file-error "https://elpa= .gnu.org/packages/archive-contents" "Bad Request")
>
> for me.=C2=A0 Also fails if I replace "https" with "htt= p" in the command,
> though with a different error.

The https failure is Bug#36749, though I'm surprised to hear that it fails with plain http as well.

> * The command with different Emacs version: 24.5, 26.3 and 28.0.50
>=C2=A0 =C2=A0(trunk).

Is your 24.5 Emacs linked against an older version of libgnutls?
Otherwise I would expect it to have the same problem.
--00000000000077c451059ea3afe6--