From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jone Subject: Error with mcron-configuration Date: Sat, 7 Jul 2018 00:39:47 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000071ebc005705e04ca" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbbGQ-0002Ms-En for help-guix@gnu.org; Fri, 06 Jul 2018 20:39:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbbGP-0000f2-BX for help-guix@gnu.org; Fri, 06 Jul 2018 20:39:50 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:36603) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbbGP-0000ef-10 for help-guix@gnu.org; Fri, 06 Jul 2018 20:39:49 -0400 Received: by mail-ed1-x52b.google.com with SMTP id t3-v6so9779912eds.3 for ; Fri, 06 Jul 2018 17:39:48 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --00000000000071ebc005705e04ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. guix system --version guix system (GNU Guix) c3bda394a44ceed39c5ac2f1d07502a3a7502da5 Ver. 1 ___________________________________________________________________________ (use-modules ... (gnu services mcron) ;; =E2=86=90 manual ... (define fstrim-job ;; =E2=86=90 manual #~(job "10 10 * * 6" "fstrim -a")) ... (services (cons* ... (mcron-service-type (mcron-configuration (jobs (list fstrim-job)))) ;; = =E2=86=90 but here the question ... root@guix ~# guix system -n reconfigure /home/jone/sys.cfg/system-config.sc= m guix system: error: failed to load '/home/jone/sys.cfg/system-config.scm': /home/jone/sys.cfg/system-config.scm:123:25: /home/jone/sys.cfg/system-config.scm:123:25: Wrong type to apply: # Ver.2 ___________________________________________________________________________ ... (mcron-service (mcron-configuration (jobs (list fstrim-job)))) ;; =E2=86= =90 manual ... root@guix ~# guix system -n reconfigure /home/jone/sys.cfg/system-config.sc= m Backtrace: In srfi/srfi-1.scm: 592:29 19 (map1 (#< type: #= =E2=80=A6)) 592:29 18 (map1 (#< type: #= =E2=80=A6)) 592:29 17 (map1 (#< type: #= =E2=80=A6)) 592:29 16 (map1 (#< type: #= =E2=80=A6)) 592:29 15 (map1 (#< type: #= =E2=80=A6)) 592:29 14 (map1 (#< type: #= =E2=80=A6)) 592:29 13 (map1 (#< type: #= =E2=80=A6)) 592:29 12 (map1 (#< type: #= =E2=80=A6)) 592:29 11 (map1 (#< type: #=E2=80=A6>= =E2=80=A6)) 592:29 10 (map1 (#< type: #= =E2=80=A6)) 592:29 9 (map1 (#< type: #= =E2=80=A6)) 592:29 8 (map1 (#< type: #= =E2=80=A6)) 592:29 7 (map1 (#< type: #= =E2=80=A6)) 592:29 6 (map1 (#< type: #= =E2=80=A6)) 592:29 5 (map1 (#< type: #= =E2=80=A6)) 592:29 4 (map1 (#< type: #= =E2=80=A6)) 592:17 3 (map1 (#< type: #=E2=80= =A6>)) In gnu/services.scm: 777:22 2 (loop #< type: # v=E2=80= =A6>) In gnu/services/mcron.scm: 99:33 1 (extend #< mcron: # =E2=80=A6) In unknown file: 0 (append #< mcron: # =E2=80=A6) ERROR: In procedure append: ERROR: In procedure append: Wrong type argument in position 1 (expecting empty list): #< mcron: # jobs: (#)> Questions!.. --00000000000071ebc005705e04ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.
guix system --version
guix system = (GNU Guix) c3bda394a44ceed39c5ac2f1d07502a3a7502da5

Ver. = 1
______________________________________________________________________= _____
(use-modules
=C2=A0...
(gnu services mcron)=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ;; =E2=86=90 manual
=C2=A0...
(define= fstrim-job=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ;; =E2=86=90 manual
=C2=A0 #~(job "10 10 * * 6"= ;
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0"fstrim -a"))...
(services (cons*
=C2=A0...
=C2=A0 (mcron-service-type (mcron= -configuration (jobs (list fstrim-job))))=C2=A0 ;; =E2=86=90 but here the q= uestion
=C2=A0...

root@guix ~# guix system -n reconfigure /= home/jone/sys.cfg/system-config.scm
guix system: error: failed to load &= #39;/home/jone/sys.cfg/system-config.scm':
/home/jone/sys.cfg/system= -config.scm:123:25: /home/jone/sys.cfg/system-config.scm:123:25: Wrong type= to apply: #<service-type mcron 227d4b0>

Ver.2
______= _____________________________________________________________________
= =C2=A0...
(mcron-service (mcron-configuration (jobs (list fstrim-job))))= =C2=A0 ;; =E2=86=90 manual
=C2=A0...

root@guix ~# guix system -n = reconfigure /home/jone/sys.cfg/system-config.scm
Backtrace:
In srfi/s= rfi-1.scm:
=C2=A0=C2=A0 592:29 19 (map1 (#<<service> type: #<= ;service-type mingetty 12c=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29 = 18 (map1 (#<<service> type: #<service-type mingetty 12c=E2=80= =A6> =E2=80=A6))
=C2=A0=C2=A0 592:29 17 (map1 (#<<service> t= ype: #<service-type mingetty 12c=E2=80=A6> =E2=80=A6))
=C2=A0=C2= =A0 592:29 16 (map1 (#<<service> type: #<service-type mingetty = 12c=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29 15 (map1 (#<<serv= ice> type: #<service-type mingetty 12c=E2=80=A6> =E2=80=A6))
= =C2=A0=C2=A0 592:29 14 (map1 (#<<service> type: #<service-type = agetty 12c19=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29 13 (map1 (#<= ;<service> type: #<service-type console-font=E2=80=A6> =E2=80= =A6))
=C2=A0=C2=A0 592:29 12 (map1 (#<<service> type: #<serv= ice-type virtual-term=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29 11 (m= ap1 (#<<service> type: #<service-type ntp 12c1320>=E2=80=A6&= gt; =E2=80=A6))
=C2=A0=C2=A0 592:29 10 (map1 (#<<service> type:= #<service-type dbus 12c1460=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 59= 2:29=C2=A0 9 (map1 (#<<service> type: #<service-type elogind 2d= fe=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29=C2=A0 8 (map1 (#<<= service> type: #<service-type upower 2dfee=E2=80=A6> =E2=80=A6))=C2=A0=C2=A0 592:29=C2=A0 7 (map1 (#<<service> type: #<servic= e-type avahi 2dfefa=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:29=C2=A0 6= (map1 (#<<service> type: #<service-type wpa-supplica=E2=80=A6&= gt; =E2=80=A6))
=C2=A0=C2=A0 592:29=C2=A0 5 (map1 (#<<service> = type: #<service-type network-mana=E2=80=A6> =E2=80=A6))
=C2=A0=C2= =A0 592:29=C2=A0 4 (map1 (#<<service> type: #<service-type slim= 2dfef50=E2=80=A6> =E2=80=A6))
=C2=A0=C2=A0 592:17=C2=A0 3 (map1 (#&l= t;<service> type: #<service-type mcron 12c14b0>=E2=80=A6>))<= br>In gnu/services.scm:
=C2=A0=C2=A0 777:22=C2=A0 2 (loop #<<servi= ce> type: #<service-type mcron 12c14b0> v=E2=80=A6>)
In gnu/= services/mcron.scm:
=C2=A0=C2=A0=C2=A0 99:33=C2=A0 1 (extend #<<mc= ron-configuration> mcron: #<package mcron=E2=80=A6> =E2=80=A6)
= In unknown file:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 0 (append #<<mcron-configuration> mcron: #<package mcron= =E2=80=A6> =E2=80=A6)

ERROR: In procedure append:
ERROR: In pr= ocedure append: Wrong type argument in position 1 (expecting empty list): #= <<mcron-configuration> mcron: #<package mcron@1.1.1 gnu/package= s/guile.scm:683 260f600> jobs: (#<gexp (job "10 10 * * 6" &= quot;fstrim -a") 31b7630>)>

Questions!..
--00000000000071ebc005705e04ca--