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

Alan McKinnon alan.mckinnon at gmail.com
Thu Aug 15 21:23:59 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?


This happened to me once but in reverse; I couldn't get a router to be
polled correctly on the cmd line no matter what I did, then I realized I
was running rancid -d against a Nexus....



-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list