From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: Debugging an mcron job Date: Tue, 12 Mar 2019 15:24:52 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3n1D-0003jy-Hi for help-guix@gnu.org; Tue, 12 Mar 2019 15:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3n1C-0001Vo-Fw for help-guix@gnu.org; Tue, 12 Mar 2019 15:24:55 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:60584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3n1C-0001Uf-4z for help-guix@gnu.org; Tue, 12 Mar 2019 15:24:54 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h3n1B-0001DM-BE for help-guix@gnu.org; Tue, 12 Mar 2019 15:24:53 -0400 In-Reply-To: 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@gnu.org On Mon, 11 Mar 2019, Jack Hill wrote: > Hi Guix, > > I'm looking for help or tips on debugging an mcron job. I haven't yet solved this, but have some done some more (potentially interesting) troubleshooting. The problem only seems to present itself, when mcron is run from Shepherd. For testing purposes, I changed the schedule to run every minute. This is how mcron is being called from Shepherd: # ps -ef|grep mcron root 32463 1 0 15:11 ? 00:00:00 /gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron /gnu/store/0h36hing715c57k9xz5f6fgm77krq4p7-mcron-job If I then run the same thing from a root shell: # /gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron /gnu/store/0h36hing715c57k9xz5f6fgm77krq4p7-mcron-job ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/0h36hing715c57k9xz5f6fgm77krq4p7-mcron-job ;;; compiled /root/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/0h36hing715c57k9xz5f6fgm77krq4p7-mcron-job.go it works. What could be causing this? The contents of the job file are: (job "* * * * *" "/gnu/store/61692zjpkhy3jqv4a7jk1k8a14k6yn8k-planisphere-report-0-0.1b606af/bin/planisphere-report") Best, Jack