From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YLhyH8Z1R2ZJCwAAe85BDQ:P1 (envelope-from ) for ; Fri, 17 May 2024 17:20:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YLhyH8Z1R2ZJCwAAe85BDQ (envelope-from ) for ; Fri, 17 May 2024 17:20:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=j24fnPzj; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-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=1715959238; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pN0rKhscS7vBe6FartQmOgJxTaUb95cSOY7S5j3/lA4=; b=o5O5G1Q055pHSZRzNcTkQqv600KCGYnjOmzKLSXWNte32pzwtRuQWcUIhOCyF50W7yznjI UZxbLckkhgccXZZN6XLoJbgtEN+LtMvJsuYXceYciUaX87oAO+waZ3vLQBhEXRO+fGgJDL 2tv0HrHyTg8i/JPCVFYNCQWE0zJQYy0fKiY43CpCy0RDbZY3urC8nPYn153/qhcCIs36W3 MU0NqXc+dncT4u8O7N0hw8bfHeIWbwFDHVevPvHtU6rd/p/Ktlba5ehVF5bEocZIaJZwtA GejU/MQT46aIVpyhwvub7DgwCRZGgdCmsv+EAeIcEl0bQqjmps4icc61RS9L7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=j24fnPzj; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715959238; a=rsa-sha256; cv=none; b=J/cZi3YV/G/YmaReXypzfvuXnRY1mqPH0kSFk9xNfQ3CCzyWqORr76f1W74zmo3wWQj+G+ YJuLZOx+z/zj3JCR2KZejXejNb5wmG43vU955lHPKVm3ChuTMmeWTW6ys4fLv8JnCVtMOy W5itN0F0VN8ocTygf7ibJ++bsjVnXY4wFHXUTNXP9X4HcThL+s25mLGbzZSwtEt+9sLhR7 3xhXBQehKCzpdHlukLCx5fJf0WqzLFY/s8ctsg3ZPcwCI6hslCiv8YbKtdeB/ySL/KqLmB 3kCqmQJW3VJqOolwaez0Nxcxzyfiumt1ln/BgADu6GW1wQaihTGfatjB+4pQLg== 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 5FC3C57A88 for ; Fri, 17 May 2024 17:20:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7zNR-0006X3-6F; Fri, 17 May 2024 11:20:09 -0400 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 1s7zNP-0006Wp-DR for guix-devel@gnu.org; Fri, 17 May 2024 11:20:07 -0400 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 1s7zNO-0001Fl-Qe; Fri, 17 May 2024 11:20:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=pN0rKhscS7vBe6FartQmOgJxTaUb95cSOY7S5j3/lA4=; b=j24fnPzjVSkFpSyiT91D G1Y1yoCoJ1nXfbXQEbhYB36Zgl7myKp4p17XTToaJM5ifU8EUZ56Y9s9R8k3guA1a01whnucAC64n up469CozwLbu+ygf3HqnOJwoWVtGFNZl7U5Fct0pH0GrRYmJ6gl6bploWX8l2PuUaBA3K98UY38KP hfZV+FCQdAleszYzEP5LbAPOpzaag/c7IN9lLdqFCXatAPh8ZwXogEBHZRbVOJ0q60SDrmdg3w0H5 wsQm9JwZnIXG2v7QAvk98hELRhOYXXVpqJUTnXIbb2sKtkmFJoy2PCe6lDtv2ZaVKq1TViMmYP4YP qSLIYvEMWVuT7Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Cc: Felix Lechner Subject: Re: Upgrading Shepherd services In-Reply-To: <87le49uymn.fsf@lease-up.com> (Felix Lechner via's message of "Thu, 16 May 2024 16:26:40 -0700") References: <87le49uymn.fsf@lease-up.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 29 =?utf-8?Q?Flor=C3=A9al?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?B?U8OpbmV2w6k=?= 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: Fri, 17 May 2024 17:20:03 +0200 Message-ID: <877cfs5uu4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.94 X-Spam-Score: -10.94 X-Migadu-Queue-Id: 5FC3C57A88 X-Migadu-Scanner: mx13.migadu.com X-TUID: EWeTeszQEwXo Hi Felix, Felix Lechner via "Development of GNU Guix and the GNU System distribution." skribis: > I have a lot of custom Shepherd services. Every so often I make a > mistake that stalls the step in 'guix deploy' that upgrades Shepherd > services, but without any error messages. > > Unfortunately, I can also no longer run 'herd status', which likewise > hangs, or 'reboot'. How may I debug such issues in my operating-system > declaration, please? The standard service constructors are de-constructors cannot block shepherd entirely (at least not AFAIK). So my suggestion would be to first look at any service you=E2=80=99re using that has a custom =E2=80=98s= tart=E2=80=99 or =E2=80=98stop=E2=80=99 method doing weird things; make sure none of them ca= n block. Another thing: when shepherd is blocked, try =E2=80=9Csudo strace -p1=E2=80= =9D so see what syscall it=E2=80=99s waiting to complete (that=E2=80=99s the likely pr= oblem). In addition, check the last lines of /var/log/messages so see what shepherd was trying to do before blocking. HTH! Ludo=E2=80=99.