From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gLh4NTDHTmMN4AAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 17:33:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CPWMNDDHTmNQCQEAG6o9tA (envelope-from ) for ; Tue, 18 Oct 2022 17:33:04 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77C908EAB for ; Tue, 18 Oct 2022 17:33:04 +0200 (CEST) Received: from localhost ([::1]:42276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okoaS-0002an-Ig for larch@yhetil.org; Tue, 18 Oct 2022 11:33:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okoZX-0002XX-CG for bug-guix@gnu.org; Tue, 18 Oct 2022 11:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okoZW-0000T1-Ha for bug-guix@gnu.org; Tue, 18 Oct 2022 11:32:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okoZW-000841-0B for bug-guix@gnu.org; Tue, 18 Oct 2022 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58290: guile ssh error on guix deploy Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Oct 2022 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58290 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Cc: 58290@debbugs.gnu.org, Andrew Tropin Received: via spool by 58290-submit@debbugs.gnu.org id=B58290.166610711930987 (code B ref 58290); Tue, 18 Oct 2022 15:32:01 +0000 Received: (at 58290) by debbugs.gnu.org; 18 Oct 2022 15:31:59 +0000 Received: from localhost ([127.0.0.1]:53803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okoZP-00083f-VZ for submit@debbugs.gnu.org; Tue, 18 Oct 2022 11:31:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okoZO-00083T-FC for 58290@debbugs.gnu.org; Tue, 18 Oct 2022 11:31:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okoZI-0000K2-QV; Tue, 18 Oct 2022 11:31:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=TtWPOrX2Qx0d3Axf2j8p0aOX5SVhQQUOloNT5KF6WQk=; b=cT1CHBdeSyvzE8wo5bxt Oc1BAmkMXxyGeAAf5XGfGjcW8HfEOy2BGazMxcJnuhTULJlAkkGzHPBTI9QHa26HqgeSWvNDOUvvc uU5OrtFrkU0GbNOo7AgaolEZ2tkkxls2kjDVaabYcuu6hWOgxi8G20zcMO+4tNa03D+NqN5vUsjdq 81IG2PBdAHJe1fgACWnXI9jaZYv8w87Kn3znxpWblS6ayxsOkFlaRtu4nY+svJ0Ov5vlIgdYKjqKk WFcON/xQhCSwAKYFGogg5e76TZcXG7xBlS+Wbj3zoAVSWp6HY/uIo0YxOb59hlKgaSZhWekiEvGtC 084OitxccbzLfw==; Received: from [193.50.110.209] (port=37976 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okoZF-00047c-Ai; Tue, 18 Oct 2022 11:31:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sfk34zhj.fsf@trop.in> <87bkqm8p5z.fsf@gnu.org> <87o7uec39j.fsf@trop.in> <8735bmsee9.fsf@gnu.org> <87h702uzrb.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 =?UTF-8?Q?Vend=C3=A9miaire?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Piment X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 18 Oct 2022 17:31:42 +0200 In-Reply-To: <87h702uzrb.fsf@gnu.org> (Marius Bakke's message of "Mon, 17 Oct 2022 19:27:20 +0200") Message-ID: <87y1tdkv1d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666107184; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TtWPOrX2Qx0d3Axf2j8p0aOX5SVhQQUOloNT5KF6WQk=; b=W55ISpLmHHUejmUU27j4B3pF7+A1jG7a8RGKslaDF4A9OEjHLkDUsb8e/aEll6pRkG0lMx i61S2OMIPWx02zXPahBeNaCaRZyjCtKjvfrgSza+QEhgPWcWT4zjOtsSanakwvFtPc6NE7 NI91ojHU05/6V3WZZ5x1R0qT1ZgBpQ9lt0m96zbS46RJkFf+nVKUxPvoxCrPIdCgfBqf7i HWEsqs67dVl7oYCu1qSOyz2XgCZ/LvPaDqYOro4bZglSVDCAYKb4HocONkcuHPEOIUa1nO s7jnAnsAIPtm0Jc2/OGHZT7z6ltjPc/3zsTH3CZ5k+2dJR/4HX0n6QqtHZtd+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666107184; a=rsa-sha256; cv=none; b=NKRMYM2yje4UXJPZBO3/9W19lPdGBKtNTccF2Bx2iyj9Z3wwLBq2rt8Qs4ISh0vhOXLNOu Y7KGuEqUQapqzA9vUFpr0LIjmcgl124f3rThhR5G5FUKyBd9SAP7D9ONwVS5uVhWSJKhPB Voi+Rqyvz/B573bb7aDwm3itY2FEdwbNG76HDp3hGG1rc98GypW5uc+12Ixb/Z4+LASLVI VTbnYdPTojZozNKirWqws7l8UxrWVjgi8F7WXdorggjMRsudzwcdVqZPThUXg9UhQ0b/gM 7VQZlgxMl1uYumL0MSHJkUTCQfbc2m2eXNGQEkGkXJ731b7rydrYlpnlLp40Ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cT1CHBde; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cT1CHBde; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 77C908EAB X-Spam-Score: -4.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: Uk3t+KsRd6Kl Hi, Marius Bakke skribis: > I have the same problem. Log messages around failure look something > like this (extracted from above message): > > Oct 4 11:51:49 localhost shepherd[1]: Service sshd-2 has been started.= =20 > Oct 4 11:51:50 localhost sshd[250]: Accepted publickey for bob from 18= 5.70.53.164 port 1915 ssh2: RSA SHA256:/X3jyhyMizAOKOjCfXK5cLN3Pa0vmi7dbQG+= fxK3d3Y > Oct 4 11:52:28 localhost sshd[252]: error: no more sessions > Oct 4 11:52:28 localhost shepherd[1]: 1 connection still in use after = sshd-2 termination.=20 > Oct 4 11:52:28 localhost shepherd[1]: Service sshd-2 has been disabled= .=20 > > Then deploy crashes with 'Channel opening failure'. =E2=80=9Cno more sessions=E2=80=9D comes from this: --8<---------------cut here---------------start------------->8--- int session_open(Authctxt *authctxt, int chanid) { Session *s =3D session_new(); debug("session_open: channel %d", chanid); if (s =3D=3D NULL) { error("no more sessions"); return 0; } [...] } --8<---------------cut here---------------end--------------->8--- Would be interesting to run sshd in verbose/debug mode and see why we hit that; it could be because the maximum number of sessions has been reached or something. > Due to the number of SSH connections made by deploy and frequent > occurence of this problem, I was not able to successfully deploy through > many attempts. Ouch. Normally, thanks to memoization, =E2=80=98guix deploy=E2=80=99 opens= only one session per machine. (I think it works well with the 25 local build machines behind berlin; it=E2=80=99s also fine for a small set of machines I take care of at work.) > I found that removing the memoizing open-machine-ssh-session* in > (gnu machine ssh) works around it and can happily deploy again. > > (that is, just use 'open-machine-ssh-session' instead) Interesting. That gives us a hint. Could you add a =E2=80=98pk=E2=80=99 in =E2=80=98open-machine-ssh-session*=E2=80=99 to see how many connections it = opens? Thanks for your feedback! Ludo=E2=80=99.