GNU bug report logs - #72277
home-shepherd is flooding tty

Previous Next

Package: guix;

Reported by: Dariqq <dariqq <at> posteo.net>

Date: Wed, 24 Jul 2024 16:17:02 UTC

Severity: normal

Done: Dariqq <dariqq <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72277 in the body.
You can then email your comments to 72277 AT debbugs.gnu.org in the normal way.

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#72277; Package guix. (Wed, 24 Jul 2024 16:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dariqq <dariqq <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 24 Jul 2024 16:17:02 GMT) Full text and rfc822 format available.

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

From: Dariqq <dariqq <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: home-shepherd is flooding tty
Date: Wed, 24 Jul 2024 16:16:00 +0000
Hi,

Today I connected to my laptop running guix home over ssh as the first 
session and got greeted with a lot of shepherd logs from the 
on-first-login script from guix-home starting the user shepherd:



Starting service root...
Service root started.
Service root running with value #t.
Service root has been started.
WARNING: Use of `load' in declarative module (#{ g107}#).  Add 
#:declarative? #f to your define-module invocation.
Daemonizing...

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
Restarting signal handler.
Now running as process 2026.
Starting services...
Configuration successfully loaded from 
'/gnu/store/004jm8s9km3j70gh4nhw8fzlbjls5wxa-shepherd.conf'.
Starting service dbus...
Service dbus has been started.
Service dbus started.
Service dbus running with value 2027.
[...]
Successfully started 4 services in the background.



As I don't want to see these messages I have patched the 
add-shell-profile-file procedure in gnu/home/services/shells.scm to send 
the output of the on-first-login-script into the void as a workaround.

The shepherd manual mentions a --quit option (there seems to be also 
--silent but not documented). Looking at the shepherd code though these 
don't seem to do anything which is also not mentioned anywhere causing 
even more confusion.





Information forwarded to bug-guix <at> gnu.org:
bug#72277; Package guix. (Mon, 16 Sep 2024 13:25:01 GMT) Full text and rfc822 format available.

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

From: Dariqq <dariqq <at> posteo.net>
To: 72277 <at> debbugs.gnu.org
Subject: Re: home-shepherd is flooding tty
Date: Mon, 16 Sep 2024 13:23:48 +0000

On 24.07.24 18:16, Dariqq wrote:
> Hi,
> 
> Today I connected to my laptop running guix home over ssh as the first 
> session and got greeted with a lot of shepherd logs from the on-first- 
> login script from guix-home starting the user shepherd:
> 
> 
> 
> Starting service root...
> Service root started.
> Service root running with value #t.
> Service root has been started.
> WARNING: Use of `load' in declarative module (#{ g107}#).  Add 
> #:declarative? #f to your define-module invocation.
> Daemonizing...
> 
> Some deprecated features have been used.  Set the environment
> variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
> program to get more information.  Set it to "no" to suppress
> this message.
> Restarting signal handler.
> Now running as process 2026.
> Starting services...
> Configuration successfully loaded from '/gnu/ 
> store/004jm8s9km3j70gh4nhw8fzlbjls5wxa-shepherd.conf'.
> Starting service dbus...
> Service dbus has been started.
> Service dbus started.
> Service dbus running with value 2027.
> [...]
> Successfully started 4 services in the background.
> 
> 
> 

The guile deprecation warning seems to be coming from using the 
deprecated way of daemonizing the shepherd. This has been fixed in 
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=8da4eab2447a52c1d4f79305756cfab4df45a1a7

> As I don't want to see these messages I have patched the add-shell- 
> profile-file procedure in gnu/home/services/shells.scm to send the 
> output of the on-first-login-script into the void as a workaround.
> 
> The shepherd manual mentions a --quit option (there seems to be also -- 
> silent but not documented). Looking at the shepherd code though these 
> don't seem to do anything which is also not mentioned anywhere causing 
> even more confusion.

The devel shepherd now understands --silent (and --quiet): 
https://git.savannah.gnu.org/cgit/shepherd.git/commit/?h=devel&id=6ffe404ffe794b06fddd304a963a47b62444edfa


When running the shepherd <at> 0.15 with a backported version of the above 
commmit and --silent all that is left is the warning

> WARNING: Use of `load' in declarative module (#{ g107}#).  Add
> #:declarative? #f to your define-module invocation.

and when using the devel shepherd this is also gone and shepherd is 
completely silent.


It would be nice to add an option to home-shepherd-configuration to 
autolaunch the shepherd with --silent once it is available in a tagged 
release.





Information forwarded to bug-guix <at> gnu.org:
bug#72277; Package guix. (Thu, 19 Sep 2024 13:11:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Dariqq <dariqq <at> posteo.net>
Cc: 72277 <at> debbugs.gnu.org
Subject: Re: bug#72277: home-shepherd is flooding tty
Date: Thu, 19 Sep 2024 15:10:06 +0200
Hi,

Dariqq <dariqq <at> posteo.net> skribis:

> It would be nice to add an option to home-shepherd-configuration to
> autolaunch the shepherd with --silent once it is available in a tagged
> release.

I believe we can make this change right away since 0.10.x supports
‘--silent’ (it doesn’t have any effect as of 0.10.5 but it’s not
rejected).

Would you like to prepare a patch?

Thanks,
Ludo’.




Reply sent to Dariqq <dariqq <at> posteo.net>:
You have taken responsibility. (Mon, 14 Oct 2024 17:42:02 GMT) Full text and rfc822 format available.

Notification sent to Dariqq <dariqq <at> posteo.net>:
bug acknowledged by developer. (Mon, 14 Oct 2024 17:42:02 GMT) Full text and rfc822 format available.

Message #16 received at 72277-done <at> debbugs.gnu.org (full text, mbox):

From: Dariqq <dariqq <at> posteo.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 72277-done <at> debbugs.gnu.org
Subject: Re: bug#72277: home-shepherd is flooding tty
Date: Mon, 14 Oct 2024 17:40:30 +0000
Hi Ludo,

Thank you very much for the review of the shepherd patch and the patch 
for the silent? field to enable it.

Closing the original issue as well.

On 19.09.24 15:10, Ludovic Courtès wrote:
> Hi,
> 
> Dariqq <dariqq <at> posteo.net> skribis:
> 
>> It would be nice to add an option to home-shepherd-configuration to
>> autolaunch the shepherd with --silent once it is available in a tagged
>> release.
> 
> I believe we can make this change right away since 0.10.x supports
> ‘--silent’ (it doesn’t have any effect as of 0.10.5 but it’s not
> rejected).
> 
> Would you like to prepare a patch?
> 
> Thanks,
> Ludo’.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 Nov 2024 12:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 14 days ago.

Previous Next


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