From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eOxdGiP5v2PANgAAbAwnHQ (envelope-from ) for ; Thu, 12 Jan 2023 13:12:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0I9xGiP5v2OMcwEA9RJhRA (envelope-from ) for ; Thu, 12 Jan 2023 13:12:19 +0100 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 2A45C3EF64 for ; Thu, 12 Jan 2023 13:12:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFwRD-0004Dp-LO; Thu, 12 Jan 2023 07:12:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFwRA-0004DR-4J for bug-guix@gnu.org; Thu, 12 Jan 2023 07:12:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFwR8-0005m5-Kj for bug-guix@gnu.org; Thu, 12 Jan 2023 07:12:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFwR8-0005Az-Gr for bug-guix@gnu.org; Thu, 12 Jan 2023 07:12:02 -0500 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: Thu, 12 Jan 2023 12:12:02 +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: "Artyom V. Poptsov" , 58290@debbugs.gnu.org, Andrew Tropin Received: via spool by 58290-submit@debbugs.gnu.org id=B58290.167352549819866 (code B ref 58290); Thu, 12 Jan 2023 12:12:02 +0000 Received: (at 58290) by debbugs.gnu.org; 12 Jan 2023 12:11:38 +0000 Received: from localhost ([127.0.0.1]:44911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFwQj-0005AL-GX for submit@debbugs.gnu.org; Thu, 12 Jan 2023 07:11:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFwQf-0005A7-UC for 58290@debbugs.gnu.org; Thu, 12 Jan 2023 07:11:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFwQa-0005X1-0f; Thu, 12 Jan 2023 07:11:28 -0500 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=+JB/40Dw4tJ7j69KWGMA4qoIJEbtB3r/LvlzM+C57xY=; b=UPcB5UpqPyCEdZtjwAqA qyn0MH5bapKC7fopEnBEFyL03rDl9v2D2kUrDgG0xO1VjTqIRG1e/0W7TlY3Q6YmOL30o3Dj3vWn3 hiIBwTJLKXfF7p93pc68CtIbFjuo9UKg/o33SZl4K6+QQJFTNY9Pd2uUh5PLpNbpLdBF8JMBv8UeA sXjNb6Q7mUH1kIkH4P7jxSbZsY9HgzCYHo2a/VlG2sbZPd3BM/hArSE2Mx2zStpiT0cuLAZvsH32n TpdalHuQeYsv4umDlQX8DF5CoL4AXLaFR8H5PMGnvGO1jQluT8xVQUDnr9JTJgI2wIK1UJHShFyJ2 SUosymFcIxNVzw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFwQZ-0004DR-AT; Thu, 12 Jan 2023 07:11:27 -0500 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> <87y1tdkv1d.fsf@gnu.org> <875yfv38jt.fsf@gnu.org> Date: Thu, 12 Jan 2023 13:11:24 +0100 In-Reply-To: <875yfv38jt.fsf@gnu.org> (Marius Bakke's message of "Fri, 04 Nov 2022 00:47:02 +0100") Message-ID: <87v8lcgdg3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673525539; a=rsa-sha256; cv=none; b=r4q8x3JwVPmzv7WzZsLjhZeELCfQkonheawCj5gYq5VNjNux6qHBr2ZH2ALZQwPOvsJWme swUhYjlbe/w1CXes34nfIwO5SLCGzS6jEjZ77JhNoNtWsF1RbgFXu39AKZTVRTm9I1L1GC X0WlGL71NoQEW9kSfVQ1CExf0b7p5fGyBH03iac/ZATLwtO+s0Q56oyAukGYpmXrbGe59S +8Q+Alv6rtiz9CL8tWWEDz2/5YpfB/azhIFrdtiKiKF8q0158dHod4VtcLanxTtCLyNpxv /vS84bMmS5UYj2SylruOWfM2rnvFXzCCH2aSaSEfCeB0oH+yUMohhBsmYZQDKw== 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=UPcB5Upq; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673525539; 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=+JB/40Dw4tJ7j69KWGMA4qoIJEbtB3r/LvlzM+C57xY=; b=MTIRtyQHkCdnBOZY92bwiUNrDsU7Iqqnr/yODSimvBGYcdaWOMhhrb1K++62N2w8wVlZ32 uxpBsw5bbozDZVrQ724eFCA7T/fMtpRsBe3pV711FDKlTZCZ6tJRkhqcgAEb7jtrsXUKN6 ErKgmq8KT1URItLJKsUF/KZvppWK40XVkpZ8ESmWBY8y+a5pmqHnhJ4hnEIL7Q7bayOuUF Owk2P93q+AxlJNxJTFrZ7icsM0AiyjaQVQbAVSbM9vjpcwRWob8nGsRvQt0HEwHEoXpmv5 4cOBwXH4uyiY8z5Tdh2qVegZKDNvvXszlpRTSvonTsCvy3FDapf8VKEMq4vLDg== X-Migadu-Spam-Score: -2.50 X-Spam-Score: -2.50 X-Migadu-Queue-Id: 2A45C3EF64 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=UPcB5Upq; 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"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: O4Djf0ln0VhM Hi, Marius Bakke skribis: > Nov 3 21:50:28 capella sshd[26115]: debug1: server_input_channel_open: c= type session rchan 66 win 64000 max 32768 > Nov 3 21:50:28 capella sshd[26115]: debug1: input_session_request > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 10: new [server-sess= ion] > Nov 3 21:50:28 capella sshd[26115]: debug1: session_open: channel 10 > ["no more sessions" error occurs here, in a different log file] > Nov 3 21:50:28 capella sshd[26115]: debug1: session open failed, free ch= annel 10 > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 10: free: server-ses= sion, nchannels 11 > Nov 3 21:50:28 capella sshd[26115]: debug1: server_input_channel_open: f= ailure session > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 0: free: server-sess= ion, nchannels 10 > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 1: free: server-sess= ion, nchannels 9 > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 2: free: server-sess= ion, nchannels 8 > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 3: free: server-sess= ion, nchannels 7 > Nov 3 21:50:28 capella sshd[26115]: debug1: channel 4: free: server-sess= ion, nchannels 6 [...] > In my current tests the failure always occur at the > very end of deploy: > > building /gnu/store/19yajyzw4jhnkkz9w0l9gm4az0jxihkc-install-bootloader.s= cm.drv... > building /gnu/store/m7ngq5gszyswm6sficinz7ghpra30dl4-remote-exp.scm.drv... > ;;; [2022/11/03 21:50:28.892606, 0] [GSSH ERROR] Channel opening failure:= channel 66 error (2) open failed: # > > What's interesting is that all of the failed deploys fail to open > "channel 10", whereas successful deploys never reach it. All of these > are deploying the exact same configuration and commit, so the SSH > traffic should nearly identical. Here=E2=80=99s a reproducer: --8<---------------cut here---------------start------------->8--- (use-modules (guix ssh) (guix)) (define %local (open-connection)) (define %remote (connect-to-remote-daemon (open-ssh-session "HOST-OF-YOUR-CHOICE"))) (let loop ((i 0)) (pk 'loop i) (send-files %local '("/gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreuti= ls-8.32") %remote) (loop (+ 1 i))) --8<---------------cut here---------------end--------------->8--- It fails after 8 iterations. It looks like we=E2=80=99re leaking SSH chann= els or something. However, in GDB, we can see that =E2=80=98ssh_channel_close=E2=80=99 is ind= eed called after each iteration (via =E2=80=98ptob_close=E2=80=99 in Guile-SSH). Artyom, does that ring a bell? Thanks, Ludo=E2=80=99.