From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48521: opendht-service-type hangs Shepherd at boot Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 May 2021 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48521 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48521@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.162142557019143 (code B ref -1); Wed, 19 May 2021 12:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 May 2021 11:59:30 +0000 Received: from localhost ([127.0.0.1]:58289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljKrK-0004yh-0a for submit@debbugs.gnu.org; Wed, 19 May 2021 07:59:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljKrI-0004yb-39 for submit@debbugs.gnu.org; Wed, 19 May 2021 07:59:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljKrH-00016z-Pa for bug-guix@gnu.org; Wed, 19 May 2021 07:59:27 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:41918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljKrD-0003LH-03 for bug-guix@gnu.org; Wed, 19 May 2021 07:59:27 -0400 Received: by mail-qt1-x82a.google.com with SMTP id t20so9851414qtx.8 for ; Wed, 19 May 2021 04:59:22 -0700 (PDT) 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=IcOQ4W3ch/L5MTDwI10qXlhaVmCALONuCkp08+gMDkk=; b=TzRCola9MHgy67YfC4U1UkRwPav5Y7Qy4XyAs9WHkG7FWV7udHILVLbn+HTeQ7D8iC a6VqHVzN/WGV7sijL673E6r/vW3M2mvog1bTtgFb+qLMYwuqqX1JpGuG5ker8rC+WQzd 1lVGMrBml7WkDwWxpR7qguf4rhHOmeVMAFQL6VXZc0UfZIhaKQF+o64RjNu3p+TEkPes 9aBr/RyF0H9s0CQ4Is0hA9/4jAnaMj7BsCiTiyR5GIaX6+8lND9f/bQy2zbq/iRXbz/m i1/GeDtZfZBeATpg8ZAZXWHy+nO5Sn2aYIWcaGMdLKQCG5fQiP1qa9zwrqSur45IWwEi UIzA== 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=IcOQ4W3ch/L5MTDwI10qXlhaVmCALONuCkp08+gMDkk=; b=a1yoh32TjgPxZheiKO7fqpK/XpLeUtVm6FqDqN32wV22w1lgX9taQX6yaa7MeW/yMx GK/oVAS8AVDSri8l24ClY5wHsPeAbSNiZHFLltMDzUidRhwAxiz73LQVwYF8CDYKbOLO j5l/WeU0uHS00+8YlQrUN1jednPYZ/RTMrdf0BbW5CPIsvuGBJV5JLuLjY5sMGsVD9JG T4OT+d+gVwjgGZzK1eE0EBtykiY6Z8GdEGLpw5a8lkprlvnkCh58+jljEQeOYbqnt0nI godw3K0vSEGa4hGDabGs6mkDE702idmGPUVhrf/uiS4E6YYlCfPeBRiPZgTBsXIlIKZn sKIQ== X-Gm-Message-State: AOAM533tD/5qeJno9G+TgCyAnGqUOIYroSs3blJ6t9AMQMDOTCvD1JoH ymlh74Fipd3YuUKuLjfTrsyC1ONyeFw= X-Google-Smtp-Source: ABdhPJxe3l+pzjgrJyzEEyiLr5t/C9pfRmqCW59qJFoSDGv9aNTdTt9bLhrRvaSu+9FQz7E2MzAR9A== X-Received: by 2002:a05:622a:3d1:: with SMTP id k17mr10665158qtx.50.1621425562059; Wed, 19 May 2021 04:59:22 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id w4sm14635010qki.57.2021.05.19.04.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 04:59:21 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 19 May 2021 07:59:19 -0400 Message-ID: <874kezhr3c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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.3 (--) Hello, I just noticed about this problem following a reboot. I can also reproduce it in 'guix system vm', simply adding the opendht-service-type to my operating-system declaration. The boot proceeds until 'error in finalization thread: Success' then hangs indefinitely. What is troubling for me is that the service is rather straightforwardly defined. It uses the make-forkexec-constructor/container like so: --8<---------------cut here---------------start------------->8--- (define (opendht-shepherd-service config) "Return a running OpenDHT." (shepherd-service (documentation "Run an OpenDHT node.") (provision '(opendht dhtnode dhtproxy)) (requirement '(user-processes syslogd)) (start #~(make-forkexec-constructor/container (list #$@(opendht-configuration->command-line-arguments config)) #:mappings (list (file-system-mapping (source "/dev/log") ;for syslog (target source))) #:user "opendht")) (stop #~(make-kill-destructor)))) --8<---------------cut here---------------end--------------->8--- I'm not sure how using such basic building blocks could lead to a hang in Shepherd ? Thanks, Maxim From unknown Tue Jun 17 22:27:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48521: opendht-service-type hangs Shepherd at boot Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 May 2021 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48521 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48521@debbugs.gnu.org Received: via spool by 48521-submit@debbugs.gnu.org id=B48521.162146020831872 (code B ref 48521); Wed, 19 May 2021 21:37:02 +0000 Received: (at 48521) by debbugs.gnu.org; 19 May 2021 21:36:48 +0000 Received: from localhost ([127.0.0.1]:60864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljTs0-0008I0-3f for submit@debbugs.gnu.org; Wed, 19 May 2021 17:36:48 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:38790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljTry-0008Hm-5e for 48521@debbugs.gnu.org; Wed, 19 May 2021 17:36:46 -0400 Received: by mail-qt1-f173.google.com with SMTP id h21so11323873qtu.5 for <48521@debbugs.gnu.org>; Wed, 19 May 2021 14:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=WCJHCGcF8matyptbA2eRkFGJ7yxl41N+qNP7Zk/dxYY=; b=pWvJ9rmHOzefjkcdnrmhGEl2Hmtccu9/NcWkAStRS4U6NMOKuBeQzhyAvCVwr7BHCL fIb7MJH5L7AdQwnNNG+IplAHF3s/US76Q3QNdJg7JHckn4nr+7BpyrTYHHBWcfngQ33A MkpkqBHl0nwfRPOkRvqq3QjzLuWCCL3aYTbYI0eA/OBoT99DaAtLCa9hgJTgOLpdE7oD ppmmkd4LtZvkDpjADI63/Hd6H8JPd9srY5hpqwyYvdoSqKiJdcZts+KKHNSjH/NZnELv tbwuVsfLZXCN3s9jS9XF3VgI+5EOCOgmvYhyfuema9lhsWqMDdEWP/EXSb/G6b+SNMdW uPAA== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=WCJHCGcF8matyptbA2eRkFGJ7yxl41N+qNP7Zk/dxYY=; b=B/PI/hs2AahQNWkq39N0Rjq1r/V12g4aiKBs0ST2KjoakdTIQ1G+rPW1VQowpOOUuv 2RR2kTkqlZTMjrdo1g26lPGoPheEq8QSd6AHbaqeAe+qQDXJbKG8thI8xLSePOW2OlE4 IMbCop5dTPdQu5E5QA65e1qtNNFGm7hHoc22G65nq6w7GlL6+MVjNOCkkEjY+y2tWzKt KR+f3UTqVlmkBXXeSp9YmNmgbZcwQhmzcJ4AmIToWqsWmV8k0Om5sr18l4KjHOL6AYdA x3T/tXiXK0JmLuFIO/2F5sA+ACooRrzZgapOZgbgNsmDlJwUrnK5sh2LbhGxwV22FSjF Rm6A== X-Gm-Message-State: AOAM531ueqmTa5PMxA5CljnETsXlhf1DD2euYsuVCMveeosEj5A46B9w 4s1ooBeOyu6igepn65u0O2g+cXBhzO8= X-Google-Smtp-Source: ABdhPJwpCccrRtYbDH9m1PQ35q+9BElgHyKpkbtREAbxzYR5tFR32xs5hbAF+CKCwow9t3J4KzUUNQ== X-Received: by 2002:a05:622a:588:: with SMTP id c8mr1707548qtb.49.1621460200196; Wed, 19 May 2021 14:36:40 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id i9sm577263qtg.18.2021.05.19.14.36.39 for <48521@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 14:36:39 -0700 (PDT) From: Maxim Cournoyer References: <874kezhr3c.fsf@gmail.com> Date: Wed, 19 May 2021 17:36:38 -0400 In-Reply-To: <874kezhr3c.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 19 May 2021 07:59:19 -0400") Message-ID: <87zgwqh0d5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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 (-) Maxim Cournoyer writes: > Hello, > > I just noticed about this problem following a reboot. I can also > reproduce it in 'guix system vm', simply adding the opendht-service-type > to my operating-system declaration. > > The boot proceeds until 'error in finalization thread: Success' then > hangs indefinitely. > > What is troubling for me is that the service is rather straightforwardly > defined. It uses the make-forkexec-constructor/container like so: > > (define (opendht-shepherd-service config) > "Return a running OpenDHT." > (shepherd-service > (documentation "Run an OpenDHT node.") > (provision '(opendht dhtnode dhtproxy)) > (requirement '(user-processes syslogd)) > (start #~(make-forkexec-constructor/container > (list #$@(opendht-configuration->command-line-arguments config)) > #:mappings (list (file-system-mapping > (source "/dev/log") ;for syslog > (target source))) > #:user "opendht")) > (stop #~(make-kill-destructor)))) > > I'm not sure how using such basic building blocks could lead to a hang > in Shepherd ? After much trial and error, the service can be made to not hang Shepherd with the removal of the mappings argument: --8<---------------cut here---------------start------------->8--- modified gnu/services/networking.scm @@ -845,9 +845,9 @@ CONFIG, an object." (requirement '(user-processes networking syslogd)) (start #~(make-forkexec-constructor/container (list #$@(opendht-configuration->command-line-arguments config)) - #:mappings (list (file-system-mapping - (source "/dev/log") ;for syslog - (target source))) + ;; #:mappings (list (file-system-mapping + ;; (source "/dev/log") ;for syslog + ;; (target source))) #:user "opendht")) (stop #~(make-kill-destructor)))) --8<---------------cut here---------------end--------------->8--- I have no idea why that is, but given that the tor-service-type does the same thing, I can only conclude that it is some strange interaction between dhtnode and syslog. The above fixes the hang, but breaks logging to syslog. Ideas? Maxim From unknown Tue Jun 17 22:27:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Maxim Cournoyer Subject: bug#48521: closed (Re: bug#48521: opendht-service-type hangs Shepherd at boot) Message-ID: References: <87v97eglrd.fsf@gmail.com> <874kezhr3c.fsf@gmail.com> X-Gnu-PR-Message: they-closed 48521 X-Gnu-PR-Package: guix Reply-To: 48521@debbugs.gnu.org Date: Thu, 20 May 2021 02:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1621479182-5762-1" This is a multi-part message in MIME format... ------------=_1621479182-5762-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #48521: opendht-service-type hangs Shepherd at boot which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 48521@debbugs.gnu.org. --=20 48521: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48521 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1621479182-5762-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 48521-done) by debbugs.gnu.org; 20 May 2021 02:52:14 +0000 Received: from localhost ([127.0.0.1]:60994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYnG-0001Tn-Jb for submit@debbugs.gnu.org; Wed, 19 May 2021 22:52:14 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:34589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYnF-0001TZ-4v for 48521-done@debbugs.gnu.org; Wed, 19 May 2021 22:52:13 -0400 Received: by mail-qt1-f171.google.com with SMTP id v4so11794125qtp.1 for <48521-done@debbugs.gnu.org>; Wed, 19 May 2021 19:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=LgC9vbLDtX+a7WROXApbuADKzP/XOZYBT2Gb203iUew=; b=faklIuPB/cUa8SgsmR6DPyNa1bCSGLuAB1MR9biVzQ6wdsjO+OmveoB0EvVk0JWUh0 HyrLQ0uiSaZ24LYiiHykvQM7Rn4zvQajSoFZweAwKiItLjEyNHQDlN2K+coJdzVqR85H VoavNE0Bl8wS4O5A/QARxcGl+LoAF4/zXDI0ne7dU1wqHG+3flRAKJA2iZMIy5B+gdrb o54FnoN0MDF/HQGn2ysZ7ghUZR743ovFN/KRDNkwTzuU8s+vnqzWuCvMgGiBa9raTGRi e8VIlP/hioynPKnw+91GSHATkq/j1gqkrg3z6VYAGX9xG4VstJD8+wJIQXj2B694DQye bQGA== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LgC9vbLDtX+a7WROXApbuADKzP/XOZYBT2Gb203iUew=; b=iCoo3i1LFyZ2/vSnjZet47FyjRPMgOH7Wq72pZHT5CpyGWNO6OFsEZWmLGWDm7z6ZU qNP+hEkLx8akmf9reM77nsPWiLPuJGeBLR5nxoIchf4GZ/nNWM1K5b5o2+SH8o8CDZcH SyfFJde9+8dA+p7ER28ak/3hJUuozCp2NG9oKt2C734jC4m7+98thTmCnpyHN+yB/5z/ f2phMYTYmfWJ107s5R0vBs+oioXDqDeph5xtQ9fJz4KptM3dAifs3iEiVleqmN+sRIWh nYerGP/VqR8dt5oeQNAGlMNQLWNfvOuuhuOHtM81I+yyVCpQtZ8vkKZg7Y0gZ1sx3Cuz qFcw== X-Gm-Message-State: AOAM531OxM6j1eIJ/u8J3D/78ej9cbRfPfgr31N6h40JCW43c8Dc+6du jOCIhkU70npmmS5jOzIaMxioatFQPVk= X-Google-Smtp-Source: ABdhPJxUHNXNZnJscmuGwUPvTuE0d56OycpKhEpqSMRRXhK4LqL2TC5ybHzPSKlKoBQzjcqWUHvawQ== X-Received: by 2002:a05:622a:1044:: with SMTP id f4mr2918434qte.181.1621479127142; Wed, 19 May 2021 19:52:07 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id u3sm1060811qtg.16.2021.05.19.19.52.06 for <48521-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 19:52:06 -0700 (PDT) From: Maxim Cournoyer To: 48521-done@debbugs.gnu.org Subject: Re: bug#48521: opendht-service-type hangs Shepherd at boot References: <874kezhr3c.fsf@gmail.com> Date: Wed, 19 May 2021 22:52:06 -0400 In-Reply-To: <874kezhr3c.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 19 May 2021 07:59:19 -0400") Message-ID: <87v97eglrd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48521-done 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, Maxim Cournoyer writes: > Hello, > > I just noticed about this problem following a reboot. I can also > reproduce it in 'guix system vm', simply adding the opendht-service-type > to my operating-system declaration. > > The boot proceeds until 'error in finalization thread: Success' then > hangs indefinitely. > > What is troubling for me is that the service is rather straightforwardly > defined. It uses the make-forkexec-constructor/container like so: > > (define (opendht-shepherd-service config) > "Return a running OpenDHT." > (shepherd-service > (documentation "Run an OpenDHT node.") > (provision '(opendht dhtnode dhtproxy)) > (requirement '(user-processes syslogd)) > (start #~(make-forkexec-constructor/container > (list #$@(opendht-configuration->command-line-arguments config)) > #:mappings (list (file-system-mapping > (source "/dev/log") ;for syslog > (target source))) > #:user "opendht")) > (stop #~(make-kill-destructor)))) > > I'm not sure how using such basic building blocks could lead to a hang > in Shepherd ? It seems Shepherd can't cope with a failing start procedure/script when a variable was not bound. To diagnose the problem, the best way ended up being to extract the code of the constructor in a separate script to run it separately. This made the error quickly apparent: "Unbound variable: file-system-mapping". We should try to handle this class of errors in Shepherd and report a useful message and *not* crash Shepherd or otherwise hang. Pushed with commit a09cdf1f9d. Closing. Maxim ------------=_1621479182-5762-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 May 2021 11:59:30 +0000 Received: from localhost ([127.0.0.1]:58289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljKrK-0004yh-0a for submit@debbugs.gnu.org; Wed, 19 May 2021 07:59:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljKrI-0004yb-39 for submit@debbugs.gnu.org; Wed, 19 May 2021 07:59:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljKrH-00016z-Pa for bug-guix@gnu.org; Wed, 19 May 2021 07:59:27 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:41918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljKrD-0003LH-03 for bug-guix@gnu.org; Wed, 19 May 2021 07:59:27 -0400 Received: by mail-qt1-x82a.google.com with SMTP id t20so9851414qtx.8 for ; Wed, 19 May 2021 04:59:22 -0700 (PDT) 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=IcOQ4W3ch/L5MTDwI10qXlhaVmCALONuCkp08+gMDkk=; b=TzRCola9MHgy67YfC4U1UkRwPav5Y7Qy4XyAs9WHkG7FWV7udHILVLbn+HTeQ7D8iC a6VqHVzN/WGV7sijL673E6r/vW3M2mvog1bTtgFb+qLMYwuqqX1JpGuG5ker8rC+WQzd 1lVGMrBml7WkDwWxpR7qguf4rhHOmeVMAFQL6VXZc0UfZIhaKQF+o64RjNu3p+TEkPes 9aBr/RyF0H9s0CQ4Is0hA9/4jAnaMj7BsCiTiyR5GIaX6+8lND9f/bQy2zbq/iRXbz/m i1/GeDtZfZBeATpg8ZAZXWHy+nO5Sn2aYIWcaGMdLKQCG5fQiP1qa9zwrqSur45IWwEi UIzA== 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=IcOQ4W3ch/L5MTDwI10qXlhaVmCALONuCkp08+gMDkk=; b=a1yoh32TjgPxZheiKO7fqpK/XpLeUtVm6FqDqN32wV22w1lgX9taQX6yaa7MeW/yMx GK/oVAS8AVDSri8l24ClY5wHsPeAbSNiZHFLltMDzUidRhwAxiz73LQVwYF8CDYKbOLO j5l/WeU0uHS00+8YlQrUN1jednPYZ/RTMrdf0BbW5CPIsvuGBJV5JLuLjY5sMGsVD9JG T4OT+d+gVwjgGZzK1eE0EBtykiY6Z8GdEGLpw5a8lkprlvnkCh58+jljEQeOYbqnt0nI godw3K0vSEGa4hGDabGs6mkDE702idmGPUVhrf/uiS4E6YYlCfPeBRiPZgTBsXIlIKZn sKIQ== X-Gm-Message-State: AOAM533tD/5qeJno9G+TgCyAnGqUOIYroSs3blJ6t9AMQMDOTCvD1JoH ymlh74Fipd3YuUKuLjfTrsyC1ONyeFw= X-Google-Smtp-Source: ABdhPJxe3l+pzjgrJyzEEyiLr5t/C9pfRmqCW59qJFoSDGv9aNTdTt9bLhrRvaSu+9FQz7E2MzAR9A== X-Received: by 2002:a05:622a:3d1:: with SMTP id k17mr10665158qtx.50.1621425562059; Wed, 19 May 2021 04:59:22 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id w4sm14635010qki.57.2021.05.19.04.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 04:59:21 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: opendht-service-type hangs Shepherd at boot Date: Wed, 19 May 2021 07:59:19 -0400 Message-ID: <874kezhr3c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hello, I just noticed about this problem following a reboot. I can also reproduce it in 'guix system vm', simply adding the opendht-service-type to my operating-system declaration. The boot proceeds until 'error in finalization thread: Success' then hangs indefinitely. What is troubling for me is that the service is rather straightforwardly defined. It uses the make-forkexec-constructor/container like so: --8<---------------cut here---------------start------------->8--- (define (opendht-shepherd-service config) "Return a running OpenDHT." (shepherd-service (documentation "Run an OpenDHT node.") (provision '(opendht dhtnode dhtproxy)) (requirement '(user-processes syslogd)) (start #~(make-forkexec-constructor/container (list #$@(opendht-configuration->command-line-arguments config)) #:mappings (list (file-system-mapping (source "/dev/log") ;for syslog (target source))) #:user "opendht")) (stop #~(make-kill-destructor)))) --8<---------------cut here---------------end--------------->8--- I'm not sure how using such basic building blocks could lead to a hang in Shepherd ? Thanks, Maxim ------------=_1621479182-5762-1--