From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 22:58:31 2020 Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 03:58:31 +0000 Received: from localhost ([127.0.0.1]:46238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4zSQ-0004TE-Pt for submit@debbugs.gnu.org; Thu, 20 Feb 2020 22:58:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:47768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4zSP-0004T5-Bp for submit@debbugs.gnu.org; Thu, 20 Feb 2020 22:58:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55418) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4zSN-00037C-Hl for bug-guix@gnu.org; Thu, 20 Feb 2020 22:58:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4zSM-0006Sr-C0 for bug-guix@gnu.org; Thu, 20 Feb 2020 22:58:27 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:41653) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j4zSL-0006R8-QB for bug-guix@gnu.org; Thu, 20 Feb 2020 22:58:26 -0500 Received: by mail-qk1-x72e.google.com with SMTP id d11so673732qko.8 for ; Thu, 20 Feb 2020 19:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=FdG9BFVpHMAgmDbj/ofpq7KEDveuKNncqIfT/ngZuwg=; b=G4MBwVbgCGKeXv7eEQn5xNeP5aGITEj8wmv77IvgVIXcSWXvnQi6vHJibNjtLJXQ4G aa13TSyhHeHPZYtQCXCq7jfWvfxYwv+QWXC/aOuSs9dM6kQ3dcJEVhSC0//ZYPCAuZug O48WRJeHNAFEdJLy00QXFH84VGmcImUPHgQAWoKaiKvt5K3r2VXXB84tjtCljwJD8gyF 5Vdwd69NW7C8kF7wXd2VHOTya5MryKCvCaUkhWlV+La2eQ8BqPgHWvggR4lw6Jc+BuHg FK4RBK1eBQzs1LNKYQMS5XINK/8+cS2dch1PAtR4b/26ZgNMR/CIu2h5CNOdlAjjkYw8 BTag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=FdG9BFVpHMAgmDbj/ofpq7KEDveuKNncqIfT/ngZuwg=; b=hi8zJ0ZiJuRFAz58llaWd0WbPEjPX1q+gWpjX1oBdxb4svV/+8G94M7NyJzm3NFHuq XoDxtFuwsZRuJ7Rnb3vbtMN0tVavX70pJwvvupFb9+U+24yAE2w54p7IiBuBySTRaqv6 9nSZhc2VPqR2j41aeUcmWmwVqxNSKJG+VorJEeY6CfjMiJ3curlME18b9AQIfA4Jpjbf hsJNaTenEvhySjppTmeRDn378QUYKfNAipb6kpJZqIeTjAGc9Su/F6QWN7Rt2Z+JaN/3 QdKuhXyKkZM9TdiJxkyNY1loWLjZWQ2CYFXsnGbp2GqMI8GOf16EOwlHVX4IL9l057iw t9rA== X-Gm-Message-State: APjAAAVDYuxDGuY8+jaKK/zUTjI88yvEzimtlB6wERLOVF3ZLZlGKxyC sp2ERA5DYYKj/s29Bg8IN6X0Pfy4oa8= X-Google-Smtp-Source: APXvYqwuAqxIMVVTSNwMeW4FruQH53xsHoanQeyU6CTOaLwq4Mj7HiaOfmUlb70/7lCNq2aD9Ai5jQ== X-Received: by 2002:a05:620a:47:: with SMTP id t7mr29853109qkt.432.1582257504726; Thu, 20 Feb 2020 19:58:24 -0800 (PST) Received: from apteryx (dsl-151-135.b2b2c.ca. [66.158.151.135]) by smtp.gmail.com with ESMTPSA id o17sm889678qtq.93.2020.02.20.19.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 19:58:24 -0800 (PST) From: Maxim Cournoyer X-Google-Original-From: Maxim Cournoyer To: bug-guix Subject: nfs-service-type broken: rpc.mountd respawns too quickly Date: Thu, 20 Feb 2020 22:58:23 -0500 Message-ID: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72e X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The rpc.mountd service, one of the required services for nfs-service-type, respawns the process quickly until disabled. Opening the service file, /ssh:hurd:/gnu/store/qq1dd9rqa2svxhbkpiq6bkpg6dyxwzqb-shepherd-rpc.mountd.scm: Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maxim.cournoyer[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.17 listed in list.dnswl.org] 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit 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.7 (/) The rpc.mountd service, one of the required services for nfs-service-type, respawns the process quickly until disabled. Opening the service file, /ssh:hurd:/gnu/store/qq1dd9rqa2svxhbkpiq6bkpg6dyxwzqb-shepherd-rpc.mountd.scm: --8<---------------cut here---------------start------------->8--- (eval-when (expand load eval) (let ((extensions (quote ())) (prepend (lambda (items lst) (let loop ((items items) (lst lst)) (if (null? items) lst (loop (cdr items) (cons (car items) (delete (car items) lst)))))))) (set! %load-path (prepend (cons "/gnu/store/wy6fvwp3dfrp9frckdascrrb9rvn3h3g-module-import" (map (lambda (extension) (string-append extension "/share/guile/site/" (effective-version))) extensions)) %load-path)) (set! %load-compiled-path (prepend (cons "/gnu/store/xd4lwx10ljn902712sphac3k0k97g1vy-module-import-compiled" (map (lambda (extension) (string-append extension "/lib/guile/" (effective-version) "/site-ccache")) extensions)) %load-compiled-path)))) (begin (use-modules (shepherd service) (oop goops) (guix build utils) (guix build syscalls)) (make #:docstring (quote "Run the NFS mountd daemon.") #:provides (quote (rpc.mountd)) #:requires (quote (rpc.statd)) #:one-shot? (quote #f) #:respawn? (quote #t) #:start (make-forkexec-constructor (list "/gnu/store/c7kpr1jh5z3mrkz0yw9am86851y57cq7-nfs-utils-2.4.2/sbin/rpc.mountd" "--debug" "all")) #:stop (make-kill-destructor) #:actions (make-actions))) --8<---------------cut here---------------end--------------->8--- The process is launched with the equivalent of: $ /gnu/store/c7kpr1jh5z3mrkz0yw9am86851y57cq7-nfs-utils-2.4.2/sbin/rpc.mountd \ --debug all Which doesn't print any output, but returns cleanly. The process is daemonized and runs in the background. Attempting the equivalent using Shepherd yields the same: scheme@(guix-user)> ,m (shepherd service) ;;; WARNING: loading compiled file /run/current-system/profile/lib/guile/2.2/site-ccache/shepherd/service.go failed: ;;; In procedure load-thunk-from-memory: incompatible bytecode kind [...] scheme@(shepherd service)> (make-forkexec-constructor (list "/gnu/store/c7kpr1jh5z3mrkz0yw9am86851y57cq7-nfs-utils-2.4.2/sbin/rpc.mountd" "--debug" "all")) $1 = # scheme@(shepherd service)> ($1) $2 = 19655 We get back the PID of the rpc.mountd process, and it lives on. So, I wonder what is causing Shepherd to respawn the process? Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 06:05:55 2020 Received: (at 39708) by debbugs.gnu.org; 22 Feb 2020 11:05:55 +0000 Received: from localhost ([127.0.0.1]:48599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5Sbb-0003oy-0w for submit@debbugs.gnu.org; Sat, 22 Feb 2020 06:05:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5SbZ-0003ol-6e for 39708@debbugs.gnu.org; Sat, 22 Feb 2020 06:05:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5SbT-0001II-Fs; Sat, 22 Feb 2020 06:05:48 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42420 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j5Sb9-0001eC-2x; Sat, 22 Feb 2020 06:05:43 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> Date: Sat, 22 Feb 2020 12:05:25 +0100 In-Reply-To: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> (Maxim Cournoyer's message of "Thu, 20 Feb 2020 22:58:23 -0500") Message-ID: <87a75azxu2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.7 (-) Hi, Maxim Cournoyer skribis: > The rpc.mountd service, one of the required services for > nfs-service-type, respawns the process quickly until disabled. Does /var/log/messages contain hints? Is rpc.statd running? Could it be that all these services need to depend on =E2=80=98loopback=E2= =80=99? No answers, but a lot of questions. :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 22:19:44 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 03:19:44 +0000 Received: from localhost ([127.0.0.1]:47810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAmTg-0007Ry-Fb for submit@debbugs.gnu.org; Sat, 07 Mar 2020 22:19:44 -0500 Received: from mail-qv1-f41.google.com ([209.85.219.41]:45710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAmTf-0007Rm-3k for 39708@debbugs.gnu.org; Sat, 07 Mar 2020 22:19:43 -0500 Received: by mail-qv1-f41.google.com with SMTP id du17so2261874qvb.12 for <39708@debbugs.gnu.org>; Sat, 07 Mar 2020 19:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Vx5mYqZPpCNvUdE7Clrs/G+l9O5XsivqCLsyZeUXMDM=; b=EDO7sc9b3vqCyNr7bXgyZNY53GhuityZqoLbipzisFg5WVzg1qBWhjQUk4onekKgXN PIFqb8o0SQhh02GbWg72fBBGAgodJb+o7nS6iOIoDV80JnR+zMjKJwAGgH2+o8se83/c nXw78Uwkd1rzR6gtzl/vIf/w9bdWv9fEJ7fOWck6FnoOJt9GfiPhHi6M4tod5C5nT/Fz 1SQ7Dh+VsySCQFVej1ArGTaiHFnZu0ktDtv3MrImQb+wZc1Z3sjZBe4Hbnh0w8c6e4/P 2jRgp4Rxi+lqaYsAweT3UzLiWlKQIoUcGOWXjuqMyWy+Uwq3bHqkyThxr0+cxvdDIkdt z0gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Vx5mYqZPpCNvUdE7Clrs/G+l9O5XsivqCLsyZeUXMDM=; b=g2XtvJTPLo1uSb1iMJBlLEoIjlZ/f10Ht0grOHyWNsaBMnWfhSmVEV+bDCUcBs2Nz+ J2I6k9PXFk3jM2jRVCm+n34YWqeAjg3GLGiaR1MT9ZIkd+DdsY0fOq8iVwBa6ynQR1Ur I6FQif2CJN8GKK02d1ZGh4C14sjSWHd/RS89YsxpVlPV6fyOah7c+QpvGqNJLMTOoh1K nq9epmKprdnKak/2i76q2vOqfdbI5n94KMOzugcqFhnah8T6Pl4T6Op0z5Ova3AEpoSY hJKiyrNgrdc4y+qxmKUiqDhdh1BdUWgaAkSSaNjLVaZSWdiXmyhuWND2q8mNxIhlEJxY hTOw== X-Gm-Message-State: ANhLgQ38vix2XkiBYNZN6zUslgvvca32kYIBudnfCnBC2/I1Q4AABLyX QEV+sN6XhG9LRRAur8jYK9iSBib6 X-Google-Smtp-Source: ADFU+vtJLnirkdeI55u6/3nF48nLF2/NgFV67QfOBhVczS6c+jrfyKIpm5+Oe+SKxLhljadjsxyWcA== X-Received: by 2002:a05:6214:693:: with SMTP id r19mr9519063qvz.250.1583637577368; Sat, 07 Mar 2020 19:19:37 -0800 (PST) Received: from apteryx ([207.35.95.105]) by smtp.gmail.com with ESMTPSA id g2sm19896412qkb.27.2020.03.07.19.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 19:19:36 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> Date: Sat, 07 Mar 2020 22:19:35 -0500 In-Reply-To: <87a75azxu2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 22 Feb 2020 12:05:25 +0100") Message-ID: <8736aj7cu0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.0 (-) Hello Ludovic! Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> The rpc.mountd service, one of the required services for >> nfs-service-type, respawns the process quickly until disabled. > > Does /var/log/messages contain hints? herd restart nfs Service nfs has been stopped. Service rpc.mountd is currently disabled. Service nfs depends on rpc.mountd. Service nfs could not be started. root@hurd ~# herd stop rpc.mountd root@hurd ~# herd enable rpc.mountd Enabled service rpc.mountd. root@hurd ~# herd status rpc.mountd Status of rpc.mountd: It is stopped. It is enabled. Provides (rpc.mountd). Requires (rpc.statd). Conflicts with (). Will be respawned. Last respawned on Sat Mar 07 21:56:43-0500 2020. root@hurd ~# herd restart nfs Service nfs is not running. Service rpc.mountd has been started. Service nfs has been started. And then, in /var/log/messages: Mar 7 21:56:4--8<---------------cut here---------------start------------->= 8--- Mar 7 22:06:45 localhost shepherd[1]: Service nfs has been stopped.=20 Mar 7 22:06:45 localhost shepherd[1]: Service rpc.mountd is currently disa= bled.=20 Mar 7 22:06:45 localhost shepherd[1]: Service nfs depends on rpc.mountd.=20 Mar 7 22:06:45 localhost shepherd[1]: Service nfs could not be started.=20 Mar 7 22:07:05 localhost shepherd[1]: Enabled service rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service nfs is not running.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost shepherd[1]: Service nfs has been started.=20 Mar 7 22:07:15 localhost rpc.mountd[25270]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Respawning rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost rpc.mountd[25272]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Respawning rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost rpc.mountd[25274]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Respawning rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost rpc.mountd[25276]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Respawning rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost rpc.mountd[25278]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Respawning rpc.mountd.=20 Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been started.= =20 Mar 7 22:07:15 localhost rpc.mountd[25280]: Version 2.4.2 starting Mar 7 22:07:15 localhost shepherd[1]: Service rpc.mountd has been disabled= .=20 Mar 7 22:07:15 localhost shepherd[1]: (Respawning too fast.) --8<---------------cut here---------------end--------------->8--- > Is rpc.statd running? herd status rpc.statd Status of rpc.statd: It is started. Running value is 348. It is enabled. Provides (rpc.statd). Requires (rpcbind-daemon). Conflicts with (). Will be respawned. root@hurd ~# pidof rpc.statd 348 So, yes :-) > Could it be that all these services need to depend on =E2=80=98loopback= =E2=80=99? I don't think so, because attempting to restart those services in a state where the network is live and a loopback interface exists (127.0.0.1 pings) doesn't change the outcome. Or am I misunderstanding something? An interesting fact is that every time 'herd restart rpc.mountd' is run, the number of running processes of rpc.mountd goes up: --8<---------------cut here---------------start------------->8--- herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.mountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 6 root@hurd ~# herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.m= ountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 12 root@hurd ~# herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.m= ountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 13 root@hurd ~# herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.m= ountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 19 root@hurd ~# herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.m= ountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 20 root@hurd ~# herd enable rpc.mountd && herd start rpc.mountd && pidof rpc.m= ountd | wc -w Enabled service rpc.mountd. Service rpc.mountd has been started. 26 --8<---------------cut here---------------end--------------->8--- So, to me it seems to be a problem with Shepherd: it erroneously thinks the process has died and restart it, while in reality it is still running fine. Running the rpc.mountd command manually doesn't exhibit any issue, as I mentioned in my original report. Thanks for the help! Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 22:41:15 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 03:41:15 +0000 Received: from localhost ([127.0.0.1]:47817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAmoV-0007z4-Eu for submit@debbugs.gnu.org; Sat, 07 Mar 2020 22:41:15 -0500 Received: from mail-qv1-f49.google.com ([209.85.219.49]:40474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAmoT-0007yr-VQ for 39708@debbugs.gnu.org; Sat, 07 Mar 2020 22:41:14 -0500 Received: by mail-qv1-f49.google.com with SMTP id u17so2871897qvv.7 for <39708@debbugs.gnu.org>; Sat, 07 Mar 2020 19:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wDu7rN5fLsQLytfUUFeWmkzRzVsY8omKgLQ0MiKIT+Y=; b=JbBD7O11dVQyZ8/WnBbK76XeIdsWcFYwRXYa4zb3/QmswJJc+Efy+vGlBZqmG3Mz83 mqwoTEfw1FKAN7YjWrAgFREPf7unfs16HhXkN1B1xuOXugW80Ue6L/bemj1KT8CjMcjB +D3ZAdUw2d5CrlXKdudl46EiQld+Vjtyu+3ET+/YgC/HJFpOrGJuTEkXc0UbtP6+zerj whLMMnIWt8O1NxVqkcl3E1WvO7bdbouCI6sltOf/orVzTuxAteOBL2Jm/UxCUjeCecju viy9FRGoXXVNOMzzM7fkN4lVaPkEbKuMJ6YE84PKAK6JB1rAyq0sNeuAVE7zVHsa1TvC vPnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wDu7rN5fLsQLytfUUFeWmkzRzVsY8omKgLQ0MiKIT+Y=; b=CK54/dnrGPnJ+xCNZ88O3RZojko9Sg5EZGMyrZoAWaeZ9sJ7+tk0+UNI5mBkdOQA3n tROS9ELuVUt1nn1Wl+83ReYpIeX6ivNPrr8HegW7bplzxHkrhbQl3Pr4sh3Sma7OvJK2 1Vfq823QoGYZvjLTKEoXQuYKT1VRreUuF+A2OD2xLkfuRfzI1wz6WDnPi6WEOB8E3I5p co/IS88TeuYgHvSJ1o1/zT50rl2DgIUqO8U9HMcSBRsym35iuELGH7rgdZ1ZbOEXvXh8 qzmlDlvPtk+aHYKxToaHRdBmNfQJkIsKf0RF+nj1N/eF3Upg9S5e/DkPXmCPBpXelL8y BPFQ== X-Gm-Message-State: ANhLgQ1mGs3k5QSmJxglX8+4+CBlxWohzTmnusfDGTKEegfUK6tJk/pp zQMH9z8yPppB5cyQZlYQBRrtPpHu X-Google-Smtp-Source: ADFU+vu/QByrws0dOEl00YXy1o23+5HGfZeuLA7F9ottMBOlSYIXgv+W35rjpZVx8uzoz82TwhmLHQ== X-Received: by 2002:a05:6214:b07:: with SMTP id u7mr9141347qvj.133.1583638868315; Sat, 07 Mar 2020 19:41:08 -0800 (PST) Received: from apteryx ([207.35.95.105]) by smtp.gmail.com with ESMTPSA id k66sm7514783qke.10.2020.03.07.19.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 19:41:07 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> Date: Sat, 07 Mar 2020 22:41:06 -0500 In-Reply-To: <87a75azxu2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 22 Feb 2020 12:05:25 +0100") Message-ID: <87y2sb5x9p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -2.5 (--) Hi again, Another note: Even with 'herd status rpc.mountd' reporting that it is stopped and disabled, and 'pidof rpc.mountd' showing 6 processes, the NFS service manages to work, at least for the very limited testing I've done. So, at least, it should be usable even though the Shepherd handling of rpc.mountd needs to be fixed. Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 23:03:53 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 04:03:53 +0000 Received: from localhost ([127.0.0.1]:47822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAnAP-0008Ui-B5 for submit@debbugs.gnu.org; Sat, 07 Mar 2020 23:03:53 -0500 Received: from mail-qt1-f178.google.com ([209.85.160.178]:41139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAnAN-0008UV-Pm for 39708@debbugs.gnu.org; Sat, 07 Mar 2020 23:03:52 -0500 Received: by mail-qt1-f178.google.com with SMTP id l21so4714610qtr.8 for <39708@debbugs.gnu.org>; Sat, 07 Mar 2020 20:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ooBiaEKrtB/bSRr4jypHcrGGY+p8Y9a939kEgFRmapU=; b=hy7nPJp5IxZtfLkNPGkggaIV1npGDuuYZg6JW3Aur124gRZbriDkNqfLUUESO8+7J5 nqspAoe8yzUxl0pCcZaq947s+ojFxjkCY5EY5S7xqVU+N5DzkR+guSZZ1ICQtPuS/Ck+ FticScyZFuCMPg/Zb2pVq5HABDmIi6wmgt2EPMOBboUBpa7ZibBoHPy/K3ROhtxSos8J WvEdlkHocRdYJeh8C1gVCO2IbLgaj6GUoNRj0D5QSfr0TnJVTnqdv100rE9lfIBLjEmO 0q7CCD0fUGciNbsi8qIRMaqy9Iery7kkhntC5O8+EjY4KkwecoGVe7MhaGUDgpOwHSoz 0WXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ooBiaEKrtB/bSRr4jypHcrGGY+p8Y9a939kEgFRmapU=; b=eSKmNft/ETTBkuFBQytdQAtwzmmMFu8UQu7X2hhNVZZM0tG9qRzjXB+Cwv5YskeR5F m487LxJWxWdC9j84bxFmT2AjuA80ZIHyTg0VnfRAWY3OBr6Gou/95GvtrRlZTrSDLML1 3wdy8mH5bBwp2gcrALrX6ITgpMfBlv8wAVatf69HMYmv/VNdOgeax7QrpFXn/Vv1drpp DGHnBqVRfKCj8Bds3nLKvciXIZ+x+MwRm2CxVBB3+Wed8CMHi3b0C9Qe2z3v7j8jw810 2q85ewCnOxxugy8vL80nJfonvHqx/b/f0njujrHpXTctclSd34nWy2bA39Oz5lIcZkDU +sQA== X-Gm-Message-State: ANhLgQ31hSM5rnTcm41jvHdE4d3bJ3y1UNjlfIebsmkeNSGPNV8GyyWd nFLoNCWCODqGBACl7MD+7+M02+OW X-Google-Smtp-Source: ADFU+vuZ41bVFKv2f/QxtbsBoSupO/T2PGZaIzGVVYx1mte8kWFS7GAQ66RmWZKPMvw7oTaCKJnj6Q== X-Received: by 2002:ac8:3ae6:: with SMTP id x93mr9469331qte.69.1583640226166; Sat, 07 Mar 2020 20:03:46 -0800 (PST) Received: from apteryx ([207.35.95.105]) by smtp.gmail.com with ESMTPSA id r20sm3400845qtt.6.2020.03.07.20.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 20:03:45 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> Date: Sat, 07 Mar 2020 23:03:44 -0500 In-Reply-To: <87y2sb5x9p.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 07 Mar 2020 22:41:06 -0500") Message-ID: <87tv2z5w7z.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.0 (-) I think I've gathered a clue! scheme@(guix-user)> ,m (shepherd service) scheme@(shepherd service)> (system "pidof rpc.mountd") 413 408 406 404 399 389 387 $1 = 0 scheme@(shepherd service)> (system "killall rpc.mountd") $2 = 0 scheme@(shepherd service)> (system "pidof rpc.mountd") $3 = 256 [...] scheme@(shepherd service)> (make-forkexec-constructor (list "/gnu/store/qyz1bncxlkxv44c03sva2akfsyqzkzh5-nfs-utils-2.4.2/sbin/rpc.mountd" "--debug" "all")) $5 = # scheme@(shepherd service)> ($5) $6 = 816 scheme@(shepherd service)> (system "pidof rpc.mountd") warning: 'waitpid' -1 failed unexpectedly: No child processes 817 warning: 'waitpid' -1 failed unexpectedly: No child processes $7 = 0 [...] scheme@(shepherd service)> (system "pgrep rpc.mountd") 817 warning: 'waitpid' -1 failed unexpectedly: No child processes $10 = 0 scheme@(shepherd service)> That warning thrown by Guile/Shepherd is our clue. To be continued :-). Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 23:27:40 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 04:27:40 +0000 Received: from localhost ([127.0.0.1]:47828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAnXQ-0000ad-Ae for submit@debbugs.gnu.org; Sat, 07 Mar 2020 23:27:40 -0500 Received: from mail-qk1-f182.google.com ([209.85.222.182]:40811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAnXP-0000aR-99 for 39708@debbugs.gnu.org; Sat, 07 Mar 2020 23:27:39 -0500 Received: by mail-qk1-f182.google.com with SMTP id m2so6241094qka.7 for <39708@debbugs.gnu.org>; Sat, 07 Mar 2020 20:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=NDrJ7DcJDro0dTFCK8OLz4hP+6/HlbwCIO8kriYA+5w=; b=oi+IPTkKgkm5zLd4xf03aAL+BZy4SCMVAXzqrD/SH5rNwkyayAtUVEQI6hxItSbsJr KF1UKtwL5dOu9G9B4sR/loy/2jFfNfKRilkM3JaW1BugdD868ZRM1HYxIlgCZBjPugGq f9ByQNiSuMP7H1hxD7eqqXTBO7Yys5vpwR0jr0kqRXuFLH3UsfVniiMQc6jJwqTLb0oh BSCMfzCUvxbrSKbEiqAChSdLsHopfkJL5Y+gXPI2MI06EfchcqQwXwbLOxPKPznwpywu 7bqpkumno4j8l7fBjg/Nu/G5PqXQde30eIJueePTGbdUSk5eVGQMEQFpe1Q7th0rK1ML 6yqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NDrJ7DcJDro0dTFCK8OLz4hP+6/HlbwCIO8kriYA+5w=; b=FOHJFLtJYjodkRnDJCN1O5O8so6FZ3qNFX75dC8BB0vrZCzOZA5zSQlnQ70m8Rf6gP sS9irm4y9j3SiFaMTJHISLQ1v4U2bWAMBTvlAx5PxV7FpBXTPDfX1lEkPSrmi9pPJvJt CG4xejEqZHXIfLZhefe2UBKG2fnJ9F+hMzrloi9nMa0pBeXE64sPWrCqKaUBwGtnh/Bl 4ZBmUVnDngZlqvpMNicBt+sogsuGOTwHUu2VCY/M4G3egobCiNRPSTrEseGwVqsofrok JlosgqWpOTwnhyLhPU4Ak2CF0yaGyU39hGI8Ke/HMhGsnxnARuEFdPC+hAZNPv6ybZWq Jkpw== X-Gm-Message-State: ANhLgQ0hxpDNSHorTDjyzRy6Q4JGNPuB7P5yMGeNCQTEXmQDwpehZ+4c vpfYA1Mq5D2n8/uao0t9xfhGNS+Q X-Google-Smtp-Source: ADFU+vsCJ4i2EXo3+a5cjp412ReZMee5Lbax1i67hvVe6uGFsywUaTTJy55lsMgXIRvJwtKld18uBw== X-Received: by 2002:a37:aec3:: with SMTP id x186mr540923qke.419.1583641653623; Sat, 07 Mar 2020 20:27:33 -0800 (PST) Received: from apteryx ([207.35.95.105]) by smtp.gmail.com with ESMTPSA id w134sm20188453qka.127.2020.03.07.20.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 20:27:33 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> Date: Sat, 07 Mar 2020 23:27:31 -0500 In-Reply-To: <87tv2z5w7z.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 07 Mar 2020 23:03:44 -0500") Message-ID: <87pndn5v4c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -2.5 (--) Sorry for the spam, but I also managed to get something slightly different (doesn't seem to be reproducible easily though): --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> ,m (shepherd service) scheme@(shepherd service)> (make-forkexec-constructor (list "/gnu/store/qyz1bncxlkxv44c03sva2akfsyqzkzh5-nfs-utils-2.4.2/sbin/rpc.mountd" "--debug" "all")) $1 = # scheme@(shepherd service)> ($1) $2 = 920 scheme@(shepherd service)> error in finalization thread: Bad file descriptor warning: 'waitpid' -1 failed unexpectedly: No child processes --8<---------------cut here---------------end--------------->8--- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 00:40:07 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 05:40:07 +0000 Received: from localhost ([127.0.0.1]:47837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAofW-0002J6-U7 for submit@debbugs.gnu.org; Sun, 08 Mar 2020 00:40:07 -0500 Received: from mail-qv1-f41.google.com ([209.85.219.41]:43653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAofV-0002IZ-C8 for 39708@debbugs.gnu.org; Sun, 08 Mar 2020 00:40:05 -0500 Received: by mail-qv1-f41.google.com with SMTP id eb12so2921451qvb.10 for <39708@debbugs.gnu.org>; Sat, 07 Mar 2020 21:40:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=M7hHXfBn3oTBptJcpT89yDKfkzHIGE9FNmx7yqBLJ5E=; b=lxbMsunNLTC54hnTtGpYU4YfyOmAPH2e9HGMd20mTb/lIwHcpqnvzM0XUdElR2S9pc wsFPZfUFv1rwYDyBlcUmPwJKdvGpfTvZdjw4kmGkTKdGaMAGKkCYI9lD/RmvM773wjPZ AGYRWSbLVRQPEfspMpIkiikbOBmgj3y0FvXdZn2flnais1zqklBedGiJWwY3cLslfq/5 jTpswQV6eJj0OiUHCE2lmS9O2Lo60Y2mOpLJ0CkEqzzHEUfcOx3RyOvI8t1bdhX8fHvq D0FAyLMWXbTWtus24yfPPC3o/PiK6raMk9wDcB8JwxKPqudg31dRTd/tTrPb3QA+C4vD FUqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=M7hHXfBn3oTBptJcpT89yDKfkzHIGE9FNmx7yqBLJ5E=; b=D3RTLdiGy+Hbv61glt3cYochGbpGXk5596XlyJvTMHp2waMPflWxZN109aVH1HY5JQ oXBOmBEh/d9lRdssvtEM3/LqTpqLFnUPEjjls2ypX9i1E+gNeVyS+iYiCmxLq4qapdTh tnuRlnDr+G6+HPfHrKNduYgHXHa9TPpeIH82ebcjDyjTCxtJvp70SoUKRVqDIrWNFpkw 1PpG9QGrTW34wGgZGd/4a8nzTQCDWEHMj/X+ODXNjcBxX5KVn549H9knsi7aGLDXFELa HTTOVCIwZ8TaoY9TtDAiuOTL2plcnLNBIbDiR1qdPSEKHVefFej9iGzrjoAIY0K33y7Z f36g== X-Gm-Message-State: ANhLgQ2nEPHFD8YahyWV6W9i+aflLq+AS5jfSmuV2VnNalOnTdPLj+wg BNQyFjpGkChaws9YI/5uOqBZpQFy X-Google-Smtp-Source: ADFU+vtaB7PeG4j0mSgXPQsWjnv4yG7S6V46N3oNV8e4mZklfM9wFt+YqmZHjfw6HNWOyGkJFdX2yQ== X-Received: by 2002:ad4:514e:: with SMTP id g14mr9670920qvq.196.1583645999699; Sat, 07 Mar 2020 21:39:59 -0800 (PST) Received: from apteryx ([207.35.95.105]) by smtp.gmail.com with ESMTPSA id a23sm20253649qko.77.2020.03.07.21.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 21:39:58 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> Date: Sun, 08 Mar 2020 00:39:57 -0500 In-Reply-To: <87a75azxu2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 22 Feb 2020 12:05:25 +0100") Message-ID: <87lfob5rrm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > Maxim Cournoyer skribis: > >> The rpc.mountd service, one of the required services for >> nfs-service-type, respawns the process quickly until disabled. > > Does /var/log/messages contain hints? Is rpc.statd running? > Could it be that all these services need to depend on =E2=80=98loopback= =E2=80=99? > > No answers, but a lot of questions. :-) > > Ludo=E2=80=99. OK, I've managed to find the problem. rpc.mountd daemonizes itself upon starting by default, which is not supported by Shepherd (at least not its `make-forkexec-constructor' procedure). I had to pass the '--foreground' option to workaround this limitation (c.f.: commit 5fdc5b2d57d2e7ab04dbaf9c85e7f34eebe81495). It'd be interesting to see what systemd does when a service is hinted as forking in its configuration file. We should also document that limitation in the Shepherd info manual (see attached patch for Shepherd). Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-doc-Note-that-make-forkexec-constructor-requires-a-n.patch Content-Transfer-Encoding: quoted-printable From=208f84ce9abe12b49340befbeee663896d226bb869 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 8 Mar 2020 00:34:36 -0500 Subject: [PATCH] doc: Note that make-forkexec-constructor requires a non-forking process. This merits to be documented as it can be confusing, as demonstrated by . =2D-- doc/shepherd.texi | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/shepherd.texi b/doc/shepherd.texi index fbd1a3f..a0ac11b 100644 =2D-- a/doc/shepherd.texi +++ b/doc/shepherd.texi @@ -898,12 +898,14 @@ execution of the @var{command} was successful, @code{= #t} if not. [#:directory (default-service-directory)] @ [#:environment-variables (default-environment-variables)] Return a procedure that forks a child process, closes all file =2Ddescriptors except the standard output and standard error descriptors, s= ets =2Dthe current directory to @var{directory}, changes the environment to =2D@var{environment-variables} (using the @code{environ} procedure), sets t= he =2Dcurrent user to @var{user} and the current group to @var{group} unless t= hey =2Dare @code{#f}, and executes @var{command} (a list of strings.) The resu= lt of =2Dthe procedure will be the PID of the child process. +descriptors except the standard output and standard error descriptors, +sets the current directory to @var{directory}, changes the environment +to @var{environment-variables} (using the @code{environ} procedure), +sets the current user to @var{user} and the current group to @var{group} +unless they are @code{#f}, and executes @var{command} (a list of +strings.) The result of the procedure will be the PID of the child +process. The child process must not fork (daemonize) itself for this to +work correctly. =20 When @var{pid-file} is true, it must be the name of a PID file associated with the process being launched; the return value is the PID =2D-=20 2.25.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJ9WGpPiQCFQyn/CfEmDkZILmNWIFAl5khS0ACgkQEmDkZILm NWKSjg/+OSOi86h/1XLQr1966cJyPlapn/lr7Ay9utocr81DgfDeGvDz4gu+MHrw KCbz+abitj+PI4Iaau4nXda3FPRvNlVouX6kPZnmoQKf5Zv/yjPtQi1U/vTepUR6 wLQwpq90c2rh4Qkp0mkRwkutHg8il1LpqguAHIHW+VkRIHDKT2bt+kJgV4/lapF+ 3q5qXGzxBEhrAqlcYeVT+uRb7s/+nFNA8Dl17xNUvcQA6MBC2D1sPa/1xY4etDmL iwVjPNRM+8o2JtXeZ3qZ5BRGpvoy+jRi6xO7UgyOv1VOGRnmCAhtaDB7OFl5lB3/ FlsAaNlaXpnTMbNK9NT0XmbZhcuZ/x38kf1Wztys8c8HS316F6fVPbdu2iJHNrWZ sdyMnw9gNsIyBKY+ERBx5f1bDJn/uYLdQnQ0lu9bX6RZhIRTJ2awuqRNJz9B9pyx jKEcViZn8yIYcEu2hNt5Xo/h8jKUKmHmjhz77XtQAZzPuXiHZNVCjyi6H0oIS9qb 5Hnq7pUk49sq3HUTpQwujmf42TZoGtYTFcGzbbaidChlXB8FQwGD31rHC0RGEpo6 ru7bQ8hwSJG3SHppDFyiMMcf/NrgMzJhZ01v7QKGfNXSa+c2COtME6o17cmfi8KU 6wf6nptwO/c9cYhtwxOY8XWGpG2NTL5T8YunZ0f35VeDMVrXcc8= =OrFL -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 07:13:55 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 11:13:55 +0000 Received: from localhost ([127.0.0.1]:47960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAtsY-00042D-TY for submit@debbugs.gnu.org; Sun, 08 Mar 2020 07:13:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAtsY-000421-72 for 39708@debbugs.gnu.org; Sun, 08 Mar 2020 07:13:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAtsP-0006iL-GT; Sun, 08 Mar 2020 07:13:48 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35372 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAtsO-0006AY-Sz; Sun, 08 Mar 2020 07:13:45 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 08 Mar 2020 12:13:41 +0100 In-Reply-To: <87tv2z5w7z.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 07 Mar 2020 23:03:44 -0500") Message-ID: <87y2sbcd5m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.7 (-) Hi! Maxim Cournoyer skribis: > I think I've gathered a clue! [...] > scheme@(shepherd service)> (make-forkexec-constructor > (list "/gnu/store/qyz1bncxlkxv44c03sva2akfsyqzkzh5-nfs-utils-2.4.2/sbin= /rpc.mountd" "--debug" "all")) > $5 =3D # > scheme@(shepherd service)> ($5) > $6 =3D 816 > scheme@(shepherd service)> (system "pidof rpc.mountd") > warning: 'waitpid' -1 failed unexpectedly: No child processes > 817 So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, shepherd= shouldn=E2=80=99t look at the PID of the process it spawns, but rather at what rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-constru= ctor=E2=80=99. Does that work for you? Thanks for debugging! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 07:21:42 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 11:21:43 +0000 Received: from localhost ([127.0.0.1]:47965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAu06-0004Dk-OB for submit@debbugs.gnu.org; Sun, 08 Mar 2020 07:21:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAu04-0004DX-CY for 39708@debbugs.gnu.org; Sun, 08 Mar 2020 07:21:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAtzz-0002a7-8u; Sun, 08 Mar 2020 07:21:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35378 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAtzy-0006da-Or; Sun, 08 Mar 2020 07:21:35 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87lfob5rrm.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 08 Mar 2020 12:21:32 +0100 In-Reply-To: <87lfob5rrm.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 08 Mar 2020 00:39:57 -0500") Message-ID: <87r1y3ccsj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.7 (-) Maxim Cournoyer skribis: > OK, I've managed to find the problem. rpc.mountd daemonizes itself upon > starting by default, which is not supported by Shepherd (at least not > its `make-forkexec-constructor' procedure). I had to pass the > '--foreground' option to workaround this limitation (c.f.: commit > 5fdc5b2d57d2e7ab04dbaf9c85e7f34eebe81495). Great! (I had replied earlier before seeing this message.) > It'd be interesting to see what systemd does when a service is hinted as > forking in its configuration file. We should also document that > limitation in the Shepherd info manual (see attached patch for > Shepherd). Good idea. I pushed a slightly different version as Shepherd commit 3bc4a9c96c76abf78c76d71d42536e62ea173b21. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 10:37:55 2020 Received: (at 39708-done) by debbugs.gnu.org; 8 Mar 2020 14:37:55 +0000 Received: from localhost ([127.0.0.1]:49153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAx3y-0002dZ-R8 for submit@debbugs.gnu.org; Sun, 08 Mar 2020 10:37:55 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:33210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAx3x-0002dM-Lc for 39708-done@debbugs.gnu.org; Sun, 08 Mar 2020 10:37:54 -0400 Received: by mail-qv1-f43.google.com with SMTP id p3so3241946qvq.0 for <39708-done@debbugs.gnu.org>; Sun, 08 Mar 2020 07:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=EttkQaX/ZvplkMD96fLe6gBUdvv+/Z+gxbWyARdSg3U=; b=r1VE2+6qbk0tpfCI1fL1P4GbPc99FUTqVw3Q/IqQfnIGdoVjexSRURDdT9C7oKO93O 6lMMdA3PRN1wPOrnk/Bf8rBuRBba5jSutWCiwMbji4kLx8pxUwLbhttIb+61uwcHk758 CQx4Jib8UbUXF24FYWr1crEkfJWZ52ud0pgF/T5AkeF6R6KnG+UlJL9VFktg46Qeh0CK FcVxcFjRXJcSoy7Azux2lwjwZYTyX/shXldg3ugnPLIfcBTDBEn3THSYInEyqx5tsF/i tObp4+rCkzWKLAe5gblI9OP94OWEazsokleQvpcza5gqGnYAqN1R84qTYwWF6lo9DlGz hCBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EttkQaX/ZvplkMD96fLe6gBUdvv+/Z+gxbWyARdSg3U=; b=LhkejDLPmii/SRs8AP9s/ZLQj7147vsf7XOeQIsD+zzk4UQmpQDHr9zTLvrUr1qcSr QxBaWCPX+oOuEgSgwtYf+Lq/Ib1NEOTWMJwmN7inn5ARkzzhn+C2js3ESIupQaRyR1ks ekqgmveQK+RCqP8huMEdpQ5nYxwhVdjUZyTufB/m0+MXJrpazoC2JuCm47xjd+GSpg9Y OqXsi0vo2jc849+DKnwxoR2bHro27KjmuTFjKtyyfbwUsfgRk4jm5OL3FNhx0eWlq19x SK2pkuHlutg4xQoAgrIuaFLhI8AqVi1VR4oMdvXvSRuXBkWueyXbGRsEFqirnC8kzf0P USPw== X-Gm-Message-State: ANhLgQ3XNmzMWqRVpGhYN8cSd0+VbF+MtWUTlym0Xb5OLHbA91sG9NHl gFRH98lvbU3uZNNGo6cBPZmqPyqp X-Google-Smtp-Source: ADFU+vvHIUDg8f8e7AOeU+DYwEgpOVe9W0W6dnR1tk9jIDWW8rfEmu1PAQIwUgxd+6O05apxJMD+KQ== X-Received: by 2002:a0c:fa0b:: with SMTP id q11mr10889801qvn.75.1583678267866; Sun, 08 Mar 2020 07:37:47 -0700 (PDT) Received: from apteryx (dsl-10-134-17.b2b2c.ca. [72.10.134.17]) by smtp.gmail.com with ESMTPSA id h6sm20927185qtr.33.2020.03.08.07.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2020 07:37:47 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> <87y2sbcd5m.fsf@gnu.org> Date: Sun, 08 Mar 2020 10:37:45 -0400 In-Reply-To: <87y2sbcd5m.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 08 Mar 2020 12:13:41 +0100") Message-ID: <87h7yy6hfq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39708-done Cc: 39708-done@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: -1.0 (-) Hello Ludovic! Ludovic Court=C3=A8s writes: > Hi! > > Maxim Cournoyer skribis: > >> I think I've gathered a clue! > > [...] > >> scheme@(shepherd service)> (make-forkexec-constructor >> (list "/gnu/store/qyz1bncxlkxv44c03sva2akfsyqzkzh5-nfs-utils-2.4.2/sbi= n/rpc.mountd" "--debug" "all")) >> $5 =3D # >> scheme@(shepherd service)> ($5) >> $6 =3D 816 >> scheme@(shepherd service)> (system "pidof rpc.mountd") >> warning: 'waitpid' -1 failed unexpectedly: No child processes >> 817 > > So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, shephe= rd shouldn=E2=80=99t > look at the PID of the process it spawns, but rather at what > rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, > right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-const= ructor=E2=80=99. That process doesn't create a PID file, so that doesn't work. > Does that work for you? > > Thanks for debugging! Thanks for assisting, and for adding a note to the Shepherd manual! :-) I'm closing this issue. Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 10:43:59 2020 Received: (at 39708-done) by debbugs.gnu.org; 8 Mar 2020 14:43:59 +0000 Received: from localhost ([127.0.0.1]:49160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAx9r-0002mT-GF for submit@debbugs.gnu.org; Sun, 08 Mar 2020 10:43:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAx9q-0002mH-0k for 39708-done@debbugs.gnu.org; Sun, 08 Mar 2020 10:43:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAx9k-0005XU-R7; Sun, 08 Mar 2020 10:43:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35490 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAx9k-0001vn-B3; Sun, 08 Mar 2020 10:43:52 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> <87y2sbcd5m.fsf@gnu.org> <87h7yy6hfq.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?utf-8?Q?Vent=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 08 Mar 2020 15:43:50 +0100 In-Reply-To: <87h7yy6hfq.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 08 Mar 2020 10:37:45 -0400") Message-ID: <87blp6c3fd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39708-done Cc: 39708-done@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: -1.7 (-) Maxim Cournoyer skribis: >> So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, sheph= erd shouldn=E2=80=99t >> look at the PID of the process it spawns, but rather at what >> rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, >> right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-cons= tructor=E2=80=99. > > That process doesn't create a PID file, so that doesn't work. OK, so =E2=80=98--foreground=E2=80=99 was the right thing. Thanks for expl= aining! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 12:59:55 2020 Received: (at submit) by debbugs.gnu.org; 8 Mar 2020 16:59:56 +0000 Received: from localhost ([127.0.0.1]:49232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzHP-000802-O8 for submit@debbugs.gnu.org; Sun, 08 Mar 2020 12:59:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:43108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzHN-0007zn-Lw for submit@debbugs.gnu.org; Sun, 08 Mar 2020 12:59:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47763) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAzHL-0004Go-IT for bug-guix@gnu.org; Sun, 08 Mar 2020 12:59:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAzHK-0006Xx-J3 for bug-guix@gnu.org; Sun, 08 Mar 2020 12:59:51 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jAzHK-0006Wa-35 for bug-guix@gnu.org; Sun, 08 Mar 2020 12:59:50 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1583686786; cv=none; d=zohomail.com; s=zohoarc; b=BLI3IU7JfUcJTdZzRUGOOTQcjGZbthvJMYZelmrg1JSlgTU2pQ/8abEm7yvNP3XFp7TPMIgMSD4qXIPZcoLIdDIbO0mcKLiz4ukozP4A0IuJVbEaLNnDrXMRvSIfrwsFUlVbA2ETD5sU0q1JSxN4WXSfMFQZghjSc5pbIzhS9s4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583686786; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=K7ghPfKE0qXsUxjrcnam9xptiVOfZpXUphNyfP4ieYE=; b=TmQ/dgiMsIeBhFgW6yDmaHpNbbh1JheKVDL6lgdArVfdMoRZlcwuo5l8GwROQSP6AqS4vZAkRvOPmm3DtB4MEY7FXf+3ImOZJH0W/aPLUDmWPF90kpFpjyxx6ZvLzX52AN43YyNo+rj48H98RvAKmtLhmO0rIaxdwJEjk/OnDRA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583686786; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=K7ghPfKE0qXsUxjrcnam9xptiVOfZpXUphNyfP4ieYE=; b=Rb7OITwWftAzzKlHW5LVf+oQweaLVAs4p06X/eLp0j9eWXHTThIMfahNzp13xyqB 5YZ9I3/YK9wNJVhi0IZV0x0t4b1hwOn8hEn8zAZ6JxdLj0taOXJ54h2/hKMQ353r+rX TeXJN2BCZXQnWZsrToSAabqORDe/fT/Lx2sXnHxw= Received: from localhost (p4FD5AC1C.dip0.t-ipconnect.de [79.213.172.28]) by mx.zohomail.com with SMTPS id 1583686784422631.9206856593255; Sun, 8 Mar 2020 09:59:44 -0700 (PDT) References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> <87y2sbcd5m.fsf@gnu.org> <87h7yy6hfq.fsf@gmail.com> <87blp6c3fd.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly In-reply-to: <87blp6c3fd.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 08 Mar 2020 17:59:41 +0100 Message-ID: <87y2saok8y.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 136.143.188.51 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit Cc: 39708-done@debbugs.gnu.org, Maxim Cournoyer 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.7 (/) Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >>> So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, shep= herd shouldn=E2=80=99t >>> look at the PID of the process it spawns, but rather at what >>> rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, >>> right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-con= structor=E2=80=99. >> >> That process doesn't create a PID file, so that doesn't work. > > OK, so =E2=80=98--foreground=E2=80=99 was the right thing. Thanks for ex= plaining! Does this affect the system test at all? When I added nfs-service-type I also added a system test, which passed. Did I miss something? --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 13:29:45 2020 Received: (at 39708) by debbugs.gnu.org; 8 Mar 2020 17:29:45 +0000 Received: from localhost ([127.0.0.1]:49250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzkH-0000Gq-1K for submit@debbugs.gnu.org; Sun, 08 Mar 2020 13:29:45 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:46107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAzkD-0000Ga-PE for 39708@debbugs.gnu.org; Sun, 08 Mar 2020 13:29:43 -0400 Received: by mail-qt1-f170.google.com with SMTP id t13so569694qtn.13 for <39708@debbugs.gnu.org>; Sun, 08 Mar 2020 10:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=2SDh7anLPAos5dfhkVAIOdQtzcj+dT0hpEmCsZYC0CI=; b=jtWGDT8v5vg530mz79i7sBpHRxRQZb46tK5DapWtaH7EuQwiRMmrzVFQ9+4Ue4bZpz ccqyKj2i7Buj2KzRvJO281pBBu94gdPy99rsKNjORMeGi+5AFepVcGyszdxPqYihBi8z Wm2RXFE/L+vwgdC+7iGhqx4G+Ks09nXB1E3ZXprflC4Exn20Rlko0XWaIFG+451Gua/7 uRkaaDTqos/Dnq/MzwH/09WBVvJNT5Y31yD48qrWDEWMOIkzr3zQr4fRQEQtYFg3X1fz XmSpFkUIHc/AtPxjbkrroRR6oIi/PjkjNvC/nMtF45BEq3FSXqHde4eKlHtFZiLPQfsU 30fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=2SDh7anLPAos5dfhkVAIOdQtzcj+dT0hpEmCsZYC0CI=; b=MVqIqKGGrBhyoI2mVmCBwvO0AAdFRvrXrel9Bj/Rbz742LS5ygZ5j21L1k/cXG3eGp +PMwc2WQwelvIJLvM5yUBYJPAzOm+5Ev9H5p9oOVlBWi18qRC4XN9fFY/B3pIXSzO51D N/iI/LMahfn3pmgGa8Q3/iWh/sC99XYJIk16S5SkvD8WnrQNCbfVuXVZ7SrUvFJlh6w0 6CCb22Ns2bAvWvF2UmN62Rlek0tsW70/igWEB6GF60dEx8E0XQz8ig3iprrF7uzIxFMU AyAzXC/m2lfE+nnn5JEmfiO0UrkN6UvtH/lkcO4dNk1Wz0T/ayFPfsuDETcb3RJnsJex lXgQ== X-Gm-Message-State: ANhLgQ1brNqxmhZFuT5QaVZvbaKDOm8ax+FvPrmM3Lj6ZdTZky9nUj9A cub7fC4txzuZKPYEITXqUAZRMGex X-Google-Smtp-Source: ADFU+vt1tJSGyAz+Gc45VZJdhEoioLDor3uirVwQfNW+oViGnpw6QPOCWnVqgHgSxwEw/+pnlLRYyg== X-Received: by 2002:ac8:42c6:: with SMTP id g6mr11563056qtm.250.1583688576042; Sun, 08 Mar 2020 10:29:36 -0700 (PDT) Received: from apteryx (dsl-10-134-17.b2b2c.ca. [72.10.134.17]) by smtp.gmail.com with ESMTPSA id q142sm1088203qke.45.2020.03.08.10.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2020 10:29:35 -0700 (PDT) From: Maxim Cournoyer To: Ricardo Wurmus Subject: Re: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> <87y2sbcd5m.fsf@gnu.org> <87h7yy6hfq.fsf@gmail.com> <87blp6c3fd.fsf@gnu.org> <87y2saok8y.fsf@elephly.net> Date: Sun, 08 Mar 2020 13:29:34 -0400 In-Reply-To: <87y2saok8y.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 08 Mar 2020 17:59:41 +0100") Message-ID: <87a74q69hd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 39708 Cc: 39708@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: -1.0 (-) Hello Ricardo! Ricardo Wurmus writes: > Ludovic Court=C3=A8s writes: > >> Maxim Cournoyer skribis: >> >>>> So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, she= pherd shouldn=E2=80=99t >>>> look at the PID of the process it spawns, but rather at what >>>> rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, >>>> right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-co= nstructor=E2=80=99. >>> >>> That process doesn't create a PID file, so that doesn't work. >> >> OK, so =E2=80=98--foreground=E2=80=99 was the right thing. Thanks for e= xplaining! > > Does this affect the system test at all? When I added nfs-service-type > I also added a system test, which passed. Did I miss something? As I mentioned in an earlier message in this thread; > Even with 'herd status rpc.mountd' reporting that it is stopped and > disabled, and 'pidof rpc.mountd' showing 6 processes, the NFS service > manages to work, at least for the very limited testing I've done. So, the test validating that files written to the mounted NFS share appear in the exported file system would pass, but if you view the output of 'herd status nfs' on a system configured before the fix you'd see rpc.mountd reported as stopped and disabled (with something like 6 processes running :-)). Maxim From unknown Sun Jul 27 07:31:11 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, 06 Apr 2020 11:24:04 +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