unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: guix-devel@gnu.org
Subject: Re: guix system: error: service 'ssh-daemon' requires 'networking', which is undefined
Date: Tue, 19 Jul 2016 14:43:41 +0200	[thread overview]
Message-ID: <87wpkhlrwi.fsf@gnu.org> (raw)
In-Reply-To: <0329ad9f3fc879d5b76e3d9bf895d75d@tobias.gr> (Tobias Geerinckx-Rice's message of "Fri, 15 Jul 2016 20:04:26 +0200")

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> On 2016-07-15 18:50, ludo@gnu.org wrote:
>> We could improve the error message by showing the location of the
>> ‘ssh-daemon’ Shepherd service definition, though it may be better (but
>> more difficult) to show the location of the instantiation of the
>> corresponding service (the ‘(lsh-service)’ line in your config file.)
>
> That would certainly be nice. As a newcomer (points at self), simply
> scanning error messages for keywords/file locations can lead nowhere
> until you learn to read what Guix is *actually* trying to say.
>
>> Thoughts?
>
> The message ‘which is undefined’ itself is still rather cryptic: the
> first time I got it, I assumed my git checkout was broken. How about
> something closer to ‘which is not provided by any operating-system
> services’?

I improved the message along these lines in commit
2c2ec261a8d3c37e5147038f47ad24c57cde4134, let me know what you think.

To be more concrete about other improvements, here’s what should be
feasible (but needs to be discussed to see whether it’s actually
helpful):

  1. Display the location of the Shepherd service definition:

       gnu/services/ssh.scm:160:4: 'ssh-daemon' requires 'networking'…

     Trivial to implement, but the downside is that the user doesn’t
     really care about this file.

  2. Same, but also show some sort of a stack trace (but not an actual
     Scheme stack trace) showing where this Shepherd service comes from:

       gnu/services/ssh.scm:160:4: 'ssh-daemon' requires 'networking'…
       gnu/services/ssh.scm:117:30: … in extension of service 'shepherd'
       gnu/services/ssh.scm:228:2: … while folding service 'lsh’ instantiated here

     The problem is that, currently, we’d get the location of the
     (service …) form, which is in the ‘lsh-service’ procedure, in
     gnu/services/ssh.scm.

     It may be hard to come up with intelligible messages, and there’s a
     risk that showing too many lines of messages would be
     counterproductive.

Thoughts?

Ludo’.

  reply	other threads:[~2016-07-19 12:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-15 12:39 guix system: error: service 'ssh-daemon' requires 'networking', which is undefined David Craven
2016-07-15 12:58 ` Jan Synáček
2016-07-15 14:27   ` Vincent Legoll
2016-07-17  6:50     ` Jan Synáček
2016-07-15 16:50 ` Ludovic Courtès
2016-07-15 18:04   ` Tobias Geerinckx-Rice
2016-07-19 12:43     ` Ludovic Courtès [this message]
2016-07-21  6:30       ` Jan Synáček
2016-07-21  8:48         ` Vincent Legoll
2016-07-21 12:54           ` Ludovic Courtès
2016-07-21 13:00         ` Ludovic Courtès
2016-07-21 13:35           ` Vincent Legoll
2016-07-21 13:57             ` Jan Synáček
2016-07-21 14:39               ` Thompson, David
2016-07-21 15:35                 ` Andy Wingo
2016-07-21 16:10                   ` Ludovic Courtès
2016-07-21 13:36           ` Jan Synáček
  -- strict thread matches above, loose matches on Subject: below --
2016-07-15 12:24 Jan Synáček
2016-07-15 15:05 ` Alex Kost

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87wpkhlrwi.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=me@tobias.gr \
    /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 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).