unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Problem with Sheperd after `guix home reconfigure`
@ 2023-08-22 10:33 Tanguy LE CARROUR
  2023-08-22 12:40 ` Hilton Chain
  0 siblings, 1 reply; 13+ messages in thread
From: Tanguy LE CARROUR @ 2023-08-22 10:33 UTC (permalink / raw)
  To: help-guix

Hi Guix,

This morning I `guix pull` and `guix system reconfigure` my system
and everything seemed to be OK. But, when I `guix home reconfigure`,
I got an error message:

```
Loading /gnu/store/x103955zkwzkbmb9hji0dxc5fk7l8c3q-shepherd.conf.
herd: error: exception caught while executing 'load' on service 'root':
Unbound variable: %user-log-dir
```

The config contains the following:

```
$ cat /gnu/store/x103955zkwzkbmb9hji0dxc5fk7l8c3q-shepherd.conf
(begin (use-modules (srfi srfi-34) (system repl error-handling)) (apply register-services (map (lambda (file) (load file)) (quote ("/gnu/store/xz6amxpc572hirdysivd4gmvivfibzkh-shepherd-transmission.scm" "/gnu/store/wwkmsgbi8jc0nysgflgg10sqmqmxs8dm-shepherd-tor.scm" "/gnu/store/kzlmpjlbzz7fmvb32f96qd7wnw0rx4nn-shepherd-mpd.scm" "/gnu/store/7qa23wxmmqf50iybpd86qyg64977mdzm-shepherd-mcron.scm")))) (action (quote root) (quote daemonize)) (format #t "Starting services...~%") (let ((services-to-start (quote (mpd 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))))
```

The only mention to `%user-log-dir` seems to be in `...-shepherd-mcron.scm`:

```
$ cat /gnu/store/7qa23wxmmqf50iybpd86qyg64977mdzm-shepherd-mcron.scm
(eval-when (expand load eval) (let ((extensions (quote ())) (prepend (lambda (items lst) (let loop ((items items) (lst lst)) (if (null? items) lst (loop (cdr items) (cons (car items) (delete (car items) lst)))))))) (set! %load-path (prepend (cons "/gnu/store/5bgqil67vfaymb4q3pxp2xb5lqvki81x-module-import" (map (lambda (extension) (string-append extension "/share/guile/site/" (effective-version))) extensions)) %load-path)) (set! %load-compiled-path (prepend (cons "/gnu/store/gknigc86qbb433gp83jg7nd1pzksswir-module-import-compiled" (map (lambda (extension) (string-append extension "/lib/guile/" (effective-version) "/site-ccache")) extensions)) %load-compiled-path))))(begin (use-modules (srfi srfi-1) (srfi srfi-26) (ice-9 popen) (ice-9 rdelim) (ice-9 match) (shepherd service) (oop goops) ((guix build utils) #:hide (delete)) (guix build syscalls)) (make <service> #:docstring (quote "[No documentation.]") #:provides (quote (mcron)) #:requires (quote ()) #:one-shot? (quote #f) #:respawn? (quote #t) #:start (make-forkexec-constructor (list "/gnu/store/mxjkd7644pzs00sq8x47s9k9kcmlr5ib-mcron-1.2.1-0.5fd0ccd/bin/mcron" "--log" "--log-format" "~1@*~a ~a: ~a~%" "/gnu/store/wynnrkgj67rc7s20mv122vlkzvkpm3gh-mcron-job" "/gnu/store/cgbn0dgfwx09hfpqjs5raz8gw99m0lbq-mcron-job") #:environment-variables (cons* "GUILE_AUTO_COMPILE=0" "PATH=/run/current-system/profile/bin" (remove (cut string-prefix? "PATH=" <>) (environ))) #:log-file (string-append %user-log-dir "/mcron.log")) #:stop (make-kill-destructor) #:actions (make-actions (schedule "Display jobs that are going to be scheduled." (lambda* (_ #:optional (n "5")) (setenv "GUILE_AUTO_COMPILE" "0") (let ((pipe (open-pipe* OPEN_READ "/gnu/store/mxjkd7644pzs00sq8x47s9k9kcmlr5ib-mcron-1.2.1-0.5fd0ccd/bin/mcron" (string-append "--schedule=" n) "/gnu/store/wynnrkgj67rc7s20mv122vlkzvkpm3gh-mcron-job" "/gnu/store/cgbn0dgfwx09hfpqjs5raz8gw99m0lbq-mcron-job"))) (let loop () (match (read-line pipe (quote concat)) ((? eof-object?) (catch (quote system-error) (lambda () (zero? (close-pipe pipe))) (lambda args (or (= ECHILD (system-error-errno args)) (apply throw args))))) (line (display line) (loop))))))))))
```

Any idea what might be going wrong?!

Regards,

-- 
Tanguy


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-08-29  7:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 10:33 Problem with Sheperd after `guix home reconfigure` Tanguy LE CARROUR
2023-08-22 12:40 ` Hilton Chain
2023-08-22 13:23   ` Andreas Enge
2023-08-22 14:44     ` Hilton Chain
2023-08-22 13:51   ` Problem with Shepherd " Tanguy LE CARROUR
2023-08-22 15:18     ` Hilton Chain
2023-08-22 16:56       ` Tanguy LE CARROUR
2023-08-23  3:19         ` Hilton Chain
2023-08-23  6:29           ` Tanguy LE CARROUR
2023-08-23  8:09         ` nils
2023-08-25  6:59           ` Tanguy LE CARROUR
2023-08-25  7:34             ` Hilton Chain
2023-08-28  6:27               ` Tanguy LE CARROUR

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).