From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MGixEDXLvmErVwAAgWs5BA (envelope-from ) for ; Sun, 19 Dec 2021 07:03:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iJNzDDXLvmFMIwAAB5/wlQ (envelope-from ) for ; Sun, 19 Dec 2021 06:03:33 +0000 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 E76791875E for ; Sun, 19 Dec 2021 07:03:32 +0100 (CET) Received: from localhost ([::1]:52058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mypIA-00021t-2O for larch@yhetil.org; Sun, 19 Dec 2021 01:03:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mypHj-00021a-2S for bug-guix@gnu.org; Sun, 19 Dec 2021 01:03:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mypHi-0005pF-Nz for bug-guix@gnu.org; Sun, 19 Dec 2021 01:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mypHi-0003ws-Iv for bug-guix@gnu.org; Sun, 19 Dec 2021 01:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52654: shepherd lacks error reporting Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 19 Dec 2021 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52654 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52654@debbugs.gnu.org Received: via spool by 52654-submit@debbugs.gnu.org id=B52654.163989373915121 (code B ref 52654); Sun, 19 Dec 2021 06:03:02 +0000 Received: (at 52654) by debbugs.gnu.org; 19 Dec 2021 06:02:19 +0000 Received: from localhost ([127.0.0.1]:44722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mypH1-0003vp-A1 for submit@debbugs.gnu.org; Sun, 19 Dec 2021 01:02:19 -0500 Received: from mx1.riseup.net ([198.252.153.129]:48388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mypGy-0003vZ-LG for 52654@debbugs.gnu.org; Sun, 19 Dec 2021 01:02:17 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4JGsYt3TyWzDs9P for <52654@debbugs.gnu.org>; Sat, 18 Dec 2021 22:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1639893730; bh=j+fJTLugV7hWnLzDSg+ZynSs26H4z/ZwRfeWkfm0KVs=; h=Date:From:To:Subject:In-Reply-To:References:From; b=iGI+g4sNKdMRhyWZM2SuNj/sEfHFwLPsMsqg3wRE9bU/JduXq69FkDVXozQCkVVPa raBqRD1xeYaucHnEy5TcHs5i55O3kif1QE9qsNtwTjR/NHS4YaZMaXPBDlN6pT7Fmv 6eUYoAkQOgdSp0hW0cruueYVtt8fIP44Ew+Tpcxo= X-Riseup-User-ID: 33AAA7E6E1A49EFB20233E0CD7E1473D8AADBB1304FC5FAED7E73018A95F01D6 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4JGsYs5jV1z5vbN for <52654@debbugs.gnu.org>; Sat, 18 Dec 2021 22:02:09 -0800 (PST) Date: Sun, 19 Dec 2021 07:02:07 +0100 From: raingloom Message-ID: <20211219070207.1195510c@riseup.net> In-Reply-To: <20211219061320.7ef3bb8c@riseup.net> References: <20211219061320.7ef3bb8c@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639893813; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Oke7Q8Rx9AA4a8rD5T0qZve9+SBnVppIerxXM99Ji1A=; b=UntS4gktvPgJW0W3jEgzdh2qQa8qCxXKA1wdYvZyVawIilkn7b6ZTKD4TFomlsPIikz8Vx O4mwTTfro9COlxnhYgGfSzEaTS0MJ6GIYkHnKvC7rKonsuWr+2yDLR3V/65DK9IIV7XdjW 74p42yfMjVgafmKF+WhhF9ANZIHfdtSxaWmrYu3eOworPY5uRrCGyb1Q6erul1mE0qO/QB slC21TKwsiP5+J3tfguLqOWzwLwWRaw8x6OBhBVucoxFtpO+wzim5DmBamiqBzGJ+Zjiwt MQGkl10aouwDYBIrIEmn/p3Pv5lJzkzEwNqELMe9rhq/ZrWMk1WQYcy9UZCZrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639893813; a=rsa-sha256; cv=none; b=YHCDAwKjeQ6XV9xOwMZG1BqzfGBYqS4NZsw36/KSOCTccJrqg2pvBdBzPKAca765V79rot ZalWOrPwvGrd3Ho5QZCsJIMPmY3JU5YRbq9XxHsqgR0sOFsGMxcSpt4Wikdib3J1IWh9rR Nk3uIh65s5tsM5omvqWoYRKdCjS72nQCjZAbH0yoZrJYFyMWNOcSllmVeXiilfJXGHR5oi cvAoVJn5efMSUtn3/H3TjZFh4Ma8Ya1602/ZIMiy3H3o9N2taScWOsuN/yrXe+YtQbSbuT f7kNq1hSj6g225ELcESHnK+QckWbXpmeJ8hVu9orBADmY5FrczGyXnLJNwufjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=iGI+g4sN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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: -2.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=iGI+g4sN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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: E76791875E X-Spam-Score: -2.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1fseQTt6/756 On Sun, 19 Dec 2021 06:13:20 +0100 raingloom wrote: > I'm writing a single-shot shepherd-service that expands the (ext4) > root file system on first boot, using the hostname service as a > template, just passing the script as a G-expression, instead of using > the forkexec constructor. > Of course there is a bug in it. Trouble is, I have no idea what it is, > because Shepherd won't tell me. :) > The VM boots and completes the ssh initialization phase and then > apparently just gets stuck. Doesn't even show a login prompt. > It's... not a great debugging experience. > I'm going to attempt to at the very least add some error reporting. > It would also be really nice if the failure modes for Shepherd > services were better documented, like what happens when the procedure > passed in the `start` field fails, or is not even a procedure, etc. > Since I never touched Shepherd internals, help would be greatly > appreciated. > > ps.: I'm attaching the system definition for completeness's sake and > so that someone might point out where the error is, but honestly the > exact bug in my code does not matter for the feature. All that > matters is there is an error and it should be logged but isn't. So the error in my config turned out to be the G-expression not evaluating to a lambda, but the issue with Shepherd still stands.