From: "Ludovic Courtès" <ludo@gnu.org>
To: nils@landt.email
Cc: "63982@debbugs.gnu.org" <63982@debbugs.gnu.org>
Subject: bug#63982: Shepherd can crash when a user service fails to start
Date: Thu, 22 Jun 2023 22:08:56 +0200 [thread overview]
Message-ID: <87cz1n45uv.fsf_-_@gnu.org> (raw)
In-Reply-To: <1275452452.902121.1687101286088@office.mailbox.org> (nils@landt.email's message of "Sun, 18 Jun 2023 17:14:46 +0200 (CEST)")
Hi,
nils@landt.email skribis:
> 0.10.99:
> Starting service root...
> Service root started.
> Service root running with value #t.
> Service root has been started.
> WARNING: Use of `load' in declarative module (#{ g119}#). Add #:declarative? #f to your define-module invocation.
> Uncaught exception while loading configuration file '/gnu/store/w6rlja8v65dwv16ivcqx513q7827n6aq-shepherd.conf': (wrong-type-arg "string-append" "Wrong type (expecting ~A): ~S"
> ("string" #f) (#f))
>
> , and then the reconfiguration hangs. /run/user/1000/shepherd/socket is created, and herd status shows that root is started, other services are not shown, and are not started.
>
>
> Content of config (/gnu/store/w6rlja8v65dwv16ivcqx513q7827n6aq-shepherd.conf):
> (begin (use-modules (srfi srfi-34) (system repl error-handling)) (apply register-services (map (lambda (file) (load file)) (quote ("/gnu/store/71n4r0hccps574aqcks7zyk5rz5zardq-
> shepherd-eww.scm" "/gnu/store/0r14z4psnf9h2nfqiflm0nv6m2bv04si-shepherd-eww-open-lockscreen-like-background.scm" "/gnu/store/ylidynn5akvk3lmqrxbgqkz0c8hn3y8c-shepherd-syncthing
> .scm" "/gnu/store/9igwbpbwavl6r94ph7qss7i5cqq9d8nj-shepherd-mcron.scm")))) (action (quote root) (quote daemonize)) (format #t "Starting services...~%") (let ((services-to-start
> (quote (eww eww-open-lockscreen-like-background syncthing mcron)))) (if (defined? (quote start-in-the-background)) (start-in-the-background services-to-start) (for-each start
> services-to-start)) (redirect-port (open-input-file "/dev/null") (current-input-port))))
This suggests a problem in the config file: one of the shepherd-*.scm
files listed above ends up calling (string-append #f …).
We’d need to see those files to understand what’s happening but it looks
different from what Maxim reported.
Thanks,
Ludo’.
next prev parent reply other threads:[~2023-06-22 20:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 17:13 bug#63982: Shepherd can crash when a user service fails to start Maxim Cournoyer
2023-06-12 13:44 ` Ludovic Courtès
2023-06-12 17:32 ` Maxim Cournoyer
2023-06-14 15:57 ` Ludovic Courtès
2023-06-19 1:42 ` bug#63982: Service hangs in 'starting' with Shepherd 0.10 (was: Shepherd can crash when a user service fails to start) Maxim Cournoyer
2023-06-21 14:20 ` bug#63982: Shepherd can crash when a user service fails to start Ludovic Courtès
2023-06-22 21:35 ` Ludovic Courtès
2023-06-26 15:53 ` Maxim Cournoyer
2023-07-12 17:46 ` Ludovic Courtès
2023-07-19 1:11 ` Maxim Cournoyer
2023-06-18 15:14 ` bug#63982: Shepherd wrong-type-arg nils
2023-06-22 20:08 ` Ludovic Courtès [this message]
2023-06-25 13:03 ` bug#63982: Shepherd can crash when a user service fails to start nils
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cz1n45uv.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=63982@debbugs.gnu.org \
--cc=nils@landt.email \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.