From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8AqpGsTafGVf9gAAkFu2QA (envelope-from ) for ; Sat, 16 Dec 2023 00:01:24 +0100 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 mE5VFMTafGU/YgAAe85BDQ (envelope-from ) for ; Sat, 16 Dec 2023 00:01:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gST6VUgV; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702681284; 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: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=XVxDCL+HLZxyG1HrSg1Reh2SSkz4idxHNd5X9n03jKg=; b=LWaFanVO3LTmIda3z0+gNNpfbrOIaXKCk85AjZN0vJgyyb67C3WGMvBH42g8fMUA+Vh9fd PvVT80lBRzldcks8AjFhvY6apCEREfeIkUyx0nD38vcdNNlVB3O76KJXUuzR+BsEY+0ryR wsPPvrDQ0YuPgXueofLnjIveBs3epfIrOZyrF/WOfR0aa3DCQgxXWRuipfv9RhP8eo6pb9 Ic+Snqq+X10gJAy0/wcP9WjK+LVXdyQiVdC+Xjo1Bd4icDJqJLM9CwRpCZEvwdnpyc2d47 3JTi+yuOYjzgXDzdpN7R0mlVd0D5APg1k5AEvn5oJS7zLwCArTUj78WVF/fLXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gST6VUgV; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702681284; a=rsa-sha256; cv=none; b=pjsMPOCpCowUpx5ZQa8UUQF8U4DuRg9pmY3K0pKnG5MGYYbER70nHGS/sIfzVvmU127N/B aP7glB5376sx+hdZEeWtWS8hKGC1zo0INCAYklpyOi1fBHI45xM7qT1Ifuf/vp7LQz4ilO 0RCYW6HwLNowftJlT/4Q0R+/9szaZKclH1qS4J+m8yEUMCZ6argdS48K+exbY/SFHupaU+ DeAmBQI+Fg22jR/sNAJu3xGQijAkftbhc1enboD+2HMVnxGWMlqwu+kGR5n8CLJaak/USv AGBzYRvwTrtHzzAgD6BneTfsC2k0gwARqJQy3RTA+0jHLTsrGLbp3OYUxA10wQ== 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 285E650887 for ; Sat, 16 Dec 2023 00:01:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEHB1-0005OM-NJ; Fri, 15 Dec 2023 18:01:03 -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 1rEHB0-0005O6-Kx for bug-guix@gnu.org; Fri, 15 Dec 2023 18:01:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEHB0-0007J1-77 for bug-guix@gnu.org; Fri, 15 Dec 2023 18:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rEHB0-0001fe-CR for bug-guix@gnu.org; Fri, 15 Dec 2023 18:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#67802: Shepherd is not able to run simple networked programs as services Resent-From: Lars Rustand Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 15 Dec 2023 23:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67802 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 67802@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17026812525366 (code B ref -1); Fri, 15 Dec 2023 23:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2023 23:00:52 +0000 Received: from localhost ([127.0.0.1]:53726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEHAp-0001NM-Qv for submit@debbugs.gnu.org; Fri, 15 Dec 2023 18:00:52 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rECjB-0003Gi-OA for submit@debbugs.gnu.org; Fri, 15 Dec 2023 13:16:02 -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 1rECj2-0006HC-8S for bug-guix@gnu.org; Fri, 15 Dec 2023 13:15:52 -0500 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rECj0-0000Tp-Is for bug-guix@gnu.org; Fri, 15 Dec 2023 13:15:51 -0500 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50c0f6b1015so1080891e87.3 for ; Fri, 15 Dec 2023 10:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702664148; x=1703268948; darn=gnu.org; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:from:to:cc:subject:date:message-id:reply-to; bh=XVxDCL+HLZxyG1HrSg1Reh2SSkz4idxHNd5X9n03jKg=; b=gST6VUgV7qw4+eedEMvudWvnnW0Yz8CS8Jp49n3fImyC3tr3S+PDPbzAFY+nqqerxW Ifrqb6qqfF7HUbypYKAv1A41/eSnyl64nkWNrXtgS40B5V3F2UoqNUUdNSyJ4odNlzs8 DJVdSCgdeKfBG52UhQ4KyC457pxLwFpKFWndV1d772wV4sGK7utIQT6SJiLt9B3jjQzb A+iMLUNMfs5gT8LuykLVnGbdI5rSDfYf9oHztxf6sj7eVayGu2xs2UG5mFbGmyUsUU4/ zkgP+vyHFLKH94Dz3W0nR3M6mBgEct4H72ZMitI5akTguZJRHQmw33BTs+7UynNxb8UW uBdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702664148; x=1703268948; h=mime-version:message-id:in-reply-to:date:subject:to:from:user-agent :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XVxDCL+HLZxyG1HrSg1Reh2SSkz4idxHNd5X9n03jKg=; b=iEFLvE8YNh65+v9YMtXNmf+4/oJ8NWQX+fqWPKzAFriRcn68fIu5JcyU94Ktqr18XE LaSTxSD2ENAIBAE20gCWbLhJJCvIB757UXYSqhV1eU0MXlMSIPKQiCrCtimhjxbbxs/0 0EHoAd3SnVIPYCXcHp6C1nLbjZTRyuLx3cG7nIKoK4sXYQUbOoZ9hzzpnFCGvRjYLD+x HwO8s9WZxVc6Du19L9QBc2iFUwN5+6X9q8tL5OH6zXZfh8JStcPNqKgviEdHSO7Vuz5N 7ftqEdYFM+WPsRx/g9qWDkaHj4I1iO33FjpsNT8K621NBVxoXW48Y49Wtp1pDgav5nDi p+5w== X-Gm-Message-State: AOJu0Yy1Lip9wF/SXwOV+cV7XScR0gyHac1ef+VyiC03Et/lEBWHRRP0 Aptk8jJfXbeoVaUCJWp2M+ro2cBJjHo= X-Google-Smtp-Source: AGHT+IHNE5Po1DfrqaEm1Dkk/8n7FN3JeFItHV7WmzkxZ/D3FYBmN710lgXTMSZrIjbxQi54+qLf8Q== X-Received: by 2002:a19:ee07:0:b0:50c:33b:1621 with SMTP id g7-20020a19ee07000000b0050c033b1621mr5115123lfb.45.1702664147914; Fri, 15 Dec 2023 10:15:47 -0800 (PST) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id m5-20020ac24285000000b0050bf3ced3f8sm2203676lfh.282.2023.12.15.10.15.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 10:15:46 -0800 (PST) References: <877clje05x.fsf@yoga.mail-host-address-is-not-set> User-agent: mu4e 1.10.8; emacs 30.0.50 From: Lars Rustand Date: Fri, 15 Dec 2023 19:00:45 +0100 In-reply-to: <877clje05x.fsf@yoga.mail-host-address-is-not-set> Message-ID: <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x130.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Fri, 15 Dec 2023 18:00:51 -0500 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.35 X-Spam-Score: -3.35 X-Migadu-Queue-Id: 285E650887 X-TUID: X3NOoP+CFvsK Lars Rustand writes: > Hello, I have created two very simple shepherd services for two > different mail programs (offlineimap and davmail). Both of the programs > are able to run without problem when ran from the commandline, but both > of them fail with networking related errors when I try to run them as > shepherd services. ... > They both seem to fail when opening an *outgoing* socket, but davmail > seems to be able to start *listening* on several ports just fine. So, I figured this out. It had nothing to do with networking even though it looked like it. The problem was that I had cargo cult-copied a #:pid-file parameter from another service, believing that this was just a path were Shepherd could create a pid-file for the service, but Shepherd was in fact expecting the program to create the pid-file. So when the program did not create this pid-file then Shepherd killed the program. So the original bug I reported is in fact not a bug at all and can be closed. However, the error handling in Shepherd could be improved in order to make it more clear what is happening.