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 ms11 with LMTPS id OOEeHUdV+19IGgAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 19:28:07 +0000 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 4L3kGEdV+1/4JgAAbx9fmQ (envelope-from ) for ; Sun, 10 Jan 2021 19:28:07 +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 C8041940309 for ; Sun, 10 Jan 2021 19:28:06 +0000 (UTC) Received: from localhost ([::1]:53154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kygNg-0005rO-Fk for larch@yhetil.org; Sun, 10 Jan 2021 14:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kygMg-0005MJ-S6 for bug-guix@gnu.org; Sun, 10 Jan 2021 14:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kygMg-0000OZ-Km for bug-guix@gnu.org; Sun, 10 Jan 2021 14:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kygMg-0004N1-HS for bug-guix@gnu.org; Sun, 10 Jan 2021 14:27:02 -0500 Subject: bug#42161: Confusing 'guix system' backtrace when root file system is missing Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sun, 10 Jan 2021 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42161 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Mail-Followup-To: 42161@debbugs.gnu.org, maxim.cournoyer@gmail.com, GNUtoo@cyberdimension.org Received: via spool by 42161-done@debbugs.gnu.org id=D42161.161030679016750 (code D ref 42161); Sun, 10 Jan 2021 19:27:02 +0000 Received: (at 42161-done) by debbugs.gnu.org; 10 Jan 2021 19:26:30 +0000 Received: from localhost ([127.0.0.1]:54977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kygMA-0004M5-9O for submit@debbugs.gnu.org; Sun, 10 Jan 2021 14:26:30 -0500 Received: from mail-io1-f49.google.com ([209.85.166.49]:41607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kygM8-0004Lq-Nj for 42161-done@debbugs.gnu.org; Sun, 10 Jan 2021 14:26:29 -0500 Received: by mail-io1-f49.google.com with SMTP id q1so1142114ion.8 for <42161-done@debbugs.gnu.org>; Sun, 10 Jan 2021 11:26:28 -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=+ppVZrRIJVA8Dfc9mgfmGiON/2a0KYWvK4A7Iro9ths=; b=VYgKp4dXg+Yhw6lA2nJKQdiauD+pZz20YLAAQGbL1yVp7ktWODExMe3OEHb0ySojYT V4JaslkLeq3y4RNL624O9EONM/L+Wk3/B8aYgxGUnZjv/U9wOwozmrHlfwpsx4QtAbv5 ZCkcB343hUiQ2mrnvgn3azfvGgabjEw1PjIP70trGNccRKvnp6mKhv0umUEAA1RRv41r EERfi3sbofh6h+cmNsJrv4phGWKBu9FyShyMCzIjIeGt5SweyilThuco5l1pkTU+8Hom XvRmhGuw2lCa+RbbaXYNVVPY3I9Kzn0Ws6W70aGjt64Sk4aQeuVKu3oqe04d+jZqOXr6 TKkg== 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=+ppVZrRIJVA8Dfc9mgfmGiON/2a0KYWvK4A7Iro9ths=; b=NIIezOsDKGoG3wSzs3Mb94+Sz3vbRBIU0PXNDH77erSzSUeRRxnpSVShSTXgVR+Sno +rN/OBUsntOS3UVPDqHQRNoIgbXgHVyGEvg8ykNCY34RA9m5FGjcBreeaupELUZ+rQ2o ipaX+QY8DAK4puPXKHOMFvymqzyMwrmDc9LGq8pcDpvfumTqtWoIYRIh8IuDCEmaEHcb 7jcF5WTBPvFSmlwJavgfUiTELIXjrtFURFoaPrUlSUjW28uHhhkE4hEagTfBEU3emezA QJ5y9FJY18XujuBEB68KyGJuodsowmxwvZgLox1ytmNpsj6eZ9n5lAqn4uu/WsDQd0Z7 ayVQ== X-Gm-Message-State: AOAM532lbUsrcDR+WTimy5+5lTC3w196z7NL0gLV0LnyTwIsuQi1RiNm hxqajK5I3N65E4Lss5x8YImNIehFne4= X-Google-Smtp-Source: ABdhPJzPWAcBR0+rJa1lmQ9CX5u445XTlkn74qsIkN5MwjNm9Hme/XfqZXKwM1Mgt3ldGAoPCYv/wQ== X-Received: by 2002:a02:5581:: with SMTP id e123mr11628519jab.98.1610306783071; Sun, 10 Jan 2021 11:26:23 -0800 (PST) Received: from hurd (dsl-205-233-124-188.b2b2c.ca. [205.233.124.188]) by smtp.gmail.com with ESMTPSA id b82sm14213168ilg.44.2021.01.10.11.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jan 2021 11:26:22 -0800 (PST) From: Maxim Cournoyer References: <20200702064045.13d48e76@primarylaptop.localdomain> <87v9j6tl11.fsf@gnu.org> <20200703015335.728becb2@primarylaptop.localdomain> <87365tlkfa.fsf@gnu.org> Date: Sun, 10 Jan 2021 14:26:21 -0500 In-Reply-To: <87365tlkfa.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 15 Jul 2020 01:57:13 +0200") Message-ID: <875z4461b6.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: 42161-done@debbugs.gnu.org, Denis 'GNUtoo' Carikli Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=VYgKp4dX; 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: C8041940309 X-Spam-Score: -1.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: GlkrHX1yKtJP Hello Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Denis 'GNUtoo' Carikli skribis: > >> And again I've the same error: >>> guix system --on-error=3Ddebug -v3 --no-bootloader init system.scm >>> /mnt/ guile: warning: failed to install locale >>> Backtrace: >>> 1 (primitive-load "/root/.config/guix/current/bin/guix") >>> In guix/ui.scm: >>> 1949:12 0 (run-guix-command _ . _) >>>=20 >>> guix/ui.scm:1949:12: In procedure run-guix-command: >>> In procedure struct-vtable: Wrong type argument in position 1 >>> (expecting struct): #f >> >> Is that part of my system.scm really correct: >>> (file-systems %base-file-systems) >> >> I hope that I'm not polluting bugreports for issues that I'm responsible >> of, but I don't have enough knowledge to know that in advance, and I >> was advised to bugreport on #guix IRC channel. > > Sorry for taking so long to get back to you. You were right: the root > cause here is that the =E2=80=98file-systems=E2=80=99 field does not spec= ify a root file > system. > > Could you add one and let me know how it goes? > > I=E2=80=99ve done two things to improve the situation: > > 1. Commit a168c3e4f8d580f70e1c26bcdfc5b8378b2fa42d fixes a > longstanding issues where we=E2=80=99d get useless backtraces like t= he one > above in such circumstances. > > 2. Commit d7e9e0bbc9aadec3e1830767a8771bfbe9c43155 changes =E2=80=98guix > system=E2=80=99 so that a =E2=80=9Cmissing root file system=E2=80=9D= error message is > printed in this case. It seems you've addressed the problem thoroughly, thank you! Closing, Maxim