[shepherd] regression: throw to key `assertion-failed' in init.scm

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal

Debbugs page

M
M
Maxim Cournoyer wrote on 3 Feb 17:59 -0800
(name . bug-guix)(address . bug-guix@gnu.org)(name . Ludovic Courtès)(address . ludo@gnu.org)
87ikpqtqqi.fsf@gmail.com
Hello,

In the latest Shepherd as packaged in Guix, as well as when building it
from commit 63075c9, starting shepherd my home services (which I still
manually roll, not via 'guix home'):

Toggle snippet (11 lines)
~/src/shepherd$ /gnu/store/5hcznfjzxvjbwixr5fkgpfd2w2zi4fxl-shepherd-1.0.99-git/bin/shepherd
GNU Shepherd 1.0.1 (Guile 3.0.9, x86_64-unknown-linux-gnu)
Starting service root...
Service root started.
Service root running with value #<<process> id: 2771 command: #f>.
Service root démarré.
shepherd/service.scm:236: Assertion (procedure? proc) failed.
While loading configuration file '/home/maxim/.config/shepherd/init.scm': "Throw to key `assertion-failed' with args `()'."
shepherd: error: "/home/maxim/.config/shepherd/init.scm": exception thrown while loading configuration file

And none of the services I have defined in my init are run (file
attached):

$ shepherd status

Toggle snippet (11 lines)
$ herd status
Démarrés :
+ root
Arrêtés :
- emacs
- gpg-agent
- ibus-daemon
- jackd
- workrave

The services can be manually started, in the meantime, with 'herd start
emacs', etc.
Attachment: init.scm
--
Thanks,
Maxim
L
L
Ludovic Courtès wrote on 5 Feb 02:11 -0800
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 76037@debbugs.gnu.org)
878qqkbt0h.fsf@gnu.org
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

Toggle quote (9 lines)
> ~/src/shepherd$ /gnu/store/5hcznfjzxvjbwixr5fkgpfd2w2zi4fxl-shepherd-1.0.99-git/bin/shepherd
> GNU Shepherd 1.0.1 (Guile 3.0.9, x86_64-unknown-linux-gnu)
> Starting service root...
> Service root started.
> Service root running with value #<<process> id: 2771 command: #f>.
> Service root démarré.
> shepherd/service.scm:236: Assertion (procedure? proc) failed.
> While loading configuration file '/home/maxim/.config/shepherd/init.scm': "Throw to key `assertion-failed' with args `()'."

[...]

Toggle quote (3 lines)
> ;; Send shepherd into the background.
> (action 'shepherd 'daemonize)

This is because you should be writing this instead (info "(shepherd)
Managing User Services"):

(perform-service-action root-service 'daemonize)

This is because ‘action’, which was deprecated in 0.10, now has a
different meaning (info "(shepherd) Defining Services").

HTH!

Ludo’.
L
L
Ludovic Courtès wrote on 5 Feb 06:50 -0800
control message for bug #76037
(address . control@debbugs.gnu.org)
87zfj08mzm.fsf@gnu.org
tags 76037 notabug
close 76037
quit
M
M
Maxim Cournoyer wrote on 5 Feb 18:59 -0800
Re: bug#76037: [shepherd] regression: throw to key `assertion-failed' in init.scm
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 76037-done@debbugs.gnu.org)
87pljvaic6.fsf@gmail.com
Hi,

Ludovic Courtèss <ludo@gnu.org> writes:

Toggle quote (28 lines)
> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> ~/src/shepherd$ /gnu/store/5hcznfjzxvjbwixr5fkgpfd2w2zi4fxl-shepherd-1.0.99-git/bin/shepherd
>> GNU Shepherd 1.0.1 (Guile 3.0.9, x86_64-unknown-linux-gnu)
>> Starting service root...
>> Service root started.
>> Service root running with value #<<process> id: 2771 command: #f>.
>> Service root démarré.
>> shepherd/service.scm:236: Assertion (procedure? proc) failed.
>> While loading configuration file
>> '/home/maxim/.config/shepherd/init.scm': "Throw to key
>> `assertion-failed' with args `()'."
>
> [...]
>
>> ;; Send shepherd into the background.
>> (action 'shepherd 'daemonize)
>
> This is because you should be writing this instead (info "(shepherd)
> Managing User Services"):
>
> (perform-service-action root-service 'daemonize)
>
> This is because `action', which was deprecated in 0.10, now has a
> different meaning (info "(shepherd) Defining Services").

OK, I had missed the deprecation (I rarely ever peek into my
~/.local/state/shepherd/shepherd.log).

It works fine now, thank you! Closing.

--
Thanks,
Maxim
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 76037@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 76037
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch