GNU logs - #53225, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Nathan Dehnel <ncdehnel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 13 Jan 2022 00:28:02 +0000
Resent-Message-ID: <handler.53225.B.164203367022840 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 53225 <at> debbugs.gnu.org
X-Debbugs-Original-To: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.164203367022840
          (code B ref -1); Thu, 13 Jan 2022 00:28:02 +0000
Received: (at submit) by debbugs.gnu.org; 13 Jan 2022 00:27:50 +0000
Received: from localhost ([127.0.0.1]:59457 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7ny1-0005wK-Ul
	for submit <at> debbugs.gnu.org; Wed, 12 Jan 2022 19:27:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:52540)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@HIDDEN>) id 1n7nxz-0005wB-GW
 for submit <at> debbugs.gnu.org; Wed, 12 Jan 2022 19:27:48 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60018)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ncdehnel@HIDDEN>)
 id 1n7nxz-0001Az-9c
 for bug-guix@HIDDEN; Wed, 12 Jan 2022 19:27:47 -0500
Received: from [2607:f8b0:4864:20::b36] (port=46697
 helo=mail-yb1-xb36.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ncdehnel@HIDDEN>)
 id 1n7nxp-00054h-BY
 for bug-guix@HIDDEN; Wed, 12 Jan 2022 19:27:38 -0500
Received: by mail-yb1-xb36.google.com with SMTP id p5so10280189ybd.13
 for <bug-guix@HIDDEN>; Wed, 12 Jan 2022 16:27:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:from:date:message-id:subject:to;
 bh=2iem4Uf5OAETtW6x8KWPyFT0Jwnirh35Ya5nEiMNm8E=;
 b=AvCg20Q7rvyu3TPForjpRB6xGBcijvc4R96q3D6gG3dCMwWB1oVSD1xY5deyjpGGsw
 439DakywQvtVVdUkpJnWf/dpwvPlb8cDBljdf2OLMcqW4SIexgLaq6xRoA3PsYPijtIj
 wY1I0XfTJ1j+81M4921kp07Js8x28ZmQ5aEjiyzQzhoj+fgfi73Yk2l4iAZFGt8+qcan
 VWvapqvcc4zxp4gVBHz1dgeirEKX62yX+NTCDQxxzFl8uNzlk3dUNylj/m+/sKpBwH3v
 LCozDr00bKV44GCH/mt6UbnTMNmFtE7oG46RkZYmHwBswoD8nVJh/Bx7KVMME5BatCXb
 M+wQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=2iem4Uf5OAETtW6x8KWPyFT0Jwnirh35Ya5nEiMNm8E=;
 b=oMV/tsTj+bRIGiPa5XnJdlMExPaKA+qWFLOtwYmJqsWVjBFRYuj2zu6LzhNBLQPWwZ
 OpEaJDls9GiFZgq3PelkkRIbD1KSCT0shgZohZn7FJ2WL+41s2xjmiw45EzCbvjfucFm
 IjxazaSqZqGBoCruXog+++ureJJhpc5wCngqaZngSaeyjIDy6vfFOY7Iw1iqZ3SvQwT1
 jHBKpBKayUaYAX2/Irpa9Yji9in5j2F5J8ckqPfaaT4Ve2z5KdDXaDPbhxPafdC+vxM3
 ArqFbX/gFHInnZwNBzR2pkhGChgCw9r7/ID1+ZYC8ilVp7B/ORgOKfITMq4OJx5tg+pF
 iNTg==
X-Gm-Message-State: AOAM530nDG5+ijNI+uWJO30qwqjolg8757bzEUq65cWA2mgIa4dmrC3l
 ggMJUmxwW3MF3Zu1ceR9gpULgvSViT4o7opTPhbtwC1BuN8=
X-Google-Smtp-Source: ABdhPJyBS0ztRm7xMCbsQar2a7LK0fgvYpQ33QlemuWyM2RQ/AFP9dP+onNvMfOlCa3ip/Bz0S24dA3MWNWkHIFicWQ=
X-Received: by 2002:a25:409:: with SMTP id 9mr3073187ybe.456.1642033655663;
 Wed, 12 Jan 2022 16:27:35 -0800 (PST)
MIME-Version: 1.0
From: Nathan Dehnel <ncdehnel@HIDDEN>
Date: Wed, 12 Jan 2022 18:27:24 -0600
Message-ID: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b36
 (failed)
Received-SPF: pass client-ip=2607:f8b0:4864:20::b36;
 envelope-from=ncdehnel@HIDDEN; helo=mail-yb1-xb36.google.com
X-Spam_score_int: 6
X-Spam_score: 0.6
X-Spam_bar: /
X-Spam_report: (0.6 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.1 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

When dns is specified, wireguard runs wg-quick, which runs resolvconf,
which runs /run/current-system/profile/bin/herd restart, which causes
shepherd to freeze because I guess it doesn't like being given
multiple start commands at once. I'm not sure how to fix it.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Nathan Dehnel <ncdehnel@HIDDEN>
Subject: bug#53225: Acknowledgement (shepherd freezes if wireguard is
 started with dns config enabled)
Message-ID: <handler.53225.B.164203367022840.ack <at> debbugs.gnu.org>
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
X-Gnu-PR-Message: ack 53225
X-Gnu-PR-Package: guix
Reply-To: 53225 <at> debbugs.gnu.org
Date: Thu, 13 Jan 2022 00:28:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 53225 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
53225: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53225
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 13 Jan 2022 15:12:02 +0000
Resent-Message-ID: <handler.53225.B53225.164208670517045 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Nathan Dehnel <ncdehnel@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.164208670517045
          (code B ref 53225); Thu, 13 Jan 2022 15:12:02 +0000
Received: (at 53225) by debbugs.gnu.org; 13 Jan 2022 15:11:45 +0000
Received: from localhost ([127.0.0.1]:34245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n81lR-0004Qr-Gj
	for submit <at> debbugs.gnu.org; Thu, 13 Jan 2022 10:11:45 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:59150)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1n81lQ-0004Qf-L3
 for 53225 <at> debbugs.gnu.org; Thu, 13 Jan 2022 10:11:45 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 2D38C2BF;
 Thu, 13 Jan 2022 16:11:38 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id DZkN1KKbRkNj; Thu, 13 Jan 2022 16:11:37 +0100 (CET)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 3A47C2A0;
 Thu, 13 Jan 2022 16:11:37 +0100 (CET)
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
Date: Thu, 13 Jan 2022 16:11:36 +0100
In-Reply-To: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 (Nathan Dehnel's message of "Wed, 12 Jan 2022 18:27:24 -0600")
Message-ID: <87pmov7jrr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spamd-Bar: /
Authentication-Results: hera.aquilenet.fr;
	none
X-Rspamd-Server: hera
X-Rspamd-Queue-Id: 2D38C2BF
X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[];
 RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];
 TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain];
 RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];
 MID_RHS_MATCH_FROM(0.00)[]
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

Nathan Dehnel <ncdehnel@HIDDEN> skribis:

> When dns is specified, wireguard runs wg-quick, which runs resolvconf,
> which runs /run/current-system/profile/bin/herd restart, which causes
> shepherd to freeze because I guess it doesn't like being given
> multiple start commands at once. I'm not sure how to fix it.

What do you mean by =E2=80=9Cfreezing=E2=80=9D?  Does =E2=80=98herd status=
=E2=80=99 and similar commands
block forever?  Or is it something else?

Requests in the Shepherd are currently handled sequentially.  So if you
issue several =E2=80=98herd restart=E2=80=99 commands, they=E2=80=99ll be p=
rocessed one at a
time.  This is usually okay because =E2=80=98start=E2=80=99 commands are ex=
pected to be
quick (just wait for the daemon to write its PID file or similar).

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Nathan Dehnel <ncdehnel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 13 Jan 2022 22:43:01 +0000
Resent-Message-ID: <handler.53225.B53225.164211372530300 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.164211372530300
          (code B ref 53225); Thu, 13 Jan 2022 22:43:01 +0000
Received: (at 53225) by debbugs.gnu.org; 13 Jan 2022 22:42:05 +0000
Received: from localhost ([127.0.0.1]:34828 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n88nE-0007se-PT
	for submit <at> debbugs.gnu.org; Thu, 13 Jan 2022 17:42:04 -0500
Received: from mail-yb1-f179.google.com ([209.85.219.179]:41797)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@HIDDEN>) id 1n88nB-0007s7-ID
 for 53225 <at> debbugs.gnu.org; Thu, 13 Jan 2022 17:42:04 -0500
Received: by mail-yb1-f179.google.com with SMTP id g14so19249051ybs.8
 for <53225 <at> debbugs.gnu.org>; Thu, 13 Jan 2022 14:42:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=OsVDoYIAKd6Sm/QPy9mhXLTVoSjBSm9qSAOR2x3p17s=;
 b=XIAwMUcawjNUEl7T63wF42t5nNvPDvl2+VUJ/K1GdAkQEzzxYrLkttX9Y175nGMtoX
 nKwOeZwxMzoxz19aELkwJdyoMMKzTJ0NhXFZGnAbrflz0J+q6OmsgcdZrJLS1BmFVxBq
 8fVJYZDRF6Y9Jr3QdtsZa7JWjDreaSXobxZyBbCGW+sEpWuJGwa1pvYH5l8U/nCSQPQw
 UdZ73sET11pKAya3yT8sjV/PoYNl79Klpc8LpocL6HVT3yzBUuCQyTzJ7SEfFHqECuT7
 zS1JAJbolnePxXchrKo2HVH4l8+AWyGjB4CM+BfXksDl+DED1VNii3S1EqWPk825VodV
 A7zg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=OsVDoYIAKd6Sm/QPy9mhXLTVoSjBSm9qSAOR2x3p17s=;
 b=bAba/mriOLq3J8ABjzyQEM69b0PG41bdG7b/d6mp7kz4ixEGGjvqmUoeSn3SDJumuN
 GJvpKlm7Y/DLW2ilgBPrIVWxU2zZIpfMpBAYP4bPUYJc3iCwm8lZpHyqfemBjkHlPkRk
 YEXwXiDCBDYk7cPs0Q9GhkyqKSCzyCeCPWDzr3priQ4UzfXCQX8KhqvuVkLhLnZMRzEr
 pKJAEUPjvvFcS/BS66KbgMfRjarXS7tck0y9esc5pMl9JvgyfNIr5h/pYA0zuKG9RcbC
 Pfv+6d48ifZcdaydxzSKW/M8C2T4tQZrDVHHNGeF3U3TSAcH6eZx8vfyFSTsIMFpvMEB
 SYQg==
X-Gm-Message-State: AOAM533DxZjfAQM1gC24CIYmhcDFLm4yuORqQM4KxW6sWQ/NB+cPEB+l
 XWxMGWIXkJ51AiuPR4BrfHjW8gOZolgMcMI/IvsVumkP3ps=
X-Google-Smtp-Source: ABdhPJy3Cz+leY9sIwmcaJ/5n50Ena/+Lyt07fPw4g3GOfR2IUCU/jopXcQmipcPBnt8LBerW8b0eSeSFliEz23UJJ4=
X-Received: by 2002:a25:6c55:: with SMTP id h82mr9362082ybc.214.1642113715902; 
 Thu, 13 Jan 2022 14:41:55 -0800 (PST)
MIME-Version: 1.0
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
In-Reply-To: <87pmov7jrr.fsf@HIDDEN>
From: Nathan Dehnel <ncdehnel@HIDDEN>
Date: Thu, 13 Jan 2022 16:41:44 -0600
Message-ID: <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>What do you mean by =E2=80=9Cfreezing=E2=80=9D?  Does =E2=80=98herd status=
=E2=80=99 and similar commands
block forever?
Yes

>Requests in the Shepherd are currently handled sequentially.  So if you
issue several =E2=80=98herd restart=E2=80=99 commands, they=E2=80=99ll be p=
rocessed one at a
time.  This is usually okay because =E2=80=98start=E2=80=99 commands are ex=
pected to be
quick (just wait for the daemon to write its PID file or similar).
What is the nature of this serialization? Does wireguard need to
finish before resolvconf can start? Because that's probably the issue.


On Thu, Jan 13, 2022 at 9:11 AM Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
> Hi,
>
> Nathan Dehnel <ncdehnel@HIDDEN> skribis:
>
> > When dns is specified, wireguard runs wg-quick, which runs resolvconf,
> > which runs /run/current-system/profile/bin/herd restart, which causes
> > shepherd to freeze because I guess it doesn't like being given
> > multiple start commands at once. I'm not sure how to fix it.
>
> What do you mean by =E2=80=9Cfreezing=E2=80=9D?  Does =E2=80=98herd statu=
s=E2=80=99 and similar commands
> block forever?  Or is it something else?
>
> Requests in the Shepherd are currently handled sequentially.  So if you
> issue several =E2=80=98herd restart=E2=80=99 commands, they=E2=80=99ll be=
 processed one at a
> time.  This is usually okay because =E2=80=98start=E2=80=99 commands are =
expected to be
> quick (just wait for the daemon to write its PID file or similar).
>
> Thanks,
> Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 17 Jan 2022 13:49:01 +0000
Resent-Message-ID: <handler.53225.B53225.164242733222570 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Nathan Dehnel <ncdehnel@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.164242733222570
          (code B ref 53225); Mon, 17 Jan 2022 13:49:01 +0000
Received: (at 53225) by debbugs.gnu.org; 17 Jan 2022 13:48:52 +0000
Received: from localhost ([127.0.0.1]:45487 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9SNQ-0005ry-5Q
	for submit <at> debbugs.gnu.org; Mon, 17 Jan 2022 08:48:52 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:44284)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1n9SNO-0005rj-00
 for 53225 <at> debbugs.gnu.org; Mon, 17 Jan 2022 08:48:50 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 80E1A1D2;
 Mon, 17 Jan 2022 14:48:44 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id Rl23PzIlDKmE; Mon, 17 Jan 2022 14:48:43 +0100 (CET)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id D78E438A;
 Mon, 17 Jan 2022 14:48:40 +0100 (CET)
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
 <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 28 =?UTF-8?Q?Niv=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?=
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: Mon, 17 Jan 2022 14:48:40 +0100
In-Reply-To: <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
 (Nathan Dehnel's message of "Thu, 13 Jan 2022 16:41:44 -0600")
Message-ID: <87y23eo4lj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spamd-Bar: /
Authentication-Results: hera.aquilenet.fr;
	none
X-Rspamd-Server: hera
X-Rspamd-Queue-Id: 80E1A1D2
X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[];
 RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];
 TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain];
 RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];
 MID_RHS_MATCH_FROM(0.00)[]
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

Nathan Dehnel <ncdehnel@HIDDEN> skribis:

>>What do you mean by =E2=80=9Cfreezing=E2=80=9D?  Does =E2=80=98herd statu=
s=E2=80=99 and similar commands
> block forever?
> Yes
>
>>Requests in the Shepherd are currently handled sequentially.  So if you
> issue several =E2=80=98herd restart=E2=80=99 commands, they=E2=80=99ll be=
 processed one at a
> time.  This is usually okay because =E2=80=98start=E2=80=99 commands are =
expected to be
> quick (just wait for the daemon to write its PID file or similar).
> What is the nature of this serialization? Does wireguard need to
> finish before resolvconf can start? Because that's probably the issue.

One command sent to shepherd by =E2=80=98herd =E2=80=A6=E2=80=99 must have =
completed before the
next one is processed.

You can experience it like this:

  sudo herd eval root '(sleep 3)' & echo status && sudo herd status

Here the first =E2=80=98herd=E2=80=99 command has shepherd block for 3 seco=
nds, so the
second =E2=80=98herd=E2=80=99 command won=E2=80=99t print anything until 3 =
seconds have passed.

HTH,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Nathan Dehnel <ncdehnel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 01 Jun 2022 22:57:02 +0000
Resent-Message-ID: <handler.53225.B53225.165412418321048 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.165412418321048
          (code B ref 53225); Wed, 01 Jun 2022 22:57:02 +0000
Received: (at 53225) by debbugs.gnu.org; 1 Jun 2022 22:56:23 +0000
Received: from localhost ([127.0.0.1]:52184 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nwXGJ-0005TP-54
	for submit <at> debbugs.gnu.org; Wed, 01 Jun 2022 18:56:23 -0400
Received: from mail-yw1-f181.google.com ([209.85.128.181]:40075)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@HIDDEN>) id 1nwXGH-0005TB-D8
 for 53225 <at> debbugs.gnu.org; Wed, 01 Jun 2022 18:56:21 -0400
Received: by mail-yw1-f181.google.com with SMTP id
 00721157ae682-30c2f288f13so34391237b3.7
 for <53225 <at> debbugs.gnu.org>; Wed, 01 Jun 2022 15:56:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=hwBobqKZb5Hn6iW0y5djRdRvgZGcop9F7IIdrhRcZ0E=;
 b=LzBnyTTa3jJvfps8u/bY/D36K7S4RNjfY52vYT5kW8ZGu8Wpco04xCA+xuDg9ymEr5
 oRup/1XS3u2n8F6eWk4K2gZFyCjrcEoSUFGJi6RI7emvUlYjHhuGl11MCmEk72/5AyeH
 Ktx3FCsRWRXb12r2skb9cwhIGHpDTNcpbpYeQzW9DBgfUsEp7MZt/vvu003bM756n/Hl
 GVNFliMVf4ZVWZrT93iuaJdddYX1Mm9S0nmie1jFXw8XsdJBK21z7W+JxDW7x9RjMmQN
 sJmI46ubCD6mlAg1VbFyU61PRjRdh63ffgGr3pz1ifHfataklCzBwNoLRk9c/L11YRQn
 e8lA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=hwBobqKZb5Hn6iW0y5djRdRvgZGcop9F7IIdrhRcZ0E=;
 b=XAmeVB5rOKUFXisoB4X/627/BP3Qn10eQYHEcwY/6SEcYH6KifJlrTYhivCAggIC2x
 zqDZZumTaW3kqxvKlxqH2nXxPIzecZLaDinSNY2fsty+UZvM15VtGe/MaYWeIP2TBQXq
 tk9pWxjYtIeZZ7mv+/LxurRMROsVVs3U0gjm5UKF7lXhgfKK4b96id7CzY5ri3mOb/Bk
 Fp6ARAJhHF0hgDNzWGZZvIvyk83zoGLqAwtAWk9o+MOnLuaPverKwi5u6jNjWDgWJcEi
 4HjkfyByfEsxRJbst3VhP5WnJvKPXJ8dK4wiwBRT9GtY7DcHAb5q8j18zCk7gY72gZbh
 dyDw==
X-Gm-Message-State: AOAM53066TpaTuHQvXjmtcVNR2A8eC8QgoLQACO6Dw6UxwY1uEyy0Vqb
 IEisObsyFXMN/HPWIBB3YM39ajzizL3IuPfe0tM=
X-Google-Smtp-Source: ABdhPJweoI04mu7AnkeIcs+CJpQA7EJ8q+Ks2sJtq8FXwlJ9IzQYY0HX9mfv2IvnDAeIJIGuVsKrE6DwaEBGFHNagCE=
X-Received: by 2002:a81:8494:0:b0:30c:14a4:eb96 with SMTP id
 u142-20020a818494000000b0030c14a4eb96mr2309307ywf.61.1654124175622; Wed, 01
 Jun 2022 15:56:15 -0700 (PDT)
MIME-Version: 1.0
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
 <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
 <87y23eo4lj.fsf@HIDDEN>
In-Reply-To: <87y23eo4lj.fsf@HIDDEN>
From: Nathan Dehnel <ncdehnel@HIDDEN>
Date: Wed, 1 Jun 2022 17:56:04 -0500
Message-ID: <CAEEhgEvwfB49rpxW-w_hj+xD5MVy-OkT_AmHThNXK1dYW34Fyw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Just tested and Shepherd 0.9 does not fix this issue.

On Mon, Jan 17, 2022 at 7:48 AM Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
> Hi,
>
> Nathan Dehnel <ncdehnel@HIDDEN> skribis:
>
> >>What do you mean by =E2=80=9Cfreezing=E2=80=9D?  Does =E2=80=98herd sta=
tus=E2=80=99 and similar commands
> > block forever?
> > Yes
> >
> >>Requests in the Shepherd are currently handled sequentially.  So if you
> > issue several =E2=80=98herd restart=E2=80=99 commands, they=E2=80=99ll =
be processed one at a
> > time.  This is usually okay because =E2=80=98start=E2=80=99 commands ar=
e expected to be
> > quick (just wait for the daemon to write its PID file or similar).
> > What is the nature of this serialization? Does wireguard need to
> > finish before resolvconf can start? Because that's probably the issue.
>
> One command sent to shepherd by =E2=80=98herd =E2=80=A6=E2=80=99 must hav=
e completed before the
> next one is processed.
>
> You can experience it like this:
>
>   sudo herd eval root '(sleep 3)' & echo status && sudo herd status
>
> Here the first =E2=80=98herd=E2=80=99 command has shepherd block for 3 se=
conds, so the
> second =E2=80=98herd=E2=80=99 command won=E2=80=99t print anything until =
3 seconds have passed.
>
> HTH,
> Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 02 Jun 2022 13:40:02 +0000
Resent-Message-ID: <handler.53225.B53225.16541771455398 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Nathan Dehnel <ncdehnel@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.16541771455398
          (code B ref 53225); Thu, 02 Jun 2022 13:40:02 +0000
Received: (at 53225) by debbugs.gnu.org; 2 Jun 2022 13:39:05 +0000
Received: from localhost ([127.0.0.1]:53168 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nwl2W-0001Oz-Tx
	for submit <at> debbugs.gnu.org; Thu, 02 Jun 2022 09:39:05 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nwl2V-0001OP-De
 for 53225 <at> debbugs.gnu.org; Thu, 02 Jun 2022 09:39:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58202)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nwl2Q-0002My-4i; Thu, 02 Jun 2022 09:38:58 -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=wz3DANQgtmfPV7OYuDRej4Orf/n+aKhKHUFEYn9RJyc=; b=kKAyg+7X9eBreK1szgm/
 tTiCdTHtgKo0M3vjY+4OsVh09H8ekzvHKAHwjkWuywxWqMyYZue41Z0wIC+dJqjvY1Rir545Xm9SD
 aJkDWsqtnHhKwYiNFBjQqb0tIcFwb5ErzZIW5c3s8VTWzChiTdTWP4T4DpLIhwK2TS0r5ax7dEKvg
 ByanG8e2jWuAfBz63cOTxzbG3l5c+H/mEdB7FTdN1q+PevWN8zO2+vo/EM5hENHzBJdlj+2iZtTCQ
 3ghqmGb/ls7SPeFVato+yFpaTiSvl2SeMCG22WQkxLmvX8Zd6Ztcbej8K/YF/iRDqOl96D8fQyrv3
 P3QsI2JuWIBu+A==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:58847
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nwl2P-0005Ld-PA; Thu, 02 Jun 2022 09:38:57 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
 <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
 <87y23eo4lj.fsf@HIDDEN>
 <CAEEhgEvwfB49rpxW-w_hj+xD5MVy-OkT_AmHThNXK1dYW34Fyw@HIDDEN>
Date: Thu, 02 Jun 2022 15:38:56 +0200
In-Reply-To: <CAEEhgEvwfB49rpxW-w_hj+xD5MVy-OkT_AmHThNXK1dYW34Fyw@HIDDEN>
 (Nathan Dehnel's message of "Wed, 1 Jun 2022 17:56:04 -0500")
Message-ID: <87o7zbp4lr.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Nathan,

Nathan Dehnel <ncdehnel@HIDDEN> skribis:

> Just tested and Shepherd 0.9 does not fix this issue.

Could you be more specific?  Specifically, could you share
/var/log/messages for the parts related to Wireguard?

> On Mon, Jan 17, 2022 at 7:48 AM Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

[...]

>> One command sent to shepherd by =E2=80=98herd =E2=80=A6=E2=80=99 must ha=
ve completed before the
>> next one is processed.
>>
>> You can experience it like this:
>>
>>   sudo herd eval root '(sleep 3)' & echo status && sudo herd status
>>
>> Here the first =E2=80=98herd=E2=80=99 command has shepherd block for 3 s=
econds, so the
>> second =E2=80=98herd=E2=80=99 command won=E2=80=99t print anything until=
 3 seconds have passed.

This is actually still the case with 0.9, because here we=E2=80=99re calling
(@ (guile) sleep), which blocks.  So=E2=80=A6 not a good example.

The short story is: it is still possible to write code that blocks
shepherd, as with the =E2=80=98sleep=E2=80=99 example above.  However, the =
standard
service constructors/destructors no longer block, and shepherd can serve
multiple clients concurrently.

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Nathan Dehnel <ncdehnel@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 08 Jun 2022 23:24:02 +0000
Resent-Message-ID: <handler.53225.B53225.165473063318857 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.165473063318857
          (code B ref 53225); Wed, 08 Jun 2022 23:24:02 +0000
Received: (at 53225) by debbugs.gnu.org; 8 Jun 2022 23:23:53 +0000
Received: from localhost ([127.0.0.1]:44549 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nz51k-0004u5-LU
	for submit <at> debbugs.gnu.org; Wed, 08 Jun 2022 19:23:52 -0400
Received: from mail-yb1-f176.google.com ([209.85.219.176]:47086)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@HIDDEN>) id 1nz51f-0004tp-Pa
 for 53225 <at> debbugs.gnu.org; Wed, 08 Jun 2022 19:23:51 -0400
Received: by mail-yb1-f176.google.com with SMTP id r82so38971903ybc.13
 for <53225 <at> debbugs.gnu.org>; Wed, 08 Jun 2022 16:23:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=DPkq2vRJ/gby3dslzjip3bcSwRFZyjt6jcozQqyDuFk=;
 b=gdY8L9ibUUWozgGcX19XeQYnrVOBRorMONVRACbGmKW2180BukOuPWkqanCLYX5SYL
 qCSo5gBXI/IW/K8ZGn3xg9Y4UA4MAKG6qKZuVKEgCvCR6tXcE6kIIC3/+pekpT6cbH+p
 rssiZJsm168vVk0IAvKU+0H+6x2GvBOds5vsLuYDHx8iF9d6ziSZN7/AluWtcKBDi50I
 xqzypX2/S4h7YVJvFeTxzzUUsqCIlLjK2NgfVtwckdXe7TmlYwSm7jL6A/F3nIg6ucBN
 P1iHNWYnu1n1pwW69bYRlNbvk6OVivocxYhKU2PVdXtKUvvaZ+aNZIBFZ+L3wxrvu3XG
 TGFg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=DPkq2vRJ/gby3dslzjip3bcSwRFZyjt6jcozQqyDuFk=;
 b=GiU1uBDdI5CMpFAyzvHsgG2Iid93VUavvbVfAT3Y1vExFiSMIPXzdaRvDqK3S9NyvN
 HfAh89twNYXqBp1QfLTRW6kgdXCj+3W77+iT2hUR2glFkt7/p8E0WgEr952NcaLq2GU0
 esWgINv0HY7Q6F/iagD9qqqhUQgxjIWI86VXDeHb9Jj+HOZn3f560/k5gObchov4CY6M
 drHFhrBynY5IZGWBSU3e9JG80EOp5L9rRWTovz0JfHiOxwJ0ii2ki3/RSXCrH7CHKlwc
 KprZOIowEdjM19UUvR95AW+7FDVzfnrCAVsLH3oCeBmgoCVEbCohbAWj1JYo61Fr+RkJ
 xc6w==
X-Gm-Message-State: AOAM5309YJYlWB0HyI3t+EzL9kXBAXAl51b/r2nfb+jc89aV0FTZYj0i
 tUbI+T0zDenTZLN3tgqd5VtMVDqCbJhJ9wJDyIFVFAhpOiXyAA==
X-Google-Smtp-Source: ABdhPJxP4fO6gLRqzt/Q92kPnCoZcor74an1mjWDILdDXwZpGigDrlMFtJHXjVry6mU9Xb0ux56aJ9U9guiNZkef2PE=
X-Received: by 2002:a25:b00b:0:b0:664:2460:e244 with SMTP id
 q11-20020a25b00b000000b006642460e244mr2530522ybf.19.1654730622171; Wed, 08
 Jun 2022 16:23:42 -0700 (PDT)
MIME-Version: 1.0
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
 <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
 <87y23eo4lj.fsf@HIDDEN>
 <CAEEhgEvwfB49rpxW-w_hj+xD5MVy-OkT_AmHThNXK1dYW34Fyw@HIDDEN>
 <87o7zbp4lr.fsf@HIDDEN>
In-Reply-To: <87o7zbp4lr.fsf@HIDDEN>
From: Nathan Dehnel <ncdehnel@HIDDEN>
Date: Wed, 8 Jun 2022 18:23:31 -0500
Message-ID: <CAEEhgEua1cgU0m7VBYOsePrVc6kSXaGt7AGj8VKvO1P57kK2mw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>Could you be more specific?  Specifically, could you share
>/var/log/messages for the parts related to Wireguard?

root@guixtest ~# cat /var/log/messages | grep -i wireguardJun  8
18:20:07 localhost vmunix: [    6.330271] wireguard: WireGuard 1.0.0
loaded. See www.wireguard.com for information.
Jun  8 18:20:07 localhost vmunix: [    6.330276] wireguard: Copyright
(C) 2015-2019 Jason A. Donenfeld <Jason@HIDDEN>. All Rights
Reserved.

>However, the standard
>service constructors/destructors no longer block, and shepherd can serve
>multiple clients concurrently.

I don't know, I guess wireguard uses "non-standard" constructors.

On Thu, Jun 2, 2022 at 8:38 AM Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
> Hi Nathan,
>
> Nathan Dehnel <ncdehnel@HIDDEN> skribis:
>
> > Just tested and Shepherd 0.9 does not fix this issue.
>
> Could you be more specific?  Specifically, could you share
> /var/log/messages for the parts related to Wireguard?
>
> > On Mon, Jan 17, 2022 at 7:48 AM Ludovic Court=C3=A8s <ludo@HIDDEN> wro=
te:
>
> [...]
>
> >> One command sent to shepherd by =E2=80=98herd =E2=80=A6=E2=80=99 must =
have completed before the
> >> next one is processed.
> >>
> >> You can experience it like this:
> >>
> >>   sudo herd eval root '(sleep 3)' & echo status && sudo herd status
> >>
> >> Here the first =E2=80=98herd=E2=80=99 command has shepherd block for 3=
 seconds, so the
> >> second =E2=80=98herd=E2=80=99 command won=E2=80=99t print anything unt=
il 3 seconds have passed.
>
> This is actually still the case with 0.9, because here we=E2=80=99re call=
ing
> (@ (guile) sleep), which blocks.  So=E2=80=A6 not a good example.
>
> The short story is: it is still possible to write code that blocks
> shepherd, as with the =E2=80=98sleep=E2=80=99 example above.  However, th=
e standard
> service constructors/destructors no longer block, and shepherd can serve
> multiple clients concurrently.
>
> Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 09 Jun 2022 15:06:02 +0000
Resent-Message-ID: <handler.53225.B53225.165478711825443 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53225
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Nathan Dehnel <ncdehnel@HIDDEN>
Cc: 53225 <at> debbugs.gnu.org
Received: via spool by 53225-submit <at> debbugs.gnu.org id=B53225.165478711825443
          (code B ref 53225); Thu, 09 Jun 2022 15:06:02 +0000
Received: (at 53225) by debbugs.gnu.org; 9 Jun 2022 15:05:18 +0000
Received: from localhost ([127.0.0.1]:47352 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nzJin-0006cI-SM
	for submit <at> debbugs.gnu.org; Thu, 09 Jun 2022 11:05:18 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33194)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nzJik-0006c0-8p
 for 53225 <at> debbugs.gnu.org; Thu, 09 Jun 2022 11:05:16 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58426)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nzJie-0004iT-QH; Thu, 09 Jun 2022 11:05:08 -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=McdPdPADJfadkq81XopQCOoDD9fVE/npeYBulANFSgI=; b=RSBHbd2MhIbLEUzDVelt
 rTXdYex+6jnzCcFdQ6bEvuINssAGlIxX66nSgQdr292YEOwKPW+6PMQlHsNHgw7rrKbgCmKtEqXvw
 JSPOdKIMojeWAmiYYTJPEtEZwGj6dvWbJkgdhzISbiSpqcC2TmaTGA5yRTXPg0RC8czJaPVUd2w3s
 Wl9xyWP8ZZ7kg6M/8R/hUwkFICfV8eLJlBJ0OgTBvTxgvcZXiAmk5kxRyAU/YaTYknm0/ppPj86xA
 LuQuhzPoX9HySifA9UOnUDl4mV+ZV+1pPdL7cAR2XXVDMehPbwfj6LAHc+isSj9iOAkDx53usmgmy
 UhCxC6goKwZIxg==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=53674 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nzJid-00061v-1v; Thu, 09 Jun 2022 11:05:08 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <CAEEhgEt5N0T+Bja2KPdSYxnZaGCR_z0L8qOpQPt4H00bx3=O5w@HIDDEN>
 <87pmov7jrr.fsf@HIDDEN>
 <CAEEhgEv+MriPS8SwUWXV_qg8UQJrVeTYBkYkOHmDWi5OaQWy4A@HIDDEN>
 <87y23eo4lj.fsf@HIDDEN>
 <CAEEhgEvwfB49rpxW-w_hj+xD5MVy-OkT_AmHThNXK1dYW34Fyw@HIDDEN>
 <87o7zbp4lr.fsf@HIDDEN>
 <CAEEhgEua1cgU0m7VBYOsePrVc6kSXaGt7AGj8VKvO1P57kK2mw@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Primidi 21 Prairial an 230 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Barbeau
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: Thu, 09 Jun 2022 17:05:04 +0200
In-Reply-To: <CAEEhgEua1cgU0m7VBYOsePrVc6kSXaGt7AGj8VKvO1P57kK2mw@HIDDEN>
 (Nathan Dehnel's message of "Wed, 8 Jun 2022 18:23:31 -0500")
Message-ID: <87tu8t3mjj.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Nathan,

Nathan Dehnel <ncdehnel@HIDDEN> skribis:

>>Could you be more specific?  Specifically, could you share
>>/var/log/messages for the parts related to Wireguard?
>
> root@guixtest ~# cat /var/log/messages | grep -i wireguardJun  8
> 18:20:07 localhost vmunix: [    6.330271] wireguard: WireGuard 1.0.0
> loaded. See www.wireguard.com for information.
> Jun  8 18:20:07 localhost vmunix: [    6.330276] wireguard: Copyright
> (C) 2015-2019 Jason A. Donenfeld <Jason@HIDDEN>. All Rights
> Reserved.

There should be lines like:

  shepherd[1]: Service 'wireguard-XXX' has been started.

Perhaps they=E2=80=99ve been moved to a different files due to log rotation?

Without these, I cannot tell what happened.

>>However, the standard
>>service constructors/destructors no longer block, and shepherd can serve
>>multiple clients concurrently.
>
> I don't know, I guess wireguard uses "non-standard" constructors.

Indeed, it invokes =E2=80=98wg-quick up=E2=80=99 and waits for completion.

I suppose that command blocks until it has set up the VPN, right?

If so, we=E2=80=99ll need to rewrite it differently.

Thanks,
Ludo=E2=80=99.





Last modified: Thu, 9 Jun 2022 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.