* bug#31113: mcron ERROR: In procedure mktime:
@ 2018-04-09 17:08 George myglc2 Clemmer
2018-04-09 17:13 ` George myglc2 Clemmer
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: George myglc2 Clemmer @ 2018-04-09 17:08 UTC (permalink / raw)
To: 31113
Hello,
somewhere between March ~17 (commit be5ed1421 gnu: Add terraform-docs.)
and April ~5 (commit cfb55cfc4 gnu: Add java-native-access-platform.)
mcron-service stopped working and started throwing errors like ...
#+BEGIN_EXAMPLE
ERROR: In procedure mktime:
Wrong type (expecting exact integer): 45.0
Backtrace:
4 (primitive-load "/gnu/store/422ngw911hz62510b33wdvrp1a6?")
In mcron/base.scm:
103:25 3 (add-job #<procedure 847880 at mcron/job-specifier.scm?> ?)
In mcron/job-specifier.scm:
251:32 2 (_ 1523292689)
In mcron/vixie-time.scm:
381:15 1 (_ _)
In unknown file:
0 (mktime #(0 45.0 +inf.0 9 3 118 1 98 1 14400 "EDT") #<u?>)
ERROR: In procedure mktime:
...
#+END_EXAMPLE
Please see system config attached (my /etc/gen/x/010/sys.scm)
TIA - George
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#31113: mcron ERROR: In procedure mktime:
2018-04-09 17:08 bug#31113: mcron ERROR: In procedure mktime: George myglc2 Clemmer
@ 2018-04-09 17:13 ` George myglc2 Clemmer
2018-04-10 1:02 ` Maxim Cournoyer
2018-04-10 16:41 ` Rutger Helling
2 siblings, 0 replies; 6+ messages in thread
From: George myglc2 Clemmer @ 2018-04-09 17:13 UTC (permalink / raw)
To: 31113
[-- Attachment #1: Type: text/plain, Size: 79 bytes --]
Oops, forgot to attach the system config (actually my /etc/gen/x/016/sys.scm)
[-- Attachment #2: sys.scm --]
[-- Type: application/octet-stream, Size: 2869 bytes --]
;; g1: GuixSD headless server w/ NVMe M.2 SSD root drive
(define sys-packages
'(
"cups"
"emacs-ag"
"emacs-no-x"
"emacs-guix"
"emacs-paredit"
"emacs-with-editor"
"freeipmi"
"geiser"
"git"
"glibc-utf8-locales"
"magit"
"make"
"mdadm"
"mosh"
"nss-certs"
"openssh"
"qemu"
"rsync"
"screen"
"smartmontools"
"tree"
"wget"
"xauth"
))
(use-modules (gnu))
(use-modules (gnu packages))
(use-modules (gnu system nss)) ; name service switch
(use-service-modules
admin ; rottlog
avahi
networking ; static, ntp
ssh ; openssh-service-type
mcron
)
(define updatedb-job
;; Run 'updatedb' at 3AM every day.
#~(job '(next-hour '(3))
(lambda ()
(execl (string-append #$findutils "/bin/updatedb")
"updatedb"
"--prunepaths=/tmp /var/tmp /gnu/store"))))
(define garbage-collector-job
;; Collect garbage 45 minutes after midnight every day.
#~(job "45 0 * * *" ;Vixie cron syntax
"guix gc -F 1G"))
(define backup-job
;; backup ssd 5 minutes after midnight every day.
#~(job "5 0 * * *" ;Vixie cron syntax
"/root/bin/bussd"))
(define %my-services
(modify-services %base-services
(agetty-service-type config =>
(agetty-configuration
(tty "ttyS1")
(baud-rate "115200")
(term "xterm-256color")
))))
(operating-system
(host-name "g1")
(timezone "America/New_York")
(locale "en_US.utf8")
(kernel-arguments '("console=ttyS1,115200"))
;; NVMe M.2 SSD root drive
(bootloader (grub-configuration (target "/dev/nvme0n1")
(terminal-outputs '(console))
(terminal-inputs '(serial console))
(serial-speed 115200)
))
(initrd-modules (append (list "shpchp") ;; for /dev/nvme0n1
%base-initrd-modules))
(file-systems (cons (file-system
(title 'label)
(device "g1NVMe")
(mount-point "/")
(type "ext4"))
%base-file-systems))
(swap-devices '("/dev/nvme0n1p2" ))
(users (cons* (user-account (name "g1")
(group "users")
(supplementary-groups '("wheel" "kvm"))
(home-directory (string-append "/home/" name)))
%base-user-accounts))
(packages (append (map specification->package
sys-packages)
%base-packages))
(services (cons* (static-networking-service
"enp3s0" "192.168.1.7"
#:gateway "192.168.1.1"
#:name-servers '("192.168.1.1" "46.17.102.24"))
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login #t)
(authorized-keys
`(
("g1" ,(local-file "glc.pub"))
("root" ,(local-file "glc.pub"))))))
(service rottlog-service-type)
(mcron-service (list garbage-collector-job
updatedb-job
backup-job))
(avahi-service)
(ntp-service)
%my-services))
(name-service-switch %mdns-host-lookup-nss))
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#31113: mcron ERROR: In procedure mktime:
2018-04-09 17:08 bug#31113: mcron ERROR: In procedure mktime: George myglc2 Clemmer
2018-04-09 17:13 ` George myglc2 Clemmer
@ 2018-04-10 1:02 ` Maxim Cournoyer
2018-04-10 16:41 ` Rutger Helling
2 siblings, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2018-04-10 1:02 UTC (permalink / raw)
To: George myglc2 Clemmer; +Cc: 31113
Hi George,
George myglc2 Clemmer <myglc2@gmail.com> writes:
> Hello,
>
> somewhere between March ~17 (commit be5ed1421 gnu: Add terraform-docs.)
> and April ~5 (commit cfb55cfc4 gnu: Add java-native-access-platform.)
> mcron-service stopped working and started throwing errors like ...
>
> #+BEGIN_EXAMPLE
> ERROR: In procedure mktime:
> Wrong type (expecting exact integer): 45.0
> Backtrace:
> 4 (primitive-load "/gnu/store/422ngw911hz62510b33wdvrp1a6?")
> In mcron/base.scm:
> 103:25 3 (add-job #<procedure 847880 at mcron/job-specifier.scm?> ?)
> In mcron/job-specifier.scm:
> 251:32 2 (_ 1523292689)
> In mcron/vixie-time.scm:
> 381:15 1 (_ _)
> In unknown file:
> 0 (mktime #(0 45.0 +inf.0 9 3 118 1 98 1 14400 "EDT") #<u?>)
> ERROR: In procedure mktime:
> ...
> #+END_EXAMPLE
>
> Please see system config attached (my /etc/gen/x/010/sys.scm)
>
> TIA - George
It's of not much help I'm afraid, but FWIW, I'm also having issues since
I reconfigure a fresh guix from yesterday:
--8<---------------cut here---------------start------------->8---
Backtrace:
8 (apply-smob/1 #<catch-closure 12258c0>)
In mcron/scripts/mcron.scm:
81:2 7 (main _)
In ice-9/boot-9.scm:
260:13 6 (for-each #<procedure 7ff2433a4a28 at mcron/scripts/mc?> ?)
2312:4 5 (save-module-excursion _)
3822:12 4 (_)
In mcron/base.scm:
103:25 3 (add-job #<procedure 1202980 at mcron/job-specifier.sc?> ?)
In mcron/job-specifier.scm:
251:32 2 (_ 1523321510)
91:5 1 (bump-time #(0 51 20 9 3 118 1 98 1 14400 "EDT") _ #<p?> ?)
63:4 0 (%find-best-next _ _)
mcron/job-specifier.scm:63:4: In procedure %find-best-next:
Throw to key `match-error' with args `("match" "no matching pattern"
0)'.
--8<---------------cut here---------------end--------------->8---
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#31113: mcron ERROR: In procedure mktime:
2018-04-09 17:08 bug#31113: mcron ERROR: In procedure mktime: George myglc2 Clemmer
2018-04-09 17:13 ` George myglc2 Clemmer
2018-04-10 1:02 ` Maxim Cournoyer
@ 2018-04-10 16:41 ` Rutger Helling
2018-04-18 22:16 ` Ludovic Courtès
2 siblings, 1 reply; 6+ messages in thread
From: Rutger Helling @ 2018-04-10 16:41 UTC (permalink / raw)
To: maxim.cournoyer, 31113
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
I had this problem too.
Reverting commit cfbf6de18cc70d2e385feb5f61f9363f18e78ddf (gnu: mcron:
Update to 1.1 and deprecate "mcron2".) fixed it for me.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#31113: mcron ERROR: In procedure mktime:
2018-04-10 16:41 ` Rutger Helling
@ 2018-04-18 22:16 ` Ludovic Courtès
2018-04-21 2:35 ` Maxim Cournoyer
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2018-04-18 22:16 UTC (permalink / raw)
To: Rutger Helling; +Cc: 31113-done, maxim.cournoyer
Hello,
Rutger Helling <rhelling@mykolab.com> skribis:
> I had this problem too.
>
> Reverting commit cfbf6de18cc70d2e385feb5f61f9363f18e78ddf (gnu: mcron:
> Update to 1.1 and deprecate "mcron2".) fixed it for me.
This was a bug in mcron 1.1.
Fixed in commit 67a51b675538065a4ec3eb06428d8a4021fdbb87, which updates
to 1.1.1.
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#31113: mcron ERROR: In procedure mktime:
2018-04-18 22:16 ` Ludovic Courtès
@ 2018-04-21 2:35 ` Maxim Cournoyer
0 siblings, 0 replies; 6+ messages in thread
From: Maxim Cournoyer @ 2018-04-21 2:35 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 31113-done, Rutger Helling
Hi Ludovic,
ludo@gnu.org (Ludovic Courtès) writes:
> Hello,
>
> Rutger Helling <rhelling@mykolab.com> skribis:
>
>> I had this problem too.
>>
>> Reverting commit cfbf6de18cc70d2e385feb5f61f9363f18e78ddf (gnu: mcron:
>> Update to 1.1 and deprecate "mcron2".) fixed it for me.
>
> This was a bug in mcron 1.1.
>
> Fixed in commit 67a51b675538065a4ec3eb06428d8a4021fdbb87, which updates
> to 1.1.1.
Thank you for taking care of it!
Maxim
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-04-21 2:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-09 17:08 bug#31113: mcron ERROR: In procedure mktime: George myglc2 Clemmer
2018-04-09 17:13 ` George myglc2 Clemmer
2018-04-10 1:02 ` Maxim Cournoyer
2018-04-10 16:41 ` Rutger Helling
2018-04-18 22:16 ` Ludovic Courtès
2018-04-21 2:35 ` Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).