From unknown Tue Jun 24 01:42:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22753: Shepherd: Problem reconfiguring from bare-bones to desktop Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 21 Feb 2016 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22753 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 22753@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.145604309010483 (code B ref -1); Sun, 21 Feb 2016 08:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2016 08:24:50 +0000 Received: from localhost ([127.0.0.1]:35772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXPJy-0002j1-FD for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56198) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXPJw-0002im-S5 for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXPJq-0003Ff-Vu for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:43 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJq-0003Fb-Sl for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJp-0006up-U7 for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXPJm-0003F8-Ni for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:41 -0500 Received: from world.peace.net ([50.252.239.5]:56926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJm-0003F4-Ke for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:38 -0500 Received: from c-73-253-48-168.hsd1.ma.comcast.net ([73.253.48.168] helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aXPJf-0000sM-UD; Sun, 21 Feb 2016 03:24:32 -0500 From: Mark H Weaver Date: Sun, 21 Feb 2016 03:24:20 -0500 Message-ID: <8760xisc7f.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -5.0 (-----) Recently, I temporarily switched to a minimal text-only configuration of GuixSD (in order to avoid using glibc without the CVE-2015-7547 fix). When I later build a full desktop system and reconfigured, several errors were reported by shepherd while attempting to update the running services, and some messages were missing trailing newlines. Here's the tail of the console output: --8<---------------cut here---------------start------------->8--- making '/gnu/store/q9k5c12m65l19jcpx8fm213jk542pi9m-system' the current system... guix system: loading new services: ntpd elogind upower-daemon networking avahi-daemon xorg-server bitlbee tor... guix system: shepherd: Evaluating user expression (register-services (primitive-load "/gn...") ...). guix system: error: exception caught while executing 'eval' on service 'root':ERROR: In procedure open-file: No such file or directory: "/gnu/store/w5p4sxbwsmj1q9g95j4q909g6hwiksql-shepherd-tor.scm" Installation finished. No Error reported. guix system: error: service 'ntpd' could not be foundguix system: error: service 'elogind' could not be foundguix system: error: service 'upower-daemon' could not be foundguix system: error: service 'networking' could not be foundguix system: error: service 'avahi-daemon' could not be foundguix system: error: service 'xorg-server' could not be foundguix system: error: service 'bitlbee' could not be foundguix system: error: service 'tor' could not be foundroot:~# --8<---------------cut here---------------end--------------->8--- The text above was transcribed by hand from one text console to another, so it might contain mistakes. Mark From unknown Tue Jun 24 01:42:14 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: Mark H Weaver Subject: bug#22753: closed (Re: bug#22753: Shepherd: Problem reconfiguring from bare-bones to desktop) Message-ID: References: <87d1rlathw.fsf@gnu.org> <8760xisc7f.fsf@netris.org> X-Gnu-PR-Message: they-closed 22753 X-Gnu-PR-Package: guix Reply-To: 22753@debbugs.gnu.org Date: Thu, 25 Feb 2016 12:02:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1456401721-20383-1" This is a multi-part message in MIME format... ------------=_1456401721-20383-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #22753: Shepherd: Problem reconfiguring from bare-bones to desktop 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 22753@debbugs.gnu.org. --=20 22753: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D22753 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1456401721-20383-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 22753-done) by debbugs.gnu.org; 25 Feb 2016 12:02:00 +0000 Received: from localhost ([127.0.0.1]:44866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYucK-0005IY-4Z for submit@debbugs.gnu.org; Thu, 25 Feb 2016 07:02:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45220) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYucI-0005IL-KU for 22753-done@debbugs.gnu.org; Thu, 25 Feb 2016 07:01:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYucA-0007Cl-M1 for 22753-done@debbugs.gnu.org; Thu, 25 Feb 2016 07:01:53 -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 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYucA-0007Ch-JB; Thu, 25 Feb 2016 07:01:50 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:41748 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYuc9-0003G0-Qp; Thu, 25 Feb 2016 07:01:50 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#22753: Shepherd: Problem reconfiguring from bare-bones to desktop References: <8760xisc7f.fsf@netris.org> Date: Thu, 25 Feb 2016 13:01:47 +0100 In-Reply-To: <8760xisc7f.fsf@netris.org> (Mark H. Weaver's message of "Sun, 21 Feb 2016 03:24:20 -0500") Message-ID: <87d1rlathw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (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-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22753-done Cc: 22753-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: -5.0 (-----) Mark H Weaver skribis: > When I later build a full desktop system and reconfigured, several > errors were reported by shepherd while attempting to update the running > services, and some messages were missing trailing newlines. Here's the > tail of the console output: > > making '/gnu/store/q9k5c12m65l19jcpx8fm213jk542pi9m-system' the current s= ystem... > guix system: loading new services: ntpd elogind upower-daemon networking = avahi-daemon xorg-server bitlbee tor... > guix system: shepherd: Evaluating user expression (register-services (pri= mitive-load "/gn...") ...). > guix system: error: exception caught while executing 'eval' on service 'r= oot':ERROR: In procedure open-file: No such file or directory: "/gnu/store/= w5p4sxbwsmj1q9g95j4q909g6hwiksql-shepherd-tor.scm" > Installation finished. No Error reported. > guix system: error: service 'ntpd' could not be foundguix system: error: = service 'elogind' could not be foundguix system: error: service 'upower-dae= mon' could not be foundguix system: error: service 'networking' could not b= e foundguix system: error: service 'avahi-daemon' could not be foundguix sy= stem: error: service 'xorg-server' could not be foundguix system: error: se= rvice 'bitlbee' could not be foundguix system: error: service 'tor' could n= ot be foundroot:~# The missing newlines were added in f2d8faf. What=E2=80=99s happening here is that =E2=80=98guix system=E2=80=99 passes = shepherd a list of files to load (one file per service), but some of these files happen to be nonexistent (notably shepherd-tor.scm.) Because of that, it does not even load subsequent service files. Nevertheless, it happily tries to start all these services that failed to be loaded, which results in this series of =E2=80=9Ccould not be found= =E2=80=9D messages. (We should probably load services one at a time and keep track of which one failed exactly.) The service file names are computed in =E2=80=98upgrade-shepherd-services= =E2=80=99: --8<---------------cut here---------------start------------->8--- (let ((to-load-names (map shepherd-service-canonical-name to-load)) (to-start (filter shepherd-service-auto-start? to-load))) (info (_ "loading new services:~{ ~a~}...~%") to-load-names) (mlet %store-monad ((files (mapm %store-monad shepherd-service-file to-load))) ;; Here we assume that FILES are exactly those that were computed ;; as part of the derivation that built OS, which is normally the ;; case. (load-services (map derivation->output-path files)) --8<---------------cut here---------------end--------------->8--- The comment wasn=E2=80=99t there before but it explains the story: we call =E2=80=98shepherd-service-file=E2=80=99 here and normally, that gives us th= e same result as what was already computed when building OS. However, that assumption turned out to be wrong in some cases, hence the error you got (the shepherd-tor.scm file we=E2=80=99re trying to load is missing.) It turns out that =E2=80=98shepherd-service-file=E2=80=99 was computing a s= lightly different derivation for torrc and all these files. The difference was that it was using a different utils.scm file (for instance) in its =E2=80=98module-import=E2=80=99 and =E2=80=98module-import-compiled=E2=80= =99 derivations induced by =E2=80=98gexp->derivation=E2=80=99. The reason it was using a different utils.scm (namely /gnu/store/=E2=80=A6-utils.scm instead of /home/ludo/=E2=80=A6/utils.scm) i= s that the activation script, which is run just before =E2=80=98upgrade-shepherd-services=E2=80=99 is called, modified =E2=80=98%l= oad-path=E2=80=99. I=E2=80=99m not sure the above explanation is crystal clear, but suffice to= say that this is fixed in cfd5032. :-) Anyway, this was a good stress test. Thanks, Ludo=E2=80=99. ------------=_1456401721-20383-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Feb 2016 08:24:50 +0000 Received: from localhost ([127.0.0.1]:35772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXPJy-0002j1-FD for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56198) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXPJw-0002im-S5 for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXPJq-0003Ff-Vu for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:43 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJq-0003Fb-Sl for submit@debbugs.gnu.org; Sun, 21 Feb 2016 03:24:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJp-0006up-U7 for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXPJm-0003F8-Ni for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:41 -0500 Received: from world.peace.net ([50.252.239.5]:56926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXPJm-0003F4-Ke for bug-guix@gnu.org; Sun, 21 Feb 2016 03:24:38 -0500 Received: from c-73-253-48-168.hsd1.ma.comcast.net ([73.253.48.168] helo=jojen) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aXPJf-0000sM-UD; Sun, 21 Feb 2016 03:24:32 -0500 From: Mark H Weaver To: bug-guix@gnu.org Subject: Shepherd: Problem reconfiguring from bare-bones to desktop Date: Sun, 21 Feb 2016 03:24:20 -0500 Message-ID: <8760xisc7f.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) Recently, I temporarily switched to a minimal text-only configuration of GuixSD (in order to avoid using glibc without the CVE-2015-7547 fix). When I later build a full desktop system and reconfigured, several errors were reported by shepherd while attempting to update the running services, and some messages were missing trailing newlines. Here's the tail of the console output: --8<---------------cut here---------------start------------->8--- making '/gnu/store/q9k5c12m65l19jcpx8fm213jk542pi9m-system' the current system... guix system: loading new services: ntpd elogind upower-daemon networking avahi-daemon xorg-server bitlbee tor... guix system: shepherd: Evaluating user expression (register-services (primitive-load "/gn...") ...). guix system: error: exception caught while executing 'eval' on service 'root':ERROR: In procedure open-file: No such file or directory: "/gnu/store/w5p4sxbwsmj1q9g95j4q909g6hwiksql-shepherd-tor.scm" Installation finished. No Error reported. guix system: error: service 'ntpd' could not be foundguix system: error: service 'elogind' could not be foundguix system: error: service 'upower-daemon' could not be foundguix system: error: service 'networking' could not be foundguix system: error: service 'avahi-daemon' could not be foundguix system: error: service 'xorg-server' could not be foundguix system: error: service 'bitlbee' could not be foundguix system: error: service 'tor' could not be foundroot:~# --8<---------------cut here---------------end--------------->8--- The text above was transcribed by hand from one text console to another, so it might contain mistakes. Mark ------------=_1456401721-20383-1--