From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4OLtEr0a0mKofwEAbAwnHQ (envelope-from ) for ; Sat, 16 Jul 2022 03:56:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yK6jEr0a0mI+kgAAauVa8A (envelope-from ) for ; Sat, 16 Jul 2022 03:56:13 +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 0EF0028DBD for ; Sat, 16 Jul 2022 03:56:13 +0200 (CEST) Received: from localhost ([::1]:48074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCX2S-0006K4-4c for larch@yhetil.org; Fri, 15 Jul 2022 21:56:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCX2I-0006IV-Id for bug-guix@gnu.org; Fri, 15 Jul 2022 21:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCX2H-00044H-St for bug-guix@gnu.org; Fri, 15 Jul 2022 21:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCX2H-0002r8-NI for bug-guix@gnu.org; Fri, 15 Jul 2022 21:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55936: dockerd fails to start on boot Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 16 Jul 2022 01:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55936 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Oleg Pykhalov , 55936@debbugs.gnu.org Received: via spool by 55936-submit@debbugs.gnu.org id=B55936.165793651810920 (code B ref 55936); Sat, 16 Jul 2022 01:56:01 +0000 Received: (at 55936) by debbugs.gnu.org; 16 Jul 2022 01:55:18 +0000 Received: from localhost ([127.0.0.1]:42549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCX1a-0002q3-3d for submit@debbugs.gnu.org; Fri, 15 Jul 2022 21:55:18 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:46701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCX1X-0002pl-Q3 for 55936@debbugs.gnu.org; Fri, 15 Jul 2022 21:55:16 -0400 Received: by mail-qt1-f179.google.com with SMTP id cf13so5035130qtb.13 for <55936@debbugs.gnu.org>; Fri, 15 Jul 2022 18:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=rSX7sUrdbEFAT+HfJzAB1UkpjHWks2avVaMWqeCQf90=; b=aC9s402iqJ0KtJAeQKM0fNvlQ5OmVssHfhFflA4tTZmbYUQ3fcuNfrMOX+aCeh8lol ysNfbA6v05gPibt1uLRR0DcjpRZVspI/LsrGjZD4uL4NCy5lrwgmxviuYbOPGMiWIxaS ufudQ8+dx/1V4WDKHCYfPuTLf+SNu53oisMkB4mprUuGOAdjit+lMZjFlR16fM8Sa+/Q Nitn2V5hJv0TTZuU6HhuA5GH06kBxEpkatEyJV1yBfWGu09n3oScikMmDt94zT/xrCi7 GaRvB0qv1OC9/CHI7tHghrtcn73TyPVGGo27nD9DKE/cG/xqM+m3GaR/tXU49nXUsnRq s9eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=rSX7sUrdbEFAT+HfJzAB1UkpjHWks2avVaMWqeCQf90=; b=YC2MdKqCMZof3YzvCG90rELaDjCXUYLwdDLI4HVGbuV+UODHLk5nEF0KKZXD3jgzUI Y/TJMVxb473BK/jhN4Pq87zc96RuVsx7vInwqv0Bn0bCRAxa7mDoy6rPfYqfcCgml6h1 E9CC/5fMLOhGhJCOCEqPUeASr0MynjJzLnu0TB/PtuYNrgNDKnqiUiBQezadS9qYWgTf FHgKAkubY3Ff0ObeuQzGU6IFbdeUgp/5TTUYcfIE4jP2n1jZBZ5SErBLqkHlnIoB+lVl RggieoBvVFMJ2F0gZfsqjy6JITe9qFANnWc24/Tgi3KmM9wjRe2a7wnE+usYuO48mhDF XlhQ== X-Gm-Message-State: AJIora9CZEFFG8qhQPndKsaWMkXq8WqpVkFl2G6Mk4P+DllC6BUNFcwE SpPdWF796mtS00NovAt1415QZTcTNhB/bRXz X-Google-Smtp-Source: AGRyM1vOg0Oom31+g7QcozvJsyQIy6MPiSabkQVqHtj/xO40zTiHuiJzr45eHMWmkofvQSwow1nZhA== X-Received: by 2002:a05:622a:15c4:b0:31e:d3ad:e847 with SMTP id d4-20020a05622a15c400b0031ed3ade847mr7900727qty.109.1657936510099; Fri, 15 Jul 2022 18:55:10 -0700 (PDT) Received: from hurd (dsl-205-233-125-176.b2b2c.ca. [205.233.125.176]) by smtp.gmail.com with ESMTPSA id u5-20020a05620a430500b006b5bf5d45casm5901852qko.27.2022.07.15.18.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 18:55:09 -0700 (PDT) From: Maxim Cournoyer References: <20220702104106.16997-1-go.wigust@gmail.com> <878rp1ft82.fsf@gmail.com> <87wncgyb67.fsf_-_@gmail.com> <87k08e8yo1.fsf@gnu.org> Date: Fri, 15 Jul 2022 21:55:08 -0400 In-Reply-To: <87k08e8yo1.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 15 Jul 2022 12:20:46 +0200") Message-ID: <87pmi5stxf.fsf@gmail.com> 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657936573; 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=rSX7sUrdbEFAT+HfJzAB1UkpjHWks2avVaMWqeCQf90=; b=Li/5u6AJPXmEvaKCU++ToZ5cOKEo5G2wONf6AvA+HRfUpJrJtngCOy0K/qT8AqCIf7FY62 CtMFVr8dRy7k/sBl42Cl8Uk0T/mcOah6DDXJKw4S/McNhZ7vY2xDHRY507RZ2bmBOeqrvg QhNrCLGg0Q66NJtNJnAdDEhsRvWANDw8QFzGvw97Xd66LzzA8agDPKKsBEcjsRFe11GmJa o9bOHR6sZ21gElfLZB+u8DHWfij1gUwCACokgbxSj+lERsAffpCi3xoONKvu0CDSGCTfIH FV+dqCbac0cRtITm5bFC39zmGSCR5O82MyJUT1K5WaLlkunlGjWmgfL48UHiiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657936573; a=rsa-sha256; cv=none; b=fp9ADTn+aAuPOoNVTkm7DnyKx7aqJBRMypLzK1gD8IgKBeD3HZcrKQLtc+J8n/v+sekVAV IiFOi8gyXTaiBb6X6TMA0+lGqDk7jxW1My+i/I9xRCGlxfnClKby8Yms3r+ekPhNJW4bnl qcfSZDW+fHOBe/97mdRCr3dtZaL2PLmV8b0ydRkBjw/tUO2+i8WGqZQv0l0B4cm1Bwoo11 AWpGi4iSrVNy2NOS75kVSSKZljMFgZC8rK81eM1DKfrwNXj3oRmeMl9sV1CTxHxO9PI9yQ 8Ho1ygCGWAD0rB0//HswxV9B+3+Dd2vMV5dfrxvuyaXeS0VhbMSuKsn5piAQ3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aC9s402i; 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: 6.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aC9s402i; 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-Queue-Id: 0EF0028DBD X-Spam-Score: 6.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: nv/a9Nw45RAL Hi, Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> I've researched more on the topic, and it appears what I had on mind is >> rather systemd's socket *notification* (what they call 'sdNotify') >> rather than activation. Activation is just to lazy start things... it >> probably wouldn't help here, rather it seems it'd be a bad idea, as >> realized elsewhere [0]. >> >> [0] https://github.com/containerd/containerd/issues/164#issuecomment-65= 7536515 > > Currently the Shepherd implements activation as lazy start, but we > should add an option for =E2=80=9Ceager socket activation=E2=80=9D where = the daemon is > started right away. > > Such activation is still useful as a synchronization mechanism: you can > tell the service is ready to serve requests as soon as the socket has > been created. But this relies on the application behaving that way (e.g., waiting for the socket to be opened, rather than expecting things to be ready and failing), right? If I understand correctly, the sdNotify mechanism in systemd is a means that let the application notify systemd when it is ready, so that systemd itself can ensure the ordering relationships. So on systemd containerd would be marked as 'starting' by systemd until it notifies it that it's good via sdNotify, and docker.service would be waiting on it until after containerd has started since it is ordered to start after it [0] [0] https://github.com/moby/moby/blob/master/contrib/init/systemd/docker.s= ervice#L4 Thanks, Maxim