Index

Subject : Re: LUG: Anything wrong with this cron entry?

From : "Daniel Underwood" <daniel.underwood@ncsu.[redacted]>

Date : Fri, 07 Oct 2011 15:11:10 -0400

Parent


No, didn't check syslog. Tried to check it now, but its history doesn't extend to the first of this month.

cron: 3.0pl1-106ubuntu5

On Friday, October 07, 2011 2:05 PM, "Ian Kilgore" <imkilgor@ncsu.[redacted]> wrote:
> Cron should still attempt to run it. Daniel, did you check syslog for messages from Cron rather than rsnapshot?
>
> Which crond are you using?
>
> On Oct 6, 2011, at 11:44, Warren Myers <volcimaster@gmail.[redacted]> wrote:
>
> > Here I was hoping maybe it had fired a second early :\
> >
> > My second thought is that since the same command is scheduled at the same time once per month, that maybe rsnapshot couldn't run because it already was?
> >
> > WMM
> >
> > On Thu, Oct 6, 2011 at 11:34, Daniel Underwood <daniel.underwood@ncsu.[redacted]> wrote:
> > > Just for kicks, could you post the contents of the September log?
> >
> > Here it is:
> >
> > [BEGIN TEXT FROM SEPT 30 LOG]
> > Sep 30 00:00:02 pc15-373 rsnapshot[13086]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 01:00:02 pc15-373 rsnapshot[13122]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 02:00:01 pc15-373 rsnapshot[13158]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 03:00:01 pc15-373 rsnapshot[13194]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 04:00:02 pc15-373 rsnapshot[13230]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 05:00:02 pc15-373 rsnapshot[13266]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 06:00:02 pc15-373 rsnapshot[13302]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 07:00:02 pc15-373 rsnapshot[13341]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 08:00:02 pc15-373 rsnapshot[13413]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 08:02:41 pc15-373 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="847" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
> > Sep 30 09:00:02 pc15-373 rsnapshot[27456]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 09:04:11 pc15-373 nautilus: [N-A] Nautilus-Actions Menu Extender 2.30.2 initializing...
> > Sep 30 09:04:11 pc15-373 nautilus: [N-A] Nautilus-Actions Tracker 2.30.2 initializing...
> > Sep 30 09:05:21 pc15-373 pulseaudio[27548]: ratelimit.c: 2 events suppressed
> > Sep 30 10:00:02 pc15-373 rsnapshot[28470]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 11:00:02 pc15-373 rsnapshot[28595]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 12:00:02 pc15-373 rsnapshot[28632]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 12:06:52 pc15-373 kernel: [703609.978918] device eth0 entered promiscuous mode
> > Sep 30 12:17:42 pc15-373 kernel: [704260.186187] device eth0 left promiscuous mode
> > Sep 30 13:00:02 pc15-373 rsnapshot[29237]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 14:00:02 pc15-373 rsnapshot[29395]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 15:00:02 pc15-373 rsnapshot[29540]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 16:00:02 pc15-373 rsnapshot[29748]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 16:15:38 pc15-373 kernel: [718535.996974] device eth0 entered promiscuous mode
> > Sep 30 16:19:41 pc15-373 kernel: [718778.961673] type=1503 audit(1317413981.703:16): operation="open" pid=30000 parent=29999 profile="/usr/bin/evince-thumbnailer" requested_mask="::r" denied_mask="::r" fsuid=1000 ouid=0 name="/etc/texmf/dvips/"
> > Sep 30 16:19:41 pc15-373 kernel: [718778.962219] type=1503 audit(1317413981.703:17): operation="open" pid=30000 parent=29999 profile="/usr/bin/evince-thumbnailer" requested_mask="::r" denied_mask="::r" fsuid=1000 ouid=0 name="/etc/texmf/"
> > Sep 30 16:47:39 pc15-373 kernel: [720456.611261] device eth0 left promiscuous mode
> > Sep 30 16:56:57 pc15-373 kernel: [721014.260643] usb 2-3: new high speed USB device using ehci_hcd and address 4
> > Sep 30 16:56:57 pc15-373 kernel: [721014.410983] usb 2-3: configuration #1 chosen from 1 choice
> > Sep 30 16:56:57 pc15-373 kernel: [721014.411500] scsi8 : SCSI emulation for USB Mass Storage devices
> > Sep 30 16:57:02 pc15-373 kernel: [721019.452843] scsi 8:0:0:0: Direct-Access SAMSUNG HM100UI PQ: 0 ANSI: 2 CCS
> > Sep 30 16:57:02 pc15-373 kernel: [721019.453277] sd 8:0:0:0: Attached scsi generic sg3 type 0
> > Sep 30 16:57:02 pc15-373 kernel: [721019.454575] sd 8:0:0:0: [sdc] XXX3525168 512-byte logical blocks: (1.00 TB/931 GiB)
> > Sep 30 16:57:02 pc15-373 kernel: [721019.455332] sd 8:0:0:0: [sdc] Write Protect is off
> > Sep 30 16:57:02 pc15-373 kernel: [721019.456830] sdc: sdc1
> > Sep 30 16:57:02 pc15-373 kernel: [721019.484083] sd 8:0:0:0: [sdc] Attached SCSI disk
> > Sep 30 16:57:02 pc15-373 kernel: [721019.853294] EXT4-fs (sdc1): warning: maximal mount count reached, running e2fsck is recommended
> > Sep 30 16:57:02 pc15-373 kernel: [721019.865591] EXT4-fs (sdc1): mounted filesystem with ordered data mode
> > Sep 30 17:00:04 pc15-373 rsnapshot[30984]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 17:04:09 pc15-373 pulseaudio[27548]: ratelimit.c: 467 events suppressed
> > Sep 30 17:07:07 pc15-373 kernel: [721624.741676] [fglrx] IRQ 34 Disabled
> > Sep 30 17:07:08 pc15-373 kernel: [721625.450327] [fglrx] Firegl kernel thread PID: 31279
> > Sep 30 17:07:08 pc15-373 kernel: [721625.450493] [fglrx] IRQ 34 Enabled
> > Sep 30 17:07:08 pc15-373 kernel: [721625.720048] usb 2-3: USB disconnect, address 4
> > Sep 30 17:07:08 pc15-373 kernel: [721625.940867] [fglrx] Gart USWC size:1279 M.
> > Sep 30 17:07:08 pc15-373 kernel: [721625.940869] [fglrx] Gart cacheable size:508 M.
> > Sep 30 17:07:08 pc15-373 kernel: [721625.940872] [fglrx] Reserved FB block: Shared offset:0, size:1000000
> > Sep 30 17:07:08 pc15-373 kernel: [721625.940874] [fglrx] Reserved FB block: Unshared offset:fbfa000, size:401000
> > Sep 30 17:07:08 pc15-373 kernel: [721625.940876] [fglrx] Reserved FB block: Unshared offset:fffb000, size:5000
> > Sep 30 18:00:03 pc15-373 rsnapshot[31363]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 19:00:02 pc15-373 rsnapshot[31409]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 20:00:02 pc15-373 rsnapshot[31445]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 21:00:02 pc15-373 rsnapshot[31481]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 22:00:02 pc15-373 rsnapshot[31558]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 23:00:02 pc15-373 rsnapshot[31594]: /usr/bin/rsnapshot hourly: completed successfully
> > Sep 30 23:30:01 pc15-373 rsnapshot[31615]: /usr/bin/rsnapshot daily: completed successfully
> > [END TEXT FROM SEPT 30 LOG]
> >
> > On Wednesday, October 05, 2011 3:54 PM, "Warren Myers" <volcimaster@gmail.[redacted]> wrote:
> > > Just for kicks, could you post the contents of the September log?
> > >
> > > On Wed, Oct 5, 2011 at 15:11, Daniel Underwood <daniel.underwood@ncsu.[redacted]>wrote:
> > >
> > > > Folks,
> > > >
> > > > For some reason, the "/usr/bin/rsnapshot monthly" entry in the cron
> > > > listing below was not executed on this past October 1st. It's supposed
> > > > to be executed once a month on the first day of the month. (I added
> > > > the monthly run just a few days prior to October 1st, so I don't have
> > > > any history of it working.) Does anyone see a problem with the cron
> > > > listing below?
> > > >
> > > > [BEGIN TEXT FROM CRON]
> > > > # m h dom mon dow command
> > > > 0 * * * * /usr/bin/rsnapshot hourly
> > > > 30 23 * * * /usr/bin/rsnapshot daily
> > > > 0 0 1 * * /usr/bin/rsnapshot monthly
> > > > [END TEXT FROM CRON]
> > > >
> > > > The relevant portion of my system log for October 1st:
> > > >
> > > > [BEGIN TEXT FROM LOG]
> > > > Oct 1 00:00:02 pc15-373 rsnapshot[31642]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 01:00:02 pc15-373 rsnapshot[31680]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 02:00:02 pc15-373 rsnapshot[31716]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 03:00:02 pc15-373 rsnapshot[31752]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 04:00:02 pc15-373 rsnapshot[31788]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 05:00:02 pc15-373 rsnapshot[31824]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 06:00:02 pc15-373 rsnapshot[31860]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 07:00:02 pc15-373 rsnapshot[31903]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 07:48:00 pc15-373 rsyslogd: [origin software="rsyslogd"
> > > > swVersion="4.2.0" x-pid="847" x-info="http://www.rsyslog.com"] rsyslogd
> > > > was HUPed, type 'lightweight'.
> > > > Oct 1 08:00:02 pc15-373 rsnapshot[13705]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 09:00:02 pc15-373 rsnapshot[13741]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 10:00:02 pc15-373 rsnapshot[13777]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 11:00:02 pc15-373 rsnapshot[13813]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 12:00:02 pc15-373 rsnapshot[13849]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 13:00:02 pc15-373 rsnapshot[13885]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 14:00:02 pc15-373 rsnapshot[13921]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 15:00:02 pc15-373 rsnapshot[13957]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 16:00:02 pc15-373 rsnapshot[13993]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 17:00:02 pc15-373 rsnapshot[14031]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 18:00:02 pc15-373 rsnapshot[14067]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 19:00:01 pc15-373 rsnapshot[14103]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 20:00:02 pc15-373 rsnapshot[14139]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 21:00:02 pc15-373 rsnapshot[14175]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 22:00:02 pc15-373 rsnapshot[14211]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 23:00:02 pc15-373 rsnapshot[14247]: /usr/bin/rsnapshot hourly:
> > > > completed successfully
> > > > Oct 1 23:30:01 pc15-373 rsnapshot[14268]: /usr/bin/rsnapshot daily:
> > > > completed successfully
> > > > [END TEXT FROM LOG]
> > > >
> > > > Thanks,
> > > > Daniel
> > > > --
> > > > Daniel Underwood
> > > > North Carolina State University
> > > > PhD Student - Industrial Engineering
> > > > email: daniel.underwood@ncsu.[redacted]
> > > > phone: XXX.302.3291
> > > > fax: XXX.515.5281
> > > > web: http://www4.ncsu.edu/~djunderw/
> > > >
> > > >
> > >
> > >
> > > --
> > > Warren Myers
> > > http://warrenmyers.com
> > > http://twitter.com/volcimaster
> > > http://www.linkedin.com/in/warrenmyers
> > >
> > --
> > Daniel Underwood
> > North Carolina State University
> > PhD Student - Industrial Engineering
> > email: daniel.underwood@ncsu.[redacted]
> > phone: XXX.302.3291
> > fax: XXX.515.5281
> > web: http://www4.ncsu.edu/~djunderw/
> >
> >
> >
> >
> > --
> > Warren Myers
> > http://warrenmyers.com
> > http://twitter.com/volcimaster
> > http://www.linkedin.com/in/warrenmyers
>
--
Daniel Underwood
North Carolina State University
PhD Student - Industrial Engineering
email: daniel.underwood@ncsu.[redacted]
phone: XXX.302.3291
fax: XXX.515.5281
web: http://www4.ncsu.edu/~djunderw/



Replies :