GNU bug report logs - #30939
shepherd: detailed output should be placed into well-known location and not tty

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; Severity: important; Reported by: ng0 <ng0@HIDDEN>; merged with #36264; dated Sun, 25 Mar 2018 18:36:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 30939 36264. Request was from Brice Waegeneire <brice@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 30939) by debbugs.gnu.org; 26 Jun 2019 18:07:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 26 14:07:24 2019
Received: from localhost ([127.0.0.1]:37016 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hgCKI-0004n6-CB
	for submit <at> debbugs.gnu.org; Wed, 26 Jun 2019 14:07:22 -0400
Received: from mx2.mailbox.org ([80.241.60.215]:22598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hgCKG-0004mo-7E
 for 30939 <at> debbugs.gnu.org; Wed, 26 Jun 2019 14:07:20 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:1:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id F2F9FA001A
 for <30939 <at> debbugs.gnu.org>; Wed, 26 Jun 2019 20:07:13 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp1.mailbox.org ([80.241.60.240])
 by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de
 [80.241.56.115]) (amavisd-new, port 10030)
 with ESMTP id 9CXJF8rd499E for <30939 <at> debbugs.gnu.org>;
 Wed, 26 Jun 2019 20:07:08 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: still relevant
Message-Id: <FABCF7A5-CE74-478C-B581-D3142FECD545@HIDDEN>
Date: Wed, 26 Jun 2019 20:07:06 +0200
To: 30939 <at> debbugs.gnu.org
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30939
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.7 (-)

This came up again recently, compare the discussion here:

https://lists.gnu.org/archive/html/guix-devel/2019-06/msg00186.html

Here=E2=80=99s some code to wrap an executable manually to capture its =
output
and send it to syslog:

(define* (logger-wrapper name exec . args)
  "Return a derivation that builds a script to start a process with
standard output and error redirected to syslog via logger."
  (define exp
    #~(begin
        (use-modules (ice-9 popen))
        (let* ((pid    (number->string (getpid)))
               (logger #$(file-append inetutils "/bin/logger"))
               (args   (list "-t" #$name (string-append "--id=3D" pid)))
               (pipe   (apply open-pipe* OPEN_WRITE logger args)))
          (dup pipe 1)
          (dup pipe 2)
          (execl #$exec #$exec #$@args))))
  (program-file (string-append name "-logger") exp))





Information forwarded to bug-guix@HIDDEN:
bug#30939; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from clement@HIDDEN (Clément Lassieur) to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 20:14:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 27 16:14:54 2018
Received: from localhost ([127.0.0.1]:56278 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0uze-000195-D8
	for submit <at> debbugs.gnu.org; Tue, 27 Mar 2018 16:14:54 -0400
Received: from world.peace.net ([50.252.239.5]:58560)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1f0uzc-00018r-G7
 for 30939 <at> debbugs.gnu.org; Tue, 27 Mar 2018 16:14:52 -0400
Received: from pool-72-93-26-128.bstnma.east.verizon.net ([72.93.26.128]
 helo=jojen)
 by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <mhw@HIDDEN>)
 id 1f0uzV-0002CX-LZ; Tue, 27 Mar 2018 16:14:45 -0400
From: Mark H Weaver <mhw@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
References: <20180325183555.cilo6qyrj43jh6he@abyayala>
 <87a7uvdke0.fsf@HIDDEN> <20180326150859.6yf244bgjxi4oawt@abyayala>
 <87o9jaynpn.fsf@HIDDEN>
Date: Tue, 27 Mar 2018 16:13:52 -0400
In-Reply-To: <87o9jaynpn.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Tue, 27 Mar 2018 09:36:20 +0200")
Message-ID: <87fu4l1dkv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <at> debbugs.gnu.org, ng0 <ng0@HIDDEN>
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: 0.0 (/)

ludo@HIDDEN (Ludovic Court=C3=A8s) writes:

> ng0 <ng0@HIDDEN> skribis:
>
>> Sometimes I succeed building a system generation with an OpenSMTPD confi=
g-file
>> which has syntax error that aren't picked up at configure time. When I r=
eboot,
>> not being aware of this, I have to switch to tty to read the reasons why=
 it
>> crashed.
>> Because this is a desktop system, I have to start the service again to s=
ee
>> the error output directly from the daemon.
>
> I think shepherd could capture stdout/stderr of the processes it starts
> and make it available, in a way similar in spirit to what =E2=80=98journa=
lctl=E2=80=99
> does.  That would allow you to see the output of the daemon that failed.

This would be very helpful.

      Mark




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

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


Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 18:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 27 14:59:52 2018
Received: from localhost ([127.0.0.1]:56245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0tp1-0007nv-PI
	for submit <at> debbugs.gnu.org; Tue, 27 Mar 2018 14:59:51 -0400
Received: from mail.lassieur.org ([83.152.10.219]:58296)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <clement@HIDDEN>) id 1f0toz-0007nm-Mi
 for 30939 <at> debbugs.gnu.org; Tue, 27 Mar 2018 14:59:50 -0400
Received: from rodion (88.191.118.83 [88.191.118.83])
 by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 3a27b4bd
 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); 
 Tue, 27 Mar 2018 18:59:47 +0000 (UTC)
References: <20180325183555.cilo6qyrj43jh6he@abyayala>
 <87a7uvdke0.fsf@HIDDEN> <20180326150859.6yf244bgjxi4oawt@abyayala>
 <87o9jaynpn.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 25.3.1
From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur <clement@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
In-reply-to: <87o9jaynpn.fsf@HIDDEN>
Date: Tue, 27 Mar 2018 20:59:46 +0200
Message-ID: <87370lcpjx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <at> debbugs.gnu.org, ng0 <ng0@HIDDEN>
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: -0.0 (/)

Ludovic Courtès <ludo@HIDDEN> writes:

> Hello,
>
> ng0 <ng0@HIDDEN> skribis:
>
>> Sometimes I succeed building a system generation with an OpenSMTPD config-file
>> which has syntax error that aren't picked up at configure time. When I reboot,
>> not being aware of this, I have to switch to tty to read the reasons why it
>> crashed.
>> Because this is a desktop system, I have to start the service again to see
>> the error output directly from the daemon.
>
> I think shepherd could capture stdout/stderr of the processes it starts
> and make it available, in a way similar in spirit to what ‘journalctl’
> does.  That would allow you to see the output of the daemon that failed.

That would be great!

> That’s the only solution I can think of.  Of course we don’t have to do
> that if the daemon writes error messages to syslog, but not all of them do.
>
> Thanks,
> Ludo’.





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

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


Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 09:15:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 27 05:15:15 2018
Received: from localhost ([127.0.0.1]:55186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0khG-0004vH-Ky
	for submit <at> debbugs.gnu.org; Tue, 27 Mar 2018 05:15:14 -0400
Received: from static.195.114.201.195.clients.your-server.de
 ([195.201.114.195]:54248 helo=conspiracy.of.n0.is)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ng0@HIDDEN>) id 1f0khE-0004v4-LT
 for 30939 <at> debbugs.gnu.org; Tue, 27 Mar 2018 05:15:13 -0400
Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id df018a85
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Tue, 27 Mar 2018 09:15:11 +0000 (UTC)
Date: Tue, 27 Mar 2018 09:15:29 +0000
From: ng0 <ng0@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
Message-ID: <20180327091529.pcju57bro2snuxtb@abyayala>
References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@HIDDEN>
 <20180326150859.6yf244bgjxi4oawt@abyayala> <87o9jaynpn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87o9jaynpn.fsf@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <at> debbugs.gnu.org, ng0 <ng0@HIDDEN>
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: -0.0 (/)

Ludovic Courtès transcribed 839 bytes:
> Hello,
> 
> ng0 <ng0@HIDDEN> skribis:
> 
> > Sometimes I succeed building a system generation with an OpenSMTPD config-file
> > which has syntax error that aren't picked up at configure time. When I reboot,
> > not being aware of this, I have to switch to tty to read the reasons why it
> > crashed.
> > Because this is a desktop system, I have to start the service again to see
> > the error output directly from the daemon.
> 
> I think shepherd could capture stdout/stderr of the processes it starts
> and make it available, in a way similar in spirit to what ‘journalctl’
> does.  That would allow you to see the output of the daemon that failed.

That sounds good.

> That’s the only solution I can think of.  Of course we don’t have to do
> that if the daemon writes error messages to syslog, but not all of them do.
> 
> Thanks,
> Ludo’.

Well, just a way to catch them would be good.

Thanks




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

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


Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 07:36:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 27 03:36:24 2018
Received: from localhost ([127.0.0.1]:55090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0j9c-0000e6-Fk
	for submit <at> debbugs.gnu.org; Tue, 27 Mar 2018 03:36:24 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:48302)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1f0j9b-0000dy-2U
 for 30939 <at> debbugs.gnu.org; Tue, 27 Mar 2018 03:36:23 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 82DC512506;
 Tue, 27 Mar 2018 09:36:22 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id gnvHsaE6wYCQ; Tue, 27 Mar 2018 09:36:21 +0200 (CEST)
Received: from ribbon (vpn-0-27.aquilenet.fr [IPv6:2a0c:e300:4:27::])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 6C0C8123A9;
 Tue, 27 Mar 2018 09:36:21 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: ng0 <ng0@HIDDEN>
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
References: <20180325183555.cilo6qyrj43jh6he@abyayala>
 <87a7uvdke0.fsf@HIDDEN> <20180326150859.6yf244bgjxi4oawt@abyayala>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 7 Germinal an 226 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 27 Mar 2018 09:36:20 +0200
In-Reply-To: <20180326150859.6yf244bgjxi4oawt@abyayala> (ng0@HIDDEN's message
 of "Mon, 26 Mar 2018 15:10:36 +0000")
Message-ID: <87o9jaynpn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <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 (+)

Hello,

ng0 <ng0@HIDDEN> skribis:

> Sometimes I succeed building a system generation with an OpenSMTPD config=
-file
> which has syntax error that aren't picked up at configure time. When I re=
boot,
> not being aware of this, I have to switch to tty to read the reasons why =
it
> crashed.
> Because this is a desktop system, I have to start the service again to see
> the error output directly from the daemon.

I think shepherd could capture stdout/stderr of the processes it starts
and make it available, in a way similar in spirit to what =E2=80=98journalc=
tl=E2=80=99
does.  That would allow you to see the output of the daemon that failed.

That=E2=80=99s the only solution I can think of.  Of course we don=E2=80=99=
t have to do
that if the daemon writes error messages to syslog, but not all of them do.

Thanks,
Ludo=E2=80=99.




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

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


Received: (at 30939) by debbugs.gnu.org; 26 Mar 2018 15:10:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 26 11:10:27 2018
Received: from localhost ([127.0.0.1]:54502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0TlT-0000q3-92
	for submit <at> debbugs.gnu.org; Mon, 26 Mar 2018 11:10:27 -0400
Received: from static.195.114.201.195.clients.your-server.de
 ([195.201.114.195]:54152 helo=conspiracy.of.n0.is)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ng0@HIDDEN>) id 1f0TlO-0000pr-Th
 for 30939 <at> debbugs.gnu.org; Mon, 26 Mar 2018 11:10:24 -0400
Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 5c507145
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Mon, 26 Mar 2018 15:10:19 +0000 (UTC)
Date: Mon, 26 Mar 2018 15:10:36 +0000
From: ng0 <ng0@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
Message-ID: <20180326150859.6yf244bgjxi4oawt@abyayala>
References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87a7uvdke0.fsf@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <at> debbugs.gnu.org, ng0 <ng0@HIDDEN>
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: -0.0 (/)

Hi Ludovic,

Ludovic Courtès transcribed 790 bytes:
> Hi ng0,
> 
> ng0 <ng0@HIDDEN> skribis:
> 
> > Problem, not just when a service is misbehaving after successful system reconfigure:
> >
> > $ sudo herd start smtpd
> > Password: 
> > Service smtpd could not be started.
> > herd: failed to start service smtpd
> >
> >
> >
> > This is on virtual terminal in X11, as well as in /var/log/messages,
> > /var/log/shepherd.log, etc.
> > This is not enough. If I wanted more info, I'd expect that
> > sudo herd status smtpd would give it (which it does not), so the only
> > reliable source of information so far is tty 1. Can we fix that in
> > one of the next shepherd releases? Or is this something we have to
> > fix in Guix?
> 
> So you’re saying that you’d like shepherd to show more info as to why
> the service could not be started, right?
> 
> Thanks,
> Ludo’.

Must have been late and too many failed attempts at what I'm trying to do.
Yes. So I can't make any daemons I run out there fail, but for the
current case I have in Guix for this:

Sometimes I succeed building a system generation with an OpenSMTPD config-file
which has syntax error that aren't picked up at configure time. When I reboot,
not being aware of this, I have to switch to tty to read the reasons why it
crashed.
Because this is a desktop system, I have to start the service again to see
the error output directly from the daemon.

I think I know why this happens (that the output goes to tty), but nevertheless
it would be good if shepherd were more capable than beint captain obvious:
Start: "Oh, you see it is started". Crashed: "Oh, no has your daemon crashed?",
like it is now.
....
Okay, I just looked at some other daemon controls I run, and maybe it's good that
shepherd is limited in its output. It does this one job. What I'd like to have
as a sysadmin is the ability to tail something like say /var/log/shepherd.fail.log
and services which are failing log into this file (or a set of files in /var/log/shepherd/
in files like $daemonname.fail.log).
Given the absence of the kitchensink of tools in systemd, you got used to something like
"status" and immediate "HELLO! This is why I failed: (5 lines)". With shepherd, you can't
even grep for the failures in locations newcomers to the system would assume (like:
/var/log/shepherd.log (it is the daemon control application)).

Long store short, greping for failures to fix daemon configurations and not having to
look at tty 1 (which can be noisy depending on what you run, I have some notorious tty
spammers) would be good.
And not sacrifice the simplicity of Shepherd :)




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

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


Received: (at 30939) by debbugs.gnu.org; 26 Mar 2018 13:41:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 26 09:41:31 2018
Received: from localhost ([127.0.0.1]:53757 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0SNP-0006st-J6
	for submit <at> debbugs.gnu.org; Mon, 26 Mar 2018 09:41:31 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:41016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1f0SNN-0006sj-BG
 for 30939 <at> debbugs.gnu.org; Mon, 26 Mar 2018 09:41:30 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id CA21E12356;
 Mon, 26 Mar 2018 15:41:28 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ZStRgf7C_J8U; Mon, 26 Mar 2018 15:41:28 +0200 (CEST)
Received: from ribbon (unknown [193.50.110.93])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id F2E991095F;
 Mon, 26 Mar 2018 15:41:27 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: ng0 <ng0@HIDDEN>
Subject: Re: bug#30939: shepherd: detailed output should be placed into
 well-known location and not tty
References: <20180325183555.cilo6qyrj43jh6he@abyayala>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 6 Germinal an 226 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 26 Mar 2018 15:41:27 +0200
In-Reply-To: <20180325183555.cilo6qyrj43jh6he@abyayala> (ng0@HIDDEN's message
 of "Sun, 25 Mar 2018 18:35:55 +0000")
Message-ID: <87a7uvdke0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 30939
Cc: 30939 <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 (+)

Hi ng0,

ng0 <ng0@HIDDEN> skribis:

> Problem, not just when a service is misbehaving after successful system r=
econfigure:
>
> $ sudo herd start smtpd
> Password:=20
> Service smtpd could not be started.
> herd: failed to start service smtpd
>
>
>
> This is on virtual terminal in X11, as well as in /var/log/messages,
> /var/log/shepherd.log, etc.
> This is not enough. If I wanted more info, I'd expect that
> sudo herd status smtpd would give it (which it does not), so the only
> reliable source of information so far is tty 1. Can we fix that in
> one of the next shepherd releases? Or is this something we have to
> fix in Guix?

So you=E2=80=99re saying that you=E2=80=99d like shepherd to show more info=
 as to why
the service could not be started, right?

Thanks,
Ludo=E2=80=99.




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

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


Received: (at submit) by debbugs.gnu.org; 25 Mar 2018 18:35:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 14:35:54 2018
Received: from localhost ([127.0.0.1]:53171 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0AUk-0006o7-KK
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:35:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32908)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ng0@HIDDEN>) id 1f0AUi-0006nt-I7
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:35:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ng0@HIDDEN>) id 1f0AUc-0002m4-NO
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:35:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:43390)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ng0@HIDDEN>) id 1f0AUc-0002m0-Kw
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:35:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52106)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ng0@HIDDEN>)
 id 1f0AUb-0002tN-Op
 for bug-guix@HIDDEN; Sun, 25 Mar 2018 14:35:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ng0@HIDDEN>) id 1f0AUb-0002lQ-2f
 for bug-guix@HIDDEN; Sun, 25 Mar 2018 14:35:45 -0400
Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:46214)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ng0@HIDDEN>) id 1f0AUa-0002kV-No
 for bug-guix@HIDDEN; Sun, 25 Mar 2018 14:35:44 -0400
Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 6485dd03
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>;
 Sun, 25 Mar 2018 18:35:40 +0000 (UTC)
Date: Sun, 25 Mar 2018 18:35:55 +0000
From: ng0 <ng0@HIDDEN>
To: bug-guix@HIDDEN
Subject: shepherd: detailed output should be placed into well-known location
 and not tty
Message-ID: <20180325183555.cilo6qyrj43jh6he@abyayala>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
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: -4.4 (----)

Problem, not just when a service is misbehaving after successful system reconfigure:

$ sudo herd start smtpd
Password: 
Service smtpd could not be started.
herd: failed to start service smtpd



This is on virtual terminal in X11, as well as in /var/log/messages,
/var/log/shepherd.log, etc.
This is not enough. If I wanted more info, I'd expect that
sudo herd status smtpd would give it (which it does not), so the only
reliable source of information so far is tty 1. Can we fix that in
one of the next shepherd releases? Or is this something we have to
fix in Guix?




Acknowledgement sent to ng0 <ng0@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#30939; 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: Sun, 5 Apr 2020 14:30:02 UTC

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