From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aXYfOgyFpWBbhwAAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 23:37:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6BU2NQyFpWABCQAAbx9fmQ (envelope-from ) for ; Wed, 19 May 2021 21:37:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 42AD9FD39 for ; Wed, 19 May 2021 23:37:16 +0200 (CEST) Received: from localhost ([::1]:43836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljTsP-0001jH-Nz for larch@yhetil.org; Wed, 19 May 2021 17:37:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljTsE-0001j9-Ig for bug-guix@gnu.org; Wed, 19 May 2021 17:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljTsE-0007GV-Ax for bug-guix@gnu.org; Wed, 19 May 2021 17:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljTsE-0008IT-7p for bug-guix@gnu.org; Wed, 19 May 2021 17:37:02 -0400 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621460236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=WCJHCGcF8matyptbA2eRkFGJ7yxl41N+qNP7Zk/dxYY=; b=LQjoHT6l6OINf7hRvx6VxU7ZU4aOFLPRMbgVKFaxmXx65hU6PWCIAtQmCRBu7JWFS9YHtL OUjwnCzIlw2NGJJ3lVF5sL/paO3sUlP9cmT+epoWRSv1enCCh79yupHU3nBHM2w92OR2cz gAWRfdhcYxcC4spEwlvVqXCWy9hbVJhC/ylkKdopNtQ27eVVfLMseWssbD0QUVghA5dYsH hCo7YMpotPGWwmoYuHrzBmtJpRee+g+fn4g6Km9brt6/TN+bO0QSkMXWLnjfDW/SGwelH2 VMknF4XNN+cBz9IM/li45c1UssswzyCSVLLpSydpeX4pVbM9pPPKzByB1C+fYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621460236; a=rsa-sha256; cv=none; b=acnbbzpy3G5szYxxm/htwumYmuIlgS2nn/DNt/3qUMhVK9QaSW9vWz62SD121KtwzTjkqy 4wevnq+15G/PdvkfJu+fvQm+uKgN/7n3UwMarcJkZ5Qm2o1cuT2wp+/N6YWxAYJZErZ0u/ XV+utq24r/BkvSjaIgOli3wJt2+JBvFucQriJQioZIQOb2f78zNRgjx00mvIwgJWPwjxu4 gxoa5ac9DQocV01kkq2D0qwSU7mQ/zS68oOGuOfboXpEwoVC3cf1edeJ1P0JB7NVRFPPJg oH+coVGpUUQlcEeqYeVpv3Af7GshTLI5xBd5j2ZBiMPDpYBruqSv72ji9mixbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=pWvJ9rmH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=pWvJ9rmH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 42AD9FD39 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: aeWzmfwVwsgO 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