[rancid] FW: missed cmds, but only when run from cron
Brent Wiese
bwiese at ElementPS.com
Thu Aug 15 21:30:21 UTC 2013
> On 15/08/2013 23:14, Brent Wiese wrote:
> >>
> >> 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
> >>
> > <<snip>>
> >
> > 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?
>
>
>
> A wild guess - is the type set correctly in router.db for that device?
>
Yes - I've edited the logging lines on the script that type runs to confirm it's running the correct one.
More information about the Rancid-discuss
mailing list