[rancid] missed cmds, but only when run from cron

Brent Wiese bwiese at ElementPS.com
Thu Aug 15 21:14:31 UTC 2013

> On Wed, Aug 14, 2013 at 12:20:11PM +0800, James Andrewartha wrote:
> > On 14/08/13 12:05, Paul Gear wrote:
> > > I'm seeing something very similar with one Mikrotik device out of
> 17
> > > on our network.  If run from the command line, it works fine.  If
> > > run from cron, one router in the group fails, giving the following
> error log:
> >
> > I had the same problem with a script I'd adapted, the solution was to
> > increase the timeout, as the device was quite slow to generate its
> config.
> Oooh, I have a blog post on exactly this, with Mikrotiks.
> http://blather.michaelwlucas.com/archives/1336

Read the article and ran it manually against time... 3 seconds. So definitely not a timeout issue.

Also tried passing in the ENV variables through cron... no change. Well, let me rephrase. I was able to put in all ENV variables except:
LESSOPEN=|/usr/bin/lesspipe.sh %s

If that was in there, the job never ran. I'm guessing because of the |.

Any other thoughts/suggestions?

More information about the Rancid-discuss mailing list