all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
To: 42161@debbugs.gnu.org
Subject: bug#42161: Confusing '' error message
Date: Thu, 2 Jul 2020 06:40:45 +0200	[thread overview]
Message-ID: <20200702064045.13d48e76@primarylaptop.localdomain> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1196 bytes --]

Hi,

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

> # guix system --verbosity=99 --debug=99 --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 _ . _)
> 
> 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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: system.scm --]
[-- Type: text/x-scheme, Size: 1060 bytes --]

(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)))

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2020-07-02  5:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-02  4:40 Denis 'GNUtoo' Carikli [this message]
2020-07-02  7:48 ` bug#42161: Confusing '' error message Ludovic Courtès
2020-07-02 23:53   ` Denis 'GNUtoo' Carikli
2020-07-14 23:57     ` Ludovic Courtès
2021-01-10 19:26       ` bug#42161: Confusing 'guix system' backtrace when root file system is missing Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200702064045.13d48e76@primarylaptop.localdomain \
    --to=gnutoo@cyberdimension.org \
    --cc=42161@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.