Subject: bug#42902: texlive substitute TLS error: decoding the received packet

From: Thiago Jung Bauermann <[email-masked]>
Date: Thu, 13 Jan 2022 16:03:36 -0300

Hello,

I’m sending this email to two bugs because they are both about the same
problem. Bug 48903 (which is currently closed) has fairly intense attempts
at debugging what is going on, but unfortunately without arriving at an
answer.

This problem is also affecting Cuirass builds. This powerpc64le-linux build:

https://ci.guix.gnu.org/build/70/details

failed because of the intermitent TLS error:

--8<---------------cut here---------------start------------->8---
guix substitute: error: TLS error in procedure 'read_from_session_record_port': Error decoding the received TLS packet.
fetching path `/gnu/store/fkkfffvwrj103zs5cf6d8bf9as46ywhc-python-minimal-3.5.9' (empty status: '')
@ substituter-failed /gnu/store/fkkfffvwrj103zs5cf6d8bf9as46ywhc-python-minimal-3.5.9  fetching path `/gnu/store/fkkfffvwrj103zs5cf6d8bf9as46ywhc-python-minimal-3.5.9' (empty status: '')
--8<---------------cut here---------------end--------------->8---

The daemon in this case is:

/gnu/store/ny30pxjzv866m3w0v1vfbzdbqi17k8wn-guix-daemon-1.3.0-21.e427593/bin/guix-daemon

From this Guix version

--8<---------------cut here---------------start------------->8---
guixp9: sudo -i guix describe
Generation 11   Jan 11 2022 02:07:42    (current)
  guix 83abdc8
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 83abdc8371d90b6d4591a69fae5585a2a99c1627
--8<---------------cut here---------------end--------------->8---

Not sure if this is related, but during that build Guix noticed that the substitute server is slow:

--8<---------------cut here---------------start------------->8---
Downloading https://ci.guix.gnu.org/nar/lzip/fkkfffvwrj103zs5cf6d8bf9as46ywhc-python-minimal-3.5.9...
guix substitute: warning: while fetching https://ci.guix.gnu.org/nar/lzip/fkkfffvwrj103zs5cf6d8bf9as46ywhc-python-minimal-3.5.9: server is somewhat slow
guix substitute: warning: try `--no-substitutes' if the problem persists
--8<---------------cut here---------------end--------------->8---

There’s bug 46942 which is specifically about ci.guix.gnu.org being slow,
and the bug reporter there also hits this same TLS error, so there’s
probably at least some correlation between this problem and the network
being slow.

-- 
Thanks,
Thiago