From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-devel-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id gF4QNN84QWWGNQAA9RJhRA:P1
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 31 Oct 2023 18:26:55 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id gF4QNN84QWWGNQAA9RJhRA
	(envelope-from <guix-devel-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Tue, 31 Oct 2023 18:26:55 +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 BF88A36018
	for <larch@yhetil.org>; Tue, 31 Oct 2023 18:26:55 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=kNEp7JRY;
	dmarc=none;
	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"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698773215; a=rsa-sha256; cv=none;
	b=oiT/oAGVS0GfzWNNkblmImofirXtXGQHvQRLZ/nZz0HSMaSuXU+h+rS5C7bd8o2jdSC7TC
	3Ob11J0xkSvYV8m2hgwFEgqV4BhF4z6z1jlndz/5XdJz8YsVkqfz//UjM7TtmcdmdaHqcB
	myS60ySmszlz2hkjDy52eIivLjGBoa/m1nNN3vdVVRojJNtNWljNuI8AdtFQBUQepjtgI1
	goFfR7LCWvLerFS7eeNDdEzn3biFAlFiSHIoo9eBtho1BhsK0X7FJECKwGYvdhDoNDbQNw
	ns4vo3YWOAZBTF6I3BxJgRfHZ5j3Ci9dN80EWVfIKFbOT1zSPPUSgQG/LdfP2A==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=kNEp7JRY;
	dmarc=none;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1698773215;
	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=1MVwvJ8Jj2EaXu2Wvs0blbjjVHQ3MVn78sc6Fi8PFik=;
	b=B9UafbfqIKgBTLnfAGODoXmsXP+vAM6+Ma/UfxvhATuJbhEA7jKl/SmKmb4jCvnleHXao5
	KnAayWKV26chQHhDp/UjMr18AOpg8AWEPiLkPqWAm5XPgkVhVnV9Vr2A4s8qXGt93YuRki
	z31XqLZ17rmXFXqrUmQPFfS4OZ0Uk/aGd3qH4H1FietXABAlSOK0u7J70KtjxCU6JJ7M9W
	8HMWKlbeoVWfZ3QuMe/FDI/wJcYRhDnONRSVkQWRaN94K5f38NKXABA5kmKP+J4SosTi0q
	+hl+1PTgBhPC+G4dNrNPfURhQ83yw6ConwZbzKWmcNyMT5bGKFNKl7pPAx/hIA==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-devel-bounces@gnu.org>)
	id 1qxsVM-0004sw-J6; Tue, 31 Oct 2023 13:26:16 -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 <attila@lendvai.name>)
 id 1qxsVL-0004sl-EX
 for guix-devel@gnu.org; Tue, 31 Oct 2023 13:26:15 -0400
Received: from mail-4317.proton.ch ([185.70.43.17])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <attila@lendvai.name>)
 id 1qxsVH-0006AM-Da
 for guix-devel@gnu.org; Tue, 31 Oct 2023 13:26:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name;
 s=protonmail3; t=1698773165; x=1699032365;
 bh=1MVwvJ8Jj2EaXu2Wvs0blbjjVHQ3MVn78sc6Fi8PFik=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=kNEp7JRY9PYvyXP1kjiAskAsqfKa06Cq8qGLfS/TzrZMQFMJLnKzgV0ljG4DY56IF
 IpNWdk7fTerI4zD6uqAjIsh7bwHCNBTOhZ8qY1CW1sCZ5DvUivSpXonXNM+II3/EjR
 CJfHggbjpUsmxB0padAvLQHnJsibASrffw1uMksm8VRuDAYX3OfxfZqymKgrLxKXFO
 xvUPDpr1hxJm/7/nYxlWwlJUH1n7yAWm+K8nTD2rrrwvlo+UUTl0EZcufTjF70JmO+
 TF0wNXkJ8ofdaJUawNCPl4a+ufvBxfO6eNCiA+pkZRZb62HbntfVUFNlUe94V5Fci2
 2lCPHDf2zexrQ==
Date: Tue, 31 Oct 2023 17:26:03 +0000
To: Felix Lechner <felix.lechner@lease-up.com>
From: Attila Lendvai <attila@lendvai.name>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: shepherd-action debug help needed
Message-ID: <C_D4TjChpJIdDkFSdQy1mn6KyVnD5uI9jefzC36YRce7fboLzmJYe7U09017VUL_mOpakWY6vaLJeq3ttnkA8Jcr4KNeMyPqTOkaa_huysc=@lendvai.name>
In-Reply-To: <87ttq7beoz.fsf@lease-up.com>
References: <HwHJ7wSna1MCD7Ef6HOI0QsTO61uzCE0IdaPXOQ8XC7ci5ygUTi9Iy6G99znopc0ydlH8OrHZk1G__EDIfoqWI-m-BDZnV5wIZxmMYFURRo=@lendvai.name>
 <87ttq7beoz.fsf@lease-up.com>
Feedback-ID: 28384833:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.43.17; envelope-from=attila@lendvai.name;
 helo=mail-4317.proton.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
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."
 <guix-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-devel>
List-Post: <mailto:guix-devel@gnu.org>
List-Help: <mailto:guix-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>,
 <mailto:guix-devel-request@gnu.org?subject=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-Queue-Id: BF88A36018
X-Migadu-Scanner: mx12.migadu.com
X-Migadu-Spam-Score: -7.70
X-Spam-Score: -7.70
X-TUID: zRjeTG5bH6ZK

> Exit code 127 means "command not found". [1] More information is
> available in stderr (or sometimes stdout) if you can capture it.

but how come binaries are not found when i have the full path for the comma=
nds...?

the install binary is only used to set the umask of the result. without it,=
 a simple invokation of tar also fails, even without --gzip.

i dug a bit deeper, and it turned out that the SYSTEM call i thought was co=
ming from guile was rebound by shepherd to point to its own SPAWN-SHELL-COM=
MAND. through various complex code paths, it ends up calling fork+exec-comm=
and. SPAWN-SHELL-COMMAND's role is to make the SYSTEM call non-blocking.

as a quick test, i have added a simple (system "ls -l /bin/sh") call to my =
action, and that fails, too.

i'll need to add proper logging to shepherd and see what's going wrong. but=
 for that i need https://issues.guix.gnu.org/61750 merged.

--=20
=E2=80=A2 attila lendvai
=E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39
--
=E2=80=9CJustice is not concerned with the results of the various transacti=
ons, but only with whether the transactions themselves are fair.=E2=80=
=9D
=09=E2=80=94 F.A. Hayek (1899=E2=80=931992), 'Law, Legislation and Liberty'=
, I.6.j