GNU bug report logs - #41236
guix deploy error message can be too obscure to understand

Previous Next

Package: guix;

Reported by: Brice Waegeneire <brice <at> waegenei.re>

Date: Wed, 13 May 2020 15:43:02 UTC

Severity: normal

To reply to this bug, email your comments to 41236 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41236; Package guix. (Wed, 13 May 2020 15:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brice Waegeneire <brice <at> waegenei.re>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 13 May 2020 15:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: bug-guix <at> gnu.org
Subject: guix deploy error message can be too obscure to understand
Date: Wed, 13 May 2020 15:42:16 +0000
Hello again,

Guix deploy errors message can be hard to understand, see the following
output for example:

--8<---------------cut here---------------start------------->8---
$ guix deploy -Lmodules systems/hystou-p04.scm
guix deploy: warning: failed to load '(config workstation)':
no code for module (gnu services lightdm)
The following 1 machine will be deployed:
  abricot

guix deploy: deploying to abricot...
sending 0 store items (0 MiB) to '192.168.10.10'...
sending 0 store items (0 MiB) to '192.168.10.10'...
guix deploy: error: failed to deploy abricot: Wrong type argument in 
position 1 (expecting struct): ~S
--8<---------------cut here---------------end--------------->8---

By using “guix repl“ I managed to understand that I was setting a field 
to
a undeclared variable: “keyboard-layout“.  A stupid mistake on my part 
that
should have been trivial to spot took hours instead because the error
message was obscure.

--8<---------------cut here---------------start------------->8---
(operating-system
  …
  (bootloader
    (bootloader-configuration
       …
      (keyboard-layout keyboard-layout))))
--8<---------------cut here---------------end--------------->8---

- Brice




This bug report was last modified 3 years and 320 days ago.

Previous Next


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