unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41236: guix deploy error message can be too obscure to understand
@ 2020-05-13 15:42 Brice Waegeneire
  0 siblings, 0 replies; only message in thread
From: Brice Waegeneire @ 2020-05-13 15:42 UTC (permalink / raw)
  To: 41236

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-13 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 15:42 bug#41236: guix deploy error message can be too obscure to understand Brice Waegeneire

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).