From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cD8oFJYlpWW8vgAAe85BDQ:P1 (envelope-from ) for ; Mon, 15 Jan 2024 13:31:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cD8oFJYlpWW8vgAAe85BDQ (envelope-from ) for ; Mon, 15 Jan 2024 13:31:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=20230804 header.b=hE7ztW06; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705321878; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3WAh3+cTQl4OJioiIfeVhIqB2zDVfIwpL4i648jp7UQ=; b=eYftGdhbMEfMk0q4a9GbIad0heBH3jMS1Wys9X/fkzR6xYYrE5cGQBNP3fJxpoa7/5MIyZ 8UTq6nTKrfrJ/1uXS3aZXamoWrXRc5NfllMPOPvRiebvaxkGq5FIpektzmOte2t4UFn+tw WRGgWDwBJtjI+LzJ+wyUoU5W4ZzPjNbVXHqc4QAEqnlb6K76kd1yuBWHykd2+IH8Ccy1ZE DcZkCQJS5vK/w8DHTuK4tk0nk9/ndWDWHFTA395RvoPB7dkseTF760fDSL37oiWPuV1JOb DTSkpO9rR55DF4mA9QjXeJENvc2VZF47FsT//j0CfU9/6I2EhYoj7x9bHeoKng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705321878; a=rsa-sha256; cv=none; b=LBLtVsSj9HylFoPVow03GdKdLqE5vtM5f1xBe1QJ0zZmFJvdipDrlutvVOMYqamrwvnBbw xL8fTRP+0EYQfdVbm1SRmzAsU9SMYX/It8Pg06APbR3eS90ptDLqAPiifh7ydQxVv2nANz e/CALYHTLEGtAzGH4YzWZkeLFKX6+gfwcaiQXbAm9XRrse5tYH17tQjD0nGnbugkqbA21S CBsKUYuESJ/uJ4YS0854nRBaFgMhXw46NIq8HsYx0ofhcKXgtRGMfZsIo6+rf+QtLMhJKk LpGghSVPwh5uVtt8KkpIyCiBFEjEeMUPSvwKS+14VP6ccnnuO1h7QZsHRk7w1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=20230804 header.b=hE7ztW06; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" 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 1CF08778D3 for ; Mon, 15 Jan 2024 13:31:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPM77-0001XX-HM; Mon, 15 Jan 2024 07:30:49 -0500 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 1rPM75-0001Ww-DU for help-guix@gnu.org; Mon, 15 Jan 2024 07:30:47 -0500 Received: from smtp-8fac.mail.infomaniak.ch ([83.166.143.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPM72-00025F-7R for help-guix@gnu.org; Mon, 15 Jan 2024 07:30:47 -0500 Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TDBLh1XJtzMqQQb; Mon, 15 Jan 2024 12:30:36 +0000 (UTC) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4TDBLg6LHyzMpp9x; Mon, 15 Jan 2024 13:30:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org; s=20230804; t=1705321836; bh=Tjo4mnOhJ28JIVlfX/M072c/yIiKZMTR1+mj0hmkpUs=; h=References:Subject:From:To:In-Reply-To:Date:From; b=hE7ztW06fjtbqvHOzmLc3XZvCc4F2cSf6+SY3ZrM5DR0a/w8up8Vg3Ekh2XWfYaTl otoa8L8WkZn4HQ8TBI5inGKJyG3MZUKmtnqItJixJBRLpV0I+wGmpPeniznBRLqVlq NOXAicwFI2x9/R9SyyBk+cwqG8s5R7aNx/oK93cEtNwvOkaXFD37imJaZnplHkQbbe CnLLIbpVJPuoQ6/OG+geHh6TCkE7DzguEe2nY4eV8e3L7teLqnUR2SiEBbdo5wPuAu 4Qn6gIUS1ZP8OwiXpjQxkNaEkI97F+NvGbOm0Yw4bVp6vZ5R1SlX1Sg083lzCeY7wP GUoIJLEAFNnEA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <170531153920.2260.10889048706374450982@bioneland.org> <524660103.197884.1705320186122@office.mailbox.org> Subject: Re: "Command not found" when using `home-mcron-service` From: Tanguy LE CARROUR To: Help Guix , Nils Landt In-Reply-To: <524660103.197884.1705320186122@office.mailbox.org> Date: Mon, 15 Jan 2024 13:30:35 +0100 Message-ID: <170532183549.11028.8238107603508685851@bioneland.org> User-Agent: alot/0.10 X-Infomaniak-Routing: alpha Received-SPF: pass client-ip=83.166.143.172; envelope-from=tanguy@bioneland.org; helo=smtp-8fac.mail.infomaniak.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.75 X-Spam-Score: -9.75 X-Migadu-Queue-Id: 1CF08778D3 X-TUID: 25SpwNstbR3b Hi Nils, Quoting Nils Landt (2024-01-15 13:03:06) > > Tanguy LE CARROUR hat am 15.01.2024 10:38 CET ge= schrieben: > > > > ```scheme > > (gnu packages dav) ; vdirsyncer > > (gnu packages mail) ; notmuch > > ; [=E2=80=A6] > > (service home-mcron-service-type > > (home-mcron-configuration > > (jobs (list > > #~(job '(next-minute (range 0 60 5)) (string-append #$= notmuch "/bin/notmuch new")) > > #~(job '(next-hour) (string-append #$vdirsyncer "/bin/= vdirsyncer sync")))))) > > ``` > >=20 > > And now Mcron finds `notmuch` (and `vdirsyncer`), but=E2=80=A6 Notmuch = has hooks > > that depend on other commands and I now have the following error message > > in my logs: > >=20 > > ``` > > 2024-01-15 10:20:00 6198 /gnu/store/[=E2=80=A6]-notmuch-0.37/bin/notmuc= h new: [=E2=80=A6]/.config/notmuch/default/hooks/pre-new: line 3: mbsync: c= ommand not found > > ``` > >=20 > > `mbsync` is in my profile, but Mcron cannot find it. > > Do I have to declare all the required packages=E2=80=A6 somehow?! =F0= =9F=A4=94 >=20 > That sounds like it's related to this issue I reported: > https://issues.guix.gnu.org/65471 It looks like, indeed! > If I'm correct, setting the PATH environment variable in the mcron job > should fix it. You mean inside the `#~(job =E2=80=A6)`? Sorry, but=E2=80=A6 how would you = do that? =F0=9F=98=85 And this means that I would have to do it for every single job? =F0=9F=A4=94 Sounds suboptimal to me. I'll ping #65471 to see if a consensus has been reached. =F0=9F=A4=9E --=20 Tanguy