From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 12 15:13:58 2023 Received: (at submit) by debbugs.gnu.org; 12 Dec 2023 20:13:58 +0000 Received: from localhost ([127.0.0.1]:57635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD98f-0007gg-3u for submit@debbugs.gnu.org; Tue, 12 Dec 2023 15:13:58 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rD7er-0004xZ-TB for submit@debbugs.gnu.org; Tue, 12 Dec 2023 13:39:06 -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 1rD7eW-0001DB-8A for bug-guix@gnu.org; Tue, 12 Dec 2023 13:38:44 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD7eT-0001jW-Cj for bug-guix@gnu.org; Tue, 12 Dec 2023 13:38:43 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50bf898c43cso5717763e87.1 for ; Tue, 12 Dec 2023 10:38:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702406317; x=1703011117; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:from:to:cc:subject:date:message-id:reply-to; bh=V62GJQbCqX6shMmdG1VcWZhXGMBBfjYdvtInwqV9YRI=; b=m05n28PQGBKZ1tqDXUo/AbvDhxtj50oLFkhMekM1LqMR41vxC5B9ICSlUh2w2Oo9tn CO9g/VCtMiQ4bXT6KkOAR9SfVpnt0YvUo00KvAnlPg8frND1o887N0h1tLvL30gY3jWy E1A8PO7ooX2IZPNbWWiVPNhy5nZggtFNQk0sBleQrbi9Q3BNNmE9M08HRY2Tq3MIwwjc 3kTIvpRHVRwvYzizQFPyd4J1oZG8yMpWD3p+FpOVpCI0O5n9M/kVXO971M/2wRKZaFyB Ypzxnojy/WFQLA0Oi9lNo/Tq8ugUGOnoTr5SagiGNkzh35e22Ff/d3tdQ/L/9QQ3s+4m 2t1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702406317; x=1703011117; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:user-agent:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V62GJQbCqX6shMmdG1VcWZhXGMBBfjYdvtInwqV9YRI=; b=IkFgx7KK9+6xwbakdwbkL3I8u1vpPVRrFyn48rtrvsj5yA5Su/CCQnLSPcQwLUJdtq IyVG6O/c9Ifz/aos/ebDgSZV/keTtcGsgdr1dzYPVo6OKct5Yu505Ty0yL/p4jlHaSLS x5hZ0xcb4VT/ZlAhF6n4KMslNZ6wJfHF544UBoKxlE0gNU50Mn6uUwDchfwjydB37rES goKUUJrXy0wQGypiIYqq/eV1Vrv1f7zAaJ3BAFax0erpHhUdRjE9ae1rIvakCm3cEMZG QIirLeTwWN/5dGL6TVeTGX0mJUffURiSGCk7XYO4YG5/EgOqIMT12gmHzQleNQfSxn9t vrSQ== X-Gm-Message-State: AOJu0Yx9wDwHg5BgkRrFq8x5CxqWHPJPJY0uD6J6ijJ5jF7pO5SXFYWB SMCcT6cBCdhdFcrbo7G6CaRYtP6Drnw= X-Google-Smtp-Source: AGHT+IE1ull7XGs5p2PrNfBw7TCfyGh7fBP05323EekWr+vn8xrYQF9XYZk2V63rAI9WGsEuO/90mA== X-Received: by 2002:a05:6512:1284:b0:50b:f078:773f with SMTP id u4-20020a056512128400b0050bf078773fmr2512507lfs.59.1702406316408; Tue, 12 Dec 2023 10:38:36 -0800 (PST) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id u10-20020a05651206ca00b0050c0beaba37sm1409861lff.154.2023.12.12.10.38.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 10:38:35 -0800 (PST) User-agent: mu4e 1.10.8; emacs 30.0.50 From: Lars Rustand To: bug-guix@gnu.org Subject: Shepherd is not able to run simple networked programs as services Date: Tue, 12 Dec 2023 18:43:09 +0100 Message-ID: <877clje05x.fsf@yoga.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x12b.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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 12 Dec 2023 15:13:51 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. I have read all the relevant sections of the manual and looked at similar shepherd services in the source code, but I can't find anything that I am missing in my services. I am either missing something obvious here or shepherd is doing something weird that messes up these programs. Here is my service definition for offlineimap: --8<---------------cut here---------------start------------->8--- (define-module (lrustand services offlineimap) #:use-module (gnu) #:use-module (gnu services) #:use-module (gnu packages mail) #:use-module (gnu services shepherd) #:use-module (gnu services configuration) #:use-module (guix gexp) #:use-module (guix records) #:use-module (ice-9 curried-definitions) #:use-module (gnu home services) ;; For the 'home-shepherd-service-type' mapping. #:use-module (gnu home services shepherd) #:export (offlineimap-configuration offlineimap-configuration? offlineimap-configuration-log-file offlineimap-configuration-pid-file offlineimap-shepherd-service offlineimap-service-type home-offlineimap-service-type)) (define-configuration/no-serialization offlineimap-configuration (pid-file (string "/var/run/offlineimap.pid") "Where to store the PID file.") (config-file (string "/home/lars/.config/offlineimap/config") "Configuration file to use.") (log-file (string "/home/lars/offlineimap.log") "File where =E2=80=98offlineimap=E2=80=99 writes its log to.") (user (string "lars") "") (extra-options (list-of-strings '()) "This option provides an =E2=80=9Cescape hatch=E2=80=9D for the user to = provide arbitrary command-line arguments to =E2=80=98offlineimap=E2=80=99 as a list= of strings.") (home-service? (boolean for-home?) "")) (define offlineimap-shepherd-service (match-record-lambda (pid-file config-file log-file user extra-options home-service?) (list (shepherd-service (provision '(offlineimap)) (documentation "") (requirement (if home-service? '() '(networking user-processes))) (start #~(make-forkexec-constructor (list (string-append #$offlineimap "/bin/offlineimap") #$@extra-options "-c" #$config-file "-l" #$log-file) #:user #$user #:environment-variables (list (string-append "HOME=3D" (passwd:dir (getpw #$us= er)))) #:log-file #$log-file #:pid-file #$pid-file)) (stop #~(make-kill-destructor)) (one-shot? #f) (respawn? #t))))) (define offlineimap-service-type (service-type (name 'offlineimap) (extensions (list (service-extension shepherd-root-service-type offlineimap-shepherd-service))) (default-value (offlineimap-configuration)) (description "Synchronize remote IMAP mail with local Maildir."))) (define home-offlineimap-service-type (service-type (inherit (system->home-service-type offlineimap-service-type)) (default-value (for-home (offlineimap-configuration))))) --8<---------------cut here---------------end--------------->8--- And here is my service definition for davmail: --8<---------------cut here---------------start------------->8--- (define-module (lrustand services davmail) #:use-module (gnu) #:use-module (gnu services) #:use-module (gnu packages mail) #:use-module (gnu services shepherd) #:use-module (gnu services configuration) #:use-module (guix gexp) #:use-module (guix records) #:use-module (ice-9 curried-definitions) #:use-module (gnu home services) ;; For the 'home-shepherd-service-type' mapping. #:use-module (gnu home services shepherd) #:export (davmail-configuration davmail-configuration? davmail-configuration-log-file davmail-configuration-pid-file davmail-shepherd-service davmail-service-type home-davmail-service-type)) (define-configuration/no-serialization davmail-configuration (pid-file (string "/var/run/davmail.pid") "Where to store the PID file.") (config-file (string "/home/lars/.config/davmail/davmail.properties") "Configuration file to use.") (log-file (string "/home/lars/davmail.log") "File where =E2=80=98davmail=E2=80=99 writes its log to.") (extra-options (list-of-strings '()) "This option provides an =E2=80=9Cescape hatch=E2=80=9D for the user to = provide arbitrary command-line arguments to =E2=80=98davmail=E2=80=99 as a list of = strings.") (home-service? (boolean for-home?) "")) (define davmail-shepherd-service (match-record-lambda (pid-file config-file log-file extra-options home-service?) (list (shepherd-service (provision '(davmail)) (documentation "") (requirement (if home-service? '() '(user-processes))) (start #~(make-forkexec-constructor (list (string-append #$davmail "/bin/davmail") #$@extra-options "-c" #$config-file) #:log-file #$log-file #:pid-file #$pid-file)) (stop #~(make-kill-destructor)) (one-shot? #f) (respawn? #t))))) (define davmail-service-type (service-type (name 'davmail) (extensions (list (service-extension shepherd-root-service-type davmail-shepherd-service))) (default-value (davmail-configuration)) (description "Gateway for Outlook mail to regular IMAP and SMTP"))) (define home-davmail-service-type (service-type (inherit (system->home-service-type davmail-service-type)) (default-value (for-home (davmail-configuration))))) --8<---------------cut here---------------end--------------->8--- Offlineimap fails with a socket error: --8<---------------cut here---------------start------------->8--- 2023-12-12 19:34:33 2023-12-12 19:34:33 Traceback: 2023-12-12 19:34:33 File "/gnu/store/g2231vkzbnncyj72085n1ylkh8hq16lm-off= lineimap-8.0.0/lib/python3.10/site-packages/offlineimap/accounts.py", line = 298, in syncrunner 2023-12-12 19:34:33 self.__sync() 2023-12-12 19:34:33 File "/gnu/store/g2231vkzbnncyj72085n1ylkh8hq16lm-off= lineimap-8.0.0/lib/python3.10/site-packages/offlineimap/accounts.py", line = 374, in __sync 2023-12-12 19:34:33 remoterepos.getfolders() 2023-12-12 19:34:33 File "/gnu/store/g2231vkzbnncyj72085n1ylkh8hq16lm-off= lineimap-8.0.0/lib/python3.10/site-packages/offlineimap/repository/IMAP.py"= , line 681, in getfolders 2023-12-12 19:34:33 imapobj =3D self.imapserver.acquireconnection() 2023-12-12 19:34:33 File "/gnu/store/g2231vkzbnncyj72085n1ylkh8hq16lm-off= lineimap-8.0.0/lib/python3.10/site-packages/offlineimap/imapserver.py", lin= e 683, in acquireconnection 2023-12-12 19:34:33 e.args[0][:35] =3D=3D 'IMAP4 protocol error: socket= error:': 2023-12-12 19:34:33 --8<---------------cut here---------------end--------------->8--- And the davmail service fails with: --8<---------------cut here---------------start------------->8--- 2023-12-12 19:01:01 openjdk version "21" 2023-09-19 2023-12-12 19:01:01 OpenJDK Runtime Environment (build 21+-adhoc.nixbld.sou= rce) 2023-12-12 19:01:01 OpenJDK 64-Bit Server VM (build 21+-adhoc.nixbld.source= , mixed mode, sharing) 2023-12-12 19:01:01,734 DEBUG [main] davmail.DavGateway - Start DavMail in= server mode 2023-12-12 19:01:01 2023-12-12 19:01:01,734 DEBUG [main] davmail.DavGateway= - Start DavMail in server mode 2023-12-12 19:01:01,759 INFO [main] davmail - DavMail Gateway 6.2.0-3464 = listening on SMTP port 1025 IMAP port 1143 CALDAV port 1080 LDAP port 1389 2023-12-12 19:01:01 2023-12-12 19:01:01,759 INFO [main] davmail - DavMail= Gateway 6.2.0-3464 listening on SMTP port 1025 IMAP port 1143 CALDAV port = 1080 LDAP port 1389 2023-12-12 19:01:01,828 DEBUG [CheckRelease] davmail.http.HttpClientAdapter= - GET https://davmail.sourceforge.net/version.txt 2023-12-12 19:01:01 2023-12-12 19:01:01,828 DEBUG [CheckRelease] davmail.ht= tp.HttpClientAdapter - GET https://davmail.sourceforge.net/version.txt 2023-12-12 19:01:01,849 DEBUG [CheckRelease] davmail.http.DavGatewaySSLSock= etFactory - createSocket davmail.sourceforge.net 443 2023-12-12 19:01:01 2023-12-12 19:01:01,849 DEBUG [CheckRelease] davmail.ht= tp.DavGatewaySSLSocketFactory - createSocket davmail.sourceforge.net 443 2023-12-12 19:01:02,404 DEBUG [CheckRelease] davmail.DavGateway - DavMail = released version: 6.2.0-3464 2023-12-12 19:01:02 2023-12-12 19:01:02,404 DEBUG [CheckRelease] davmail.Da= vGateway - DavMail released version: 6.2.0-3464 2023-12-12 19:01:06,532 DEBUG [Shutdown] davmail - Stopping DavMail gateway 2023-12-12 19:01:06 2023-12-12 19:01:06,532 DEBUG [Shutdown] davmail - Sto= pping DavMail gateway 2023-12-12 19:01:06,539 INFO [Shutdown] davmail - DavMail gateway stopped 2023-12-12 19:01:06 2023-12-12 19:01:06,539 INFO [Shutdown] davmail - Dav= Mail gateway stopped --8<---------------cut here---------------end--------------->8--- They both seem to fail when opening an *outgoing* socket, but davmail seems to be able to start *listening* on several ports just fine. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 15 18:00:52 2023 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 To: bug-guix@gnu.org Subject: Re: Shepherd is not able to run simple networked programs as services 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 17 17:02:14 2023 Received: (at 67802) by debbugs.gnu.org; 17 Dec 2023 22:02:14 +0000 Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDC-0005Ln-5s for submit@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDA-0005LY-Hb for 67802@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:12 -0500 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 1rEzD3-0002RT-Ox; Sun, 17 Dec 2023 17:02:05 -0500 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=MzFnIJYDlUVJCxhOHoZID3WI04R0h5IaOePEqDA7v/Q=; b=V16z9vJeseUhX0Lo5Rsm YCEw1KVg6P76OQG2sHd1XM+nrXArkihTXQfeO0g/nw45CnZilXwyWpEihw+5kl9g3JnwE25niuL8R QhWP9h6KW36GJEr0ID1dXUAn+1RM/Jq9IRDh71DX1aXOec2HFow3dt0LtCniBIvgd/wNusOcreQil OBkrNdrLpB81LLZ9X49xRcrcRJzrguP2t3U4f6Lv/xdQvyTq6SNoqsfzP6Yid7nav23b7ChTgjD9E 22YB2Ui+pNTJbnfAMniriydAMMXdGhVdm6CzRVHSoJD+96J/tkamu/xiwYjXPKfr9L/EFFEJJ+l4P zNoDXpBIrvFO+w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Lars Rustand Subject: Re: bug#67802: Shepherd is not able to run simple networked programs as services In-Reply-To: <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> (Lars Rustand's message of "Fri, 15 Dec 2023 19:00:45 +0100") References: <877clje05x.fsf@yoga.mail-host-address-is-not-set> <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> Date: Sun, 17 Dec 2023 23:02:03 +0100 Message-ID: <87le9sqyhw.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67802 Cc: 67802@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Lars Rustand skribis: > 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. Good that you found the issue! I improved logging for this particular case as a result of this report: https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=3Dace4a3b2dba43= b826640d5c1ca970f9040d27416 Thanks for reporting it, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 17 17:02:22 2023 Received: (at control) by debbugs.gnu.org; 17 Dec 2023 22:02:22 +0000 Received: from localhost ([127.0.0.1]:59110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDK-0005M8-GA for submit@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEzDI-0005Lv-4E for control@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:20 -0500 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 1rEzDB-0002VB-By for control@debbugs.gnu.org; Sun, 17 Dec 2023 17:02:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=/FhMkKFfynTooG3V56xDRq3+tyDtYF2+D0+60UiD6+Q=; b=jZ2hJkLtZLeNFZ DQCU9taSUqAR1IyyoFJ9KtZhtuHxwoeOgI5Yw7WMtFParPXp/0YOkZlDJ7fUtJ/l7GeDfmKZhoTeZ dVxyYRvQAGbYMV099Snj3GN35wZRHGiLGS4hGHcC4owuuySreKgEokIdsBbStXIhnN4ut9GsZ6j49 wk+RR1mg04L7NJ7IHjoOnawwaRefRzutsxe86Sd1gBJrf0P4bHx/HfwM6YFAKu5SBfHGXSheCkmO+ CnETJ9GCbHsUPxNVIaHH7CGhHFVAdGB7UHUp+GXuc+O8AEbtgpTd3TWzGceCJFRUulz/673ay+5JD Hi9DdILYGNWjXxZLqDjw==; Date: Sun, 17 Dec 2023 23:02:10 +0100 Message-Id: <87jzpcqyhp.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #67802 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 67802 notabug close 67802 quit From unknown Tue Jun 17 01:43:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 15 Jan 2024 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator