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 SO3GIeV7+WMyDQEAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 04:09:25 +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 uOzKIeV7+WNPiQAA9RJhRA (envelope-from ) for ; Sat, 25 Feb 2023 04:09:25 +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 3700C15DA3 for ; Sat, 25 Feb 2023 04:09:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVkaW-0006OE-Ad; Fri, 24 Feb 2023 21:47:04 -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 1pVkaU-0006NU-Mh for bug-guix@gnu.org; Fri, 24 Feb 2023 21:47:02 -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 1pVkaU-0002nS-EG for bug-guix@gnu.org; Fri, 24 Feb 2023 21:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVkaU-0007SW-Am for bug-guix@gnu.org; Fri, 24 Feb 2023 21:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61646: Bandwidth-induced offload timeout abort whole operating Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 Feb 2023 02:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61646 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 61646@debbugs.gnu.org Received: via spool by 61646-submit@debbugs.gnu.org id=B61646.167729319828608 (code B ref 61646); Sat, 25 Feb 2023 02:47:02 +0000 Received: (at 61646) by debbugs.gnu.org; 25 Feb 2023 02:46:38 +0000 Received: from localhost ([127.0.0.1]:38701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVka5-0007RK-SA for submit@debbugs.gnu.org; Fri, 24 Feb 2023 21:46:38 -0500 Received: from mail-qv1-f46.google.com ([209.85.219.46]:45818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVka4-0007R6-JF for 61646@debbugs.gnu.org; Fri, 24 Feb 2023 21:46:37 -0500 Received: by mail-qv1-f46.google.com with SMTP id bo10so773742qvb.12 for <61646@debbugs.gnu.org>; Fri, 24 Feb 2023 18:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=JFXcMVu5tyhw9PPCJYODl0Ww+WgeqiekixYly1mB2Kk=; b=F/AFcPLPen6pP+v1e6YQLFShyl8wMy7IBCv0ho8g2VyO5kKB5EPNmYxDWWHLrbZegD lCOtFFWyRdBhdF2qtLVhxgP37YnuGyVKIdNzPx1UbDAnYxmwjw1nNdDphMS7Zs3m4gJQ bCc5o0VV2pZfMLV8Jt4rIMTjx9k8epz4aABxVKGodcpsETBha/nURtSMZ5yHK4BrZcHo sjcb0vNceaGHwWUXX79AGT+aAWETpUEl2CcMF85xW6uRqQ/8j9QjhfZ/gdXCTPVQ+HlM U4vngeP0lQ2EMGh6Pd9CsYS9g1fRnr9xlsB158CyFzQpNbF83RPz4fY8VhP1Cx5muArX qn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JFXcMVu5tyhw9PPCJYODl0Ww+WgeqiekixYly1mB2Kk=; b=Dnp8MpSVnGiJVDZfNw5CHA+J3H7QlwO5qnESN2aWA7Q5bLR7/PYt33JFeQfYsAKiyA gzBccaKzYP7/bPJ+WlwObz4f7P2CfdTfuxM4+k8yKCBPDA3SvW/+EqvaCXKQN40FgkrY Rv+muAiuBzeHyka6YH6+5LDlFVLA4kN32dT94Aaj8n7CMglhoxHYYZAsUDjB10G0551A AX4aafBbzwgQasHt6l9toOACY5wR3PjfiV5WaLQ4m0s8mFMnTqZl+wjfxVyzVQPssXGX ciBHqMDKFWj5vH5anYe0DRJbmTq5y+wGgbNbZGBa+a4+GFe99LFm6JYS96WxT4Dg2rUR bCrg== X-Gm-Message-State: AO0yUKWmRPbt9xt+biNYEdBXMGNYu26oWPl0+U1bLiJaXctYeswXZp1H P8hXY6JfPGzCW98Kpmh8x+V11ehOZ/NoBQ== X-Google-Smtp-Source: AK7set/MOWnOIMKxPbfbrqmrOgabCUriNZXP+ihsOSkn+QEOHFh5+1w7Uvh9ejUecEUYrvhB9OT5kw== X-Received: by 2002:a05:6214:400a:b0:56e:f3b3:989e with SMTP id kd10-20020a056214400a00b0056ef3b3989emr31493054qvb.26.1677293190779; Fri, 24 Feb 2023 18:46:30 -0800 (PST) Received: from hurd (dsl-141-27.b2b2c.ca. [66.158.141.27]) by smtp.gmail.com with ESMTPSA id r135-20020a37448d000000b00706bc44fda8sm474472qka.79.2023.02.24.18.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 18:46:30 -0800 (PST) From: Maxim Cournoyer References: <87ilfxm2wf.fsf@gmail.com> <87wn483to1.fsf@gnu.org> Date: Fri, 24 Feb 2023 21:46:29 -0500 In-Reply-To: <87wn483to1.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 23 Feb 2023 23:26:22 +0100") Message-ID: <87356uh37e.fsf@gmail.com> 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677294565; 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=JFXcMVu5tyhw9PPCJYODl0Ww+WgeqiekixYly1mB2Kk=; b=uVpah+Vtm1KPKF1D9Nq0Ybeg+/oGEGz69GplXuvAWRnX1XE92DID7+zmXlZ8WcyQwVq5jC EU2wJ7pGAAffbOOa4pSwJfXv0vNvgKvKueJzS/ehvnGHadv+wRaxj3V3dmor/1wvL9eZ/J zK6zTQEBhwWeY2osIif15KEYlZr5J2oTEYFNCkoPL0UTTCr7Y9MJCZpU9mUaP9kLne/LOR r9d+C9s7XWDHGpB0UNixu6J42VrTetZtcOvY4HThOU4ikYgOTzj7bRFWe17WTkzk1kKDoB xoFBsE46Nahe5IC8dR5mHTH49cI80PdNaX8dAONYvFD1oTYGvKqM9XcbIKfXow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="F/AFcPLP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677294565; a=rsa-sha256; cv=none; b=qgzZEGppLGeCy/cP+MwY/H5bG5kEMNroLJuffiDQjqEyjQ6UFRv91wyOULroL2pQwtTJvO kTs9l6n/cyc9xgY5rzlVVL58kg3A49phfPvh/hwnVp3SkdyhugKh1R5Qj6kfGcvH7Oqyjr w2DkArM/Nm/0g81vAkLxpjwhRwixsn6ufRz9LhfOiHLV8M2vtYZoDQAV434wlD1Yg2ZreD lEnSA+eRbMfbjbweZMc1SmaP3iCskZmC5X1mB0D2hCO2BHWJOoN3Y58qCP05o1In+ZWHGL JWjKLd3AHUPi+AJafulM4VG/dd6HkM6DjTKOdKmj+5Gy/7j3nkyklS0UIfaxVw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="F/AFcPLP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -0.58 X-Spam-Score: -0.58 X-Migadu-Queue-Id: 3700C15DA3 X-Migadu-Scanner: scn1.migadu.com X-TUID: UcEZM4jEPWC7 Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> I can reproduce this rather easily on my system: >> >> $ ./pre-inst-env guix build icedove >> The following derivations will be built: >> /gnu/store/l6r93asndd0kwv7024iyrl71zd0lbpbq-icedove-102.7.2.drv >> /gnu/store/8zi808086b3vlfjrhdm87fgljziwdqx2-icedove-l10n-102.7.2.drv >> /gnu/store/v0sq7rb8fk36kjasb27a71z1a27wxb1s-icedove-minimal-102.7.2.drv >> process 19542 acquired build slot '/var/guix/offload/localhost:6666/0' >> normalized load on machine 'localhost' is 0.08 >> building /gnu/store/8zi808086b3vlfjrhdm87fgljziwdqx2-icedove-l10n-102.7.= 2.drv... >> process 19548 acquired build slot '/var/guix/offload/localhost:6666/1' >> normalized load on machine 'localhost' is 0.08 >> building /gnu/store/v0sq7rb8fk36kjasb27a71z1a27wxb1s-icedove-minimal-102= .7.2.drv... >> guix offload: sending 1 store item (558 MiB) to 'localhost'... >> exporting path `/gnu/store/bwb5hcdyzgq16kmbsva7ax0zq6lzg78z-icedove-102.= 7.2.tar.xz' >> guix offload: error: failed to connect to 'localhost': Timeout connectin= g to localhost >> cannot build derivation >> `/gnu/store/l6r93asndd0kwv7024iyrl71zd0lbpbq-icedove-102.7.2.drv': 1 >> dependencies couldn't be built >> guix build: error: build of >> `/gnu/store/l6r93asndd0kwv7024iyrl71zd0lbpbq-icedove-102.7.2.drv' fail= ed >> >> The third derivation tries to get a build slot and times out, because >> the first two have already saturated the bandwidth of the link and it >> takes more time than expected to get a reply. > > Weird. Since the it=E2=80=99s a timeout while connecting, I suppose the = patch > below would improve the situation: > > diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm > index 578b3b9888..90cf97401c 100644 > --- a/guix/scripts/offload.scm > +++ b/guix/scripts/offload.scm > @@ -220,7 +220,7 @@ (define* (open-ssh-session machine #:optional max-sil= ent-time) > (session (make-session #:user (build-machine-user machine) > #:host (build-machine-name machine) > #:port (build-machine-port machine) > - #:timeout 10 ;initial timeout (seco= nds) > + #:timeout 30 ;initial timeout (seco= nds) > ;; #:log-verbosity 'protocol > #:identity (build-machine-private-key mac= hine) Hm, how can I test this again? I tried launching a daemon both on the remote and locally, with something like: sudo -E ./pre-inst-env ./guix-daemon --build-users-group guixbuild --max-silent-time 0 --timeout 0 --log-compression none --discover=3Dyes --substitute-urls "https://ci.guix.gnu.org https://bordeaux.guix.gnu.org" --max-jobs=3D20 and the code edited doesn't seem to run (I put an (error 'hello) in there and nothing happened). --=20 Thanks, Maxim