[rancid] mtlogin error: Error TIMEOUT reached (2.3.8 deb)

Lukasz Sokol el.es.cr at gmail.com
Thu Mar 26 11:15:16 UTC 2015


Hi,

How can I debug, what's given to expect as timeout during rancid-run ? 

(other than using & analyzing strace, possibly)

TL;DR:

still using the version from debian package on wheezy+backports,

lukasz at george:~$ sudo apt-cache show rancid
Package: rancid
Version: 2.3.8-3

rancid at george:~$ bin/mtrancid -V
rancid 2.3.8

On one router, while rancid-run, i get in the logs:

myrouter mtlogin error: Error: TIMEOUT reached
myrouter: missed cmd(s): system license print,system routerboard print,export,system package print detail without-paging
myrouter: End of run not found

and predictably no config is collected.

So I split the cmd(s) to separate mtlogin -c invocations, slapped them into a script and ran it under time,

revealing

time ./myscript > /dev/null

real	0m57.423s 
user	0m0.148s
sys	0m0.060s


Running each mtlogin -c command separately, reveals that in particular "export" command can take its time,
interrupting its output for up to 40-45 seconds at a time. 

I have increased timeo and timeout settings in mtrancid and mtlogin, to 120s each, but the
"TIMEOUT reached" in logs still appears.

Neither command, when ran separately, is hanging forever, i.e. each one completes and exits successfully.

I googled and found one occurrence on this m/l when someone asked, is the router having a lot or routes,
but that, as far as I could follow, wasn't answered; in my case, the answer is YES, and NO I can't put any less on it.

Hope this can still be helped ;)

el es



More information about the Rancid-discuss mailing list