GNU bug report logs - #42161
Confusing 'guix system' backtrace when root file system is missing

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>; dated Thu, 2 Jul 2020 05:24:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'Confusing 'guix system' backtrace when root file system is missing' from 'Confusing '' error message' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 42161 <at> debbugs.gnu.org:


Received: (at 42161) by debbugs.gnu.org; 14 Jul 2020 23:57:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 14 19:57:38 2020
Received: from localhost ([127.0.0.1]:51798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jvUno-0000aF-KZ
	for submit <at> debbugs.gnu.org; Tue, 14 Jul 2020 19:57:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1jvUne-0000Zi-4C
 for 42161 <at> debbugs.gnu.org; Tue, 14 Jul 2020 19:57:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43404)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1jvUnY-0000JH-CA; Tue, 14 Jul 2020 19:57:20 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41480 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1jvUnW-00046q-JJ; Tue, 14 Jul 2020 19:57:19 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>
Subject: Re: bug#42161: Confusing '' error message
References: <20200702064045.13d48e76@HIDDEN>
 <87v9j6tl11.fsf@HIDDEN>
 <20200703015335.728becb2@HIDDEN>
Date: Wed, 15 Jul 2020 01:57:13 +0200
In-Reply-To: <20200703015335.728becb2@HIDDEN> (Denis
 Carikli's message of "Fri, 3 Jul 2020 01:53:34 +0200")
Message-ID: <87365tlkfa.fsf@HIDDEN>
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: -2.3 (--)
X-Debbugs-Envelope-To: 42161
Cc: 42161 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN> 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 specif=
y 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 the=
 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 e=
rror message is
     printed in this case.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#42161; Package guix. Full text available.

Message received at 42161 <at> debbugs.gnu.org:


Received: (at 42161) by debbugs.gnu.org; 3 Jul 2020 04:41:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 03 00:41:13 2020
Received: from localhost ([127.0.0.1]:56107 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jrDVh-0006nb-0I
	for submit <at> debbugs.gnu.org; Fri, 03 Jul 2020 00:41:13 -0400
Received: from cyberdimension.org ([80.67.179.20]:42346
 helo=gnutoo.cyberdimension.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <GNUtoo@HIDDEN>) id 1jr99c-000878-SV
 for 42161 <at> debbugs.gnu.org; Thu, 02 Jul 2020 20:02:10 -0400
Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1])
 by cyberdimension.org (OpenSMTPD) with ESMTP id bd3fab94;
 Thu, 2 Jul 2020 23:58:49 +0000 (UTC)
Received: from primarylaptop.localdomain (localhost.localdomain [::1])
 by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 727080b4;
 Thu, 2 Jul 2020 23:58:49 +0000 (UTC)
Date: Fri, 3 Jul 2020 01:53:34 +0200
From: Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>
To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= <ludo@HIDDEN>
Subject: Re: bug#42161: Confusing '' error message
Message-ID: <20200703015335.728becb2@HIDDEN>
In-Reply-To: <87v9j6tl11.fsf@HIDDEN>
References: <20200702064045.13d48e76@HIDDEN>
 <87v9j6tl11.fsf@HIDDEN>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="Sig_/j_isr8cLbUcC_j10IUp8ke1";
 protocol="application/pgp-signature"; micalg=pgp-sha256
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 42161
X-Mailman-Approved-At: Fri, 03 Jul 2020 00:41:12 -0400
Cc: 42161 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--Sig_/j_isr8cLbUcC_j10IUp8ke1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, 02 Jul 2020 09:48:26 +0200
Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

> Hello,
Hi,

> If you=E2=80=99re having troubles building your system, I=E2=80=99d try b=
uilding with
> =E2=80=98-v3=E2=80=99 (verbose mode) for example, or =E2=80=98--on-error=
=3Ddebug=E2=80=99 if the problem
> is in your =E2=80=98system.scm=E2=80=99 file.

Here's with -v3
> # guix system -v3 --no-bootloader init system.scm /srv/distros/guix/
> 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

And with -v3 and --on-error=3Ddebug:
> # guix system  --on-error=3Ddebug -v3 --no-bootloader init system.scm
> /srv/distros/guix/ 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

In both cases it doesn't point to my system.scm, so I'm trying to start
suspecting that the issue is somewhere else. Though you need to keep in
mind that I just read the Scheme crashcourse from the GuiX cookbook
days ago, so I'm really far from being fluent in Scheme.

> > so I'm probably doing something wrong here as I'm probably not
> > supposed to abuse guix system init to create chroots for lxc.
>=20
> I=E2=80=99m not familiar with lxc, but it looks like it should work.
In a nutshell I'm trying to install GuiX:
- without a bootloader
- in a directory that isn't the root of a filesystem

I've tried also on /mnt which is backed by a partition:
> /dev/sdb4 on /mnt type ext4 (rw,relatime)

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.

Denis.

--Sig_/j_isr8cLbUcC_j10IUp8ke1
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAl7+c38ACgkQX138wUF3
4mO1vw/+OibJ2YnWV3kyJllfpWzrSDavbpMLUHXtF7keNiTxjgaydxH0K5vsnpkJ
9QidwXUEcV9/sxDnN8w7obGgCE1qQtkzmzYsGoikgm7bll1OUq3XL80H1SOBAjG2
A80lvZBCSzm8Bi9MtkpaFT+/11j9hGqwqOIHLSN8JCdIhZTSYVKLQiqD5Bm5aDbg
AEVKK+8Xl1oHGvpevsP+yns2AyhbTPNnyk2HSAL65HsgGFtfL5vzZ4BevVJ2Vn+6
KV9+7uc5flGINm9yE/yM/wQssrD/9WCpEqIIzrcSKuUL7L1QC6fMYUEooGHEJ2cE
e1901oNlwUidJBZdcmfo9FdWlNIglVdf83QL6MufS8uqf4AioIs4LEtO8B7lPGls
cNhEqtJyQlrqHFiCvQl2f0fvmCCzC7MVQzWKus35g4yRFCO9mWkStzGlwLOWSm3v
L69ZenCBHEU4I5ecqEwdrK5/UzRVQjXCgI/SrCp5V2m32rBCeVnDNCw2mMCeotSm
tpZ2AM5eCa7G8SlIIFNMVsa9nT8kk0W9fa8OIec+bNgh5DmYE3VzNFx8paTLgvuX
kvObirNIUXzh8zD4JoipBNr0uW8K7r+sL3IAnYt0u2vGcNDJWLBUoQn19lHcfFgi
QiHjjEKlKlXDl/j/43yVGrr3qgwNZpV/XoY9yNllU4GVRKExanA=
=rBYn
-----END PGP SIGNATURE-----

--Sig_/j_isr8cLbUcC_j10IUp8ke1--




Information forwarded to bug-guix@HIDDEN:
bug#42161; Package guix. Full text available.

Message received at 42161 <at> debbugs.gnu.org:


Received: (at 42161) by debbugs.gnu.org; 2 Jul 2020 07:48:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 02 03:48:37 2020
Received: from localhost ([127.0.0.1]:54326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jqtxU-00057H-PZ
	for submit <at> debbugs.gnu.org; Thu, 02 Jul 2020 03:48:36 -0400
Received: from eggs.gnu.org ([209.51.188.92]:37472)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1jqtxS-000574-AX
 for 42161 <at> debbugs.gnu.org; Thu, 02 Jul 2020 03:48:35 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56889)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1jqtxM-0007O7-L6; Thu, 02 Jul 2020 03:48:28 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52460 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1jqtxM-00036O-4J; Thu, 02 Jul 2020 03:48:28 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>
Subject: Re: bug#42161: Confusing '' error message
References: <20200702064045.13d48e76@HIDDEN>
Date: Thu, 02 Jul 2020 09:48:26 +0200
In-Reply-To: <20200702064045.13d48e76@HIDDEN> (Denis
 Carikli's message of "Thu, 2 Jul 2020 06:40:45 +0200")
Message-ID: <87v9j6tl11.fsf@HIDDEN>
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: -2.3 (--)
X-Debbugs-Envelope-To: 42161
Cc: 42161 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello,

Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN> skribis:

> When doing guix system system.scm /path/to/empty/directory, I have the
> following error message:
>
>> # guix system --verbosity=3D99 --debug=3D99 --no-bootloader  init
>> system.scm /srv/distros/guix/ guile: warning: failed to install locale
>> acquiring global GC lock `/var/guix/gc.lock'
>> acquiring read lock on `/var/guix/temproots/14408'
>> acquiring write lock on `/var/guix/temproots/14408'
> [...]
>> acquiring write lock on `/var/guix/temproots/14408'
>> downgrading to read lock on `/var/guix/temproots/14408'
>> 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

Ah, I think it=E2=80=99s a longstanding bug having to do with =E2=80=98--de=
bug=E2=80=99 for
levels greater than 4 or something.

In general, I recommend not using =E2=80=98--debug=E2=80=99: it=E2=80=99s r=
arely of any use,
even for someone working on Guix (but I reckon it=E2=80=99s logical to give=
 it a
try when you=E2=80=99re trying to debug something!).  Perhaps we should just
rename it to =E2=80=98--daemon-debug=E2=80=99 or something.

If you=E2=80=99re having troubles building your system, I=E2=80=99d try bui=
lding with
=E2=80=98-v3=E2=80=99 (verbose mode) for example, or =E2=80=98--on-error=3D=
debug=E2=80=99 if the problem
is in your =E2=80=98system.scm=E2=80=99 file.

> so I'm probably doing something wrong here as I'm probably not supposed
> to abuse guix system init to create chroots for lxc.

I=E2=80=99m not familiar with lxc, but it looks like it should work.

HTH!

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#42161; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jul 2020 05:23:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 02 01:23:28 2020
Received: from localhost ([127.0.0.1]:54165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jqrh0-0001UT-BR
	for submit <at> debbugs.gnu.org; Thu, 02 Jul 2020 01:23:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:57104)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <GNUtoo@HIDDEN>) id 1jqrAR-0000YD-7H
 for submit <at> debbugs.gnu.org; Thu, 02 Jul 2020 00:49:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60886)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <GNUtoo@HIDDEN>)
 id 1jqrAQ-0003LG-Ug
 for bug-guix@HIDDEN; Thu, 02 Jul 2020 00:49:46 -0400
Received: from cyberdimension.org ([2001:910:1314:ffff::1]:46248
 helo=gnutoo.cyberdimension.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <GNUtoo@HIDDEN>)
 id 1jqrAO-000299-RP
 for bug-guix@HIDDEN; Thu, 02 Jul 2020 00:49:46 -0400
Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1])
 by cyberdimension.org (OpenSMTPD) with ESMTP id 6c2b75ff
 for <bug-guix@HIDDEN>; Thu, 2 Jul 2020 04:46:30 +0000 (UTC)
Received: from primarylaptop.localdomain (localhost.localdomain [::1])
 by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 164b03c2
 for <bug-guix@HIDDEN>; Thu, 2 Jul 2020 04:46:30 +0000 (UTC)
Date: Thu, 2 Jul 2020 06:40:45 +0200
From: Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Confusing '' error message
Message-ID: <20200702064045.13d48e76@HIDDEN>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="Sig_/=R=BQSKEJCZzYu=RvGg2qLs";
 protocol="application/pgp-signature"; micalg=pgp-sha256
Received-SPF: pass client-ip=2001:910:1314:ffff::1;
 envelope-from=GNUtoo@HIDDEN; helo=gnutoo.cyberdimension.org
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 02 Jul 2020 01:23:25 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--Sig_/=R=BQSKEJCZzYu=RvGg2qLs
Content-Type: multipart/mixed; boundary="MP_/1rBLm3DX+d880FevLv4k/vZ"

--MP_/1rBLm3DX+d880FevLv4k/vZ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

When doing guix system system.scm /path/to/empty/directory, I have the
following error message:

> # guix system --verbosity=3D99 --debug=3D99 --no-bootloader  init
> system.scm /srv/distros/guix/ guile: warning: failed to install locale
> acquiring global GC lock `/var/guix/gc.lock'
> acquiring read lock on `/var/guix/temproots/14408'
> acquiring write lock on `/var/guix/temproots/14408'
[...]
> acquiring write lock on `/var/guix/temproots/14408'
> downgrading to read lock on `/var/guix/temproots/14408'
> 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

so I'm probably doing something wrong here as I'm probably not supposed
to abuse guix system init to create chroots for lxc.

However the issue is that there is no clear error message nor backtrace
telling me what exactly is wrong here. I don't even have a line in my
file that tells me what line is wrong.

I've attached the system.scm used for reference.

Denis.

--MP_/1rBLm3DX+d880FevLv4k/vZ
Content-Type: text/x-scheme
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=system.scm

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules irc screen ssh tor)

(operating-system
 (host-name "test")
 (timezone "Europe/Paris")
 (locale "en_US.utf8")

 (bootloader (bootloader-configuration
	      (bootloader grub-bootloader)
	      (target "/dev/sdX")))
 (file-systems %base-file-systems)

 (users (cons (user-account
	       (name "irssi")
	       (group "users")
	       (home-directory "/home/irssi"))
	      %base-user-accounts))

 (packages (cons* irssi openssh screen tor %base-packages ))
 (services (cons* (service dhcp-client-service-type)
                  (service openssh-service-type
                           (openssh-configuration
			    (port-number 222)
			    (permit-root-login #t)
			    ; No passwords logins
			    (password-authentication? #f)
			    (challenge-response-authentication? #f)
			    (use-pam? #f)
			    )
			   )
;                 (service tor-service)
;                 (service tor-hidden-service ((222 "127.0.0.1:222")) )
		  %base-services)))

--MP_/1rBLm3DX+d880FevLv4k/vZ--

--Sig_/=R=BQSKEJCZzYu=RvGg2qLs
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAl79ZU0ACgkQX138wUF3
4mPLRBAApwv/nT//Wp+Sd23Oxghfsa61PETp+1KQawYzuhhMPTyJ4zODjCt1yi/y
VkFCZhm9u7quOudBxG2HBL/92TD1/RZ5RB8k5wBJnYrxzf9wRzPpEtjfaF2mJpPi
T2y2KjJVtNidZFzm9cQDTOdriP+UC1CKCm71Yq3iS3mOGG08LDH4XFaa+cCIGSlU
Rdr1aS/SMxgIX9Xs8MMQMLBFR01BFYt960Fi6/jpcOHM0hV+s5+sdjo2RDqWx5Qq
9SaHWUO2xCqNd4eOXByTPXuIxyeROdaPBS1qU3MfUJhJwCS+SGAwVFX0vLDT5B5I
BoPuOYsEr5IQOMHZCzal1ORreLfnBHTjKZMQA7iKAUO1HaBZyc3bpnoKI1C6quWy
vX2oPuCmqdVpikSnu75mPS+NvDysZimt6bbsBcW94BNl4qe3t2QzqRQDh++p/x6i
8MR0CkPsn6dVPTnNE09g+3ge59qs5/X6mGp6HA9wgpItBqsBpOjEt516eAHsVGW5
iqeSt0ygkqivsJGb+Mw2yI5Zj5SyabgCDam8XogdxTNy7JKm5g1g7mUGI14rJ9G7
dGtZsTSMSx71lQMDYDtAl4ldWoSacM4RXH2qSBhcs1ko09mJAXlikZDT1QYF4cJt
Vgl2GZIZ/ZVDePPMq4QAZ5Ar8j8HuNT7/arPNcpQFHd7ghDUPO8=
=74PI
-----END PGP SIGNATURE-----

--Sig_/=R=BQSKEJCZzYu=RvGg2qLs--




Acknowledgement sent to Denis 'GNUtoo' Carikli <GNUtoo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#42161; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 15 Jul 2020 10:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.