unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Sébastien Rey-Coyrehourcq" <sebastien.rey-coyrehourcq@univ-rouen.fr>
To: Guix Help <help-guix@gnu.org>
Subject: Help to debug a try with home-mcron-service-type on guix home
Date: Wed, 29 Jun 2022 22:48:34 +0200	[thread overview]
Message-ID: <87zghvw5sg.fsf@univ-rouen.fr> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2869 bytes --]


Hi guix !

I'm trying to config a mcron service type for mbsync, something 
simple, but there are few example on the web for the new 
home-mcron-service-type. I try something like this :

(use-modules (gnu packages mail)
             (gnu packages tls)
             (gnu home services mcron))


(define update-mail-service
  #~(job '(next-minute '(range 0 60 5))
         (lambda ()
           (execl (string-append #$isync "/bin/mbsync")
                  "mbync"
                  "-a"))
         "fetch mail"))

(define-public %mail-module
  (home-module
   (list mu
         isync
         imapfilter
         msmtp
         gnutls)

   (list
    (simple-service 'isync-mail-config-service
                    home-files-service-type
                    `(
                      (".mbsyncrc" ,(local-file 
                      "../config/mail/mbsyncrc"))
                      (".msmtprc",(local-file 
                      "../config/mail/msmtprc"))
                      (".imapfilter/config.lua",(local-file 
                      "../config/mail/config.lua"))))
    (simple-service `mcron-mail-update-service
                    home-mcron-service-type
                    (list update-mail-service))
        )))

but when i run reconfigure, i have an error in drv compilation :

Backtrace:
           7 (primitive-load 
           "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron")
In mcron/scripts/mcron.scm:
    103:6  6 (main)
In ice-9/boot-9.scm:
   260:13  5 (for-each #<procedure 7ffff3f343c0 at 
   mcron/scripts/mcron.scm:103:16 (file)> _)
In unknown file:
           4 (eval-string "update-mail-service" #<directory (mcron 
           job-specifier) 7ffff4035780>)
In ice-9/boot-9.scm:
   2835:4  3 (save-module-excursion #<procedure 7ffff2a51980 at 
   ice-9/eval-string.scm:66:9 ()>)
In ice-9/eval-string.scm:
     38:6  2 (read-and-eval #<input: string 7ffff2db78c0> #:lang 
     _)
In ice-9/eval.scm:
   223:20  1 (proc #<directory (mcron job-specifier) 
   7ffff4035780>)
In unknown file:
           0 (%resolve-variable (7 . update-mail-service) 
           #<directory (mcron job-specifier) 7ffff4035780>)

ERROR: In procedure %resolve-variable:
Unbound variable: update-mail-service
Backtrace:
           2 (primitive-load 
           "/gnu/store/b3k8pm2gabw29rmb86r5j4j4jzz7847d-mcron-job-builder")
In ice-9/eval.scm:
    619:8  1 (_ #f)
In guix/build/utils.scm:
    762:6  0 (invoke 
    "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron" 
    "--schedule=20" "prologue" "job")

guix/build/utils.scm:762:6: In procedure invoke:
ERROR:
  1. &invoke-error:
      program: 
      "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron"
      arguments: ("--schedule=20" "prologue" "job")
      exit-status: 1
      term-signal: #f
      stop-signal: #f

Any help appreciated :) !
Best regards,


[-- Attachment #1.2.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 889 bytes --]

                 reply	other threads:[~2022-06-29 20:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zghvw5sg.fsf@univ-rouen.fr \
    --to=sebastien.rey-coyrehourcq@univ-rouen.fr \
    --cc=help-guix@gnu.org \
    /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.
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).