After a recent update I am getting the following error on doom refresh
Contacting host: elpa.gnu.org:443
gnutls.el: (err=[-50] The request is invalid.) boot: (:priority NORMAL:-VERS-TLS1.3 :hostname elpa.gnu.org :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/pki/tls/certs/ca-bundle.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error t :callbacks nil)
Trying again (gnutls-error elpa.gnu.org -50)
when trying to install the new doom-snippets package.
I am also getting the following error on doom compile :core:
Cannot load all-the-icons: (user-error "all-the-icons-icon-for-file is already memoized")
and many Unused lexical variable/argument warnings.
Apologies if this is caused by a mistake that I made while updating. But I am not sure how to trace it.
Something similar was happening to me because my local gnutls-utils didn't support TLS1.3. I could fix it by setting gnutls algorithm priority to TLS-1.2: (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.2").
I'm getting the same issue as well.
@jdnavarro where are you supposed to put that code snip for it to work? init.el?
@Oreodave I've simply did a git grep for gnutls and replaced 1.3 with 1.2. It was there at a couple of places. I'm sure you can do so in the config.el as well.
@jdnavarro Thanks for the tip.
Just to chime in. I am running Ubuntu 18.04 LTS and it does not support TLS1.3. You will get the above error when trying to quickstart/refresh your doom packages.
I changes the 2 mentions of TLS1.3 in the elisp files and it is working OK now. I would think we should look at capabilities of the installed system before setting a specific TLS version. I would think LTS systems will have issues with TLS1.3 as a default. A mention of this in Doctor might be very useful as well.
I've just published the straight branch, which replaces our current package manager (package.el + quelpa) with straight.el. This should address this issue. If you're feeling adventurous, I talk about what to expect going into it in another thread.
Tested the straight branch on Ubuntu 18.04 LTS, it works correctly for a standard install (doom install and doom refresh).
Now that straight is on develop, I'll consider this resolved. Thanks for bringing this to my attention!
I get this warning (gnutls.el: (err=[-50] The request is invalid) and I'm unable to fix it. Can I get a bit help?
I'm on Ubuntu 18.04 and I've installed emacs26 from ppa:kelleyk/emacs
@igorlakic Please open a new issue for that; don't forget to include your M-x doom/info.
It's likely that https://github.com/hlissner/doom-emacs/pull/2763 may be causing your issues, but you shouldn't be using package.el to begin with, so more investigation is needed.
@hlissner Thanks for fast reply! Ok, I'm going to open a new issue (I thought it's related to this issue so I didn't want to make duplicates).
Most helpful comment
Something similar was happening to me because my local
gnutls-utilsdidn't support TLS1.3. I could fix it by setting gnutls algorithm priority to TLS-1.2:(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.2").