[rancid] rancid suddenly stopped backing up devices

simon ben guy20034u at yahoo.com
Mon Oct 10 10:08:09 UTC 2022


 Dear All,
Regarding the issue I had regarding any changes made in any of the devices already configured in rancid would not be backed up neither in ViewVC no revisions have been updatedSo I did a new test
1) creted a new group named Remore-Routers ---- was succesful2) added a new router add the neccesary to clogin  and tested using /usr/bin/rancid/clogin device ----- was sucessful3) updated the new router.db file 
4) ran rancid-run 

got an email as below----------------------------------------------
Index: configs/ahmedi-core

===================================================================

retrieving revision 1.2

diff -u -4 -r1.2 ahmedi-core

@@ -82,12 +82,12 @@

  !Flash: nvram:-rw-        1528                    <no date>  license_trap.eci

  !Flash: nvram:-rw-          89                    <no date>  ma_trap_keyword

  !Flash: nvram:-rw-         886                    <no date>  memory_trap.eci

  !Flash: nvram:----         104                    <no date>  persistent-data

- !Flash: nvram: ----        3575                    <no date>  private-config

+ !Flash: nvram: ----        3682                    <no date>  private-config

  !Flash: nvram:----           0                    <no date>  rf_cold_starts

  !Flash: nvram:-rw-         858                    <no date>  rf_trap.eci

- !Flash: nvram: -rw-        4717                    <no date>  startup-config

+ !Flash: nvram: -rw-        4730                    <no date>  startup-config

  !Flash: nvram:-rw-                               <no date>  underlying-config

  !Flash: nvram:511 KB total (95% free)

  !

  !Flash:bootflash: Directory of bootflash:/ @@ -1212,8 +1212,9 @@

  ip ssh time-out60

  ip ssh authentication-retries1

  ip ssh version 2

  !

+ snmp-server group default v3 auth

  snmp-servercommunity kmun2003 RO

  !

  banner login ^C
------------------------------------------------------------------------------
5) In Viewvc browser I could see the entire router config under root/cvsroot/Remote-Routers/configs
Now I did some changes to the above Router and then ran /usr/local/rancid/bin/rancid-run it finsihed with no errorsbut the was no new revicsion in viewvc as used to be the case before sept 21 2022 . 

Also when I checked the logsThe first time when rancid was run the logs showed 
----------------------------------------------Added makrtr



Trying to get all of the configs.
All routers successfully completed.

cvs diff: Diffing .
cvs diff: .cvsignore is a new entry, no comparison available
cvs diff: Diffing configs
cvs diff: configs/.cvsignore is a new entry, no comparison available
cvs commit: Examining .
cvs commit: Examining configs
RCS file: /usr/local/rancid/var/CVS/Remote-Routers/.cvsignore,v
done
Checking in .cvsignore;
/usr/local/rancid/var/CVS/Remote-Routers/.cvsignore,v  <--  .cvsignore
initial revision: 1.1
done
Checking in router.db;
/usr/local/rancid/var/CVS/Remote-Routers/router.db,v  <--  router.db
new revision: 1.2; previous revision: 1.1
done
RCS file: /usr/local/rancid/var/CVS/Remote-Routers/configs/.cvsignore,v
done
Checking in configs/.cvsignore;
/usr/local/rancid/var/CVS/Remote-Routers/configs/.cvsignore,v  <--  .cvsignore
initial revision: 1.1
done
Checking in configs/makrtr;
/usr/local/rancid/var/CVS/Remote-Routers/configs/makrtr,v  <--  makrtr
new revision: 1.2; previous revision: 1.1
done

ending: Mon Oct 10 11:42:48 +03 2022
[rancid at rancid logs]$ 
[rancid at rancid logs]$ 
[rancid at rancid logs]$ clear
[rancid at rancid logs]$ more Remote-Routers.20221010.114233
starting: Mon Oct 10 11:42:33 +03 2022

cvs add: scheduling file `.cvsignore' for addition
cvs add: use 'cvs commit' to add this file permanently
cvs add: scheduling file `configs/.cvsignore' for addition
cvs add: use 'cvs commit' to add this file permanently
cvs add: scheduling file `makrtr' for addition
cvs add: use 'cvs commit' to add this file permanently
RCS file: /usr/local/rancid/var/CVS/Remote-Routers/configs/makrtr,v
done
Checking in makrtr;
/usr/local/rancid/var/CVS/Remote-Routers/configs/makrtr,v  <--  makrtr
initial revision: 1.1
done
Added makrtr



Trying to get all of the configs.
All routers successfully completed.

cvs diff: Diffing .
cvs diff: .cvsignore is a new entry, no comparison available
cvs diff: Diffing configs
cvs diff: configs/.cvsignore is a new entry, no comparison available
cvs commit: Examining .
cvs commit: Examining configs
RCS file: /usr/local/rancid/var/CVS/Remote-Routers/.cvsignore,v
done
Checking in .cvsignore;
/usr/local/rancid/var/CVS/Remote-Routers/.cvsignore,v  <--  .cvsignore
initial revision: 1.1
done
Checking in router.db;
/usr/local/rancid/var/CVS/Remote-Routers/router.db,v  <--  router.db
new revision: 1.2; previous revision: 1.1
done
RCS file: /usr/local/rancid/var/CVS/Remote-Routers/configs/.cvsignore,v
done
Checking in configs/.cvsignore;
/usr/local/rancid/var/CVS/Remote-Routers/configs/.cvsignore,v  <--  .cvsignore
initial revision: 1.1
done
Checking in configs/makrtr;
/usr/local/rancid/var/CVS/Remote-Routers/configs/makrtr,v  <--  makrtr
new revision: 1.2; previous revision: 1.1
done

ending: Mon Oct 10 11:42:48 +03 2022--------------------------------------------------------------------------
after making small changes the log file
----------------------------------------------------------------
starting: Mon Oct 10 12:04:18 +03 2022

Trying to get all of the configs.
All routers successfully completed.

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs

ending: Mon Oct 10 12:04:31 +03 2022----------------------------------------------------------
So it seems when I add a new device to rancid it works but the next time it does nothing
any advice and troubleshooting help would be highly apprecited

Regards
simon





    On Wednesday, October 5, 2022 at 06:40:29 PM GMT+3, heasley <heas at shrubbery.net> wrote:  
 
 Wed, Oct 05, 2022 at 03:21:42PM +0000, Adam Thompson:
> OK!  Having  clogin work proves that RANCID can connect to the host and (I assume?) authenticate.

yes.

> No change in the SVN/GIT/whatever-you-use could mean that either RANCID wasn’t able to retrieve the configuration, wasn’t able to parse the configuration, or wasn’t able to check in the new version to the repo.

if it were unable to commit the new version, you would see the same diffs
repeatedly.

I would review the logs for the group.  if nothing there indicates the
problem, try the clogin tests outlined in the FAQ.  If these work, verify
that the entry in the router.db is correct and the device is marked as 'up';
it would appears in the routers.up file too.

other useful tests are running rancid manually, like

    rancid -t <type> -dl <devicename>

that shows misc parsing & logs, the commands run & filters called, the 
exit value, and leaves <devicename>.{raw,new} output files.

then
    rancid -t <type> -dl -f <devicename>.raw
can be used for further debugging that I would not expect to be useful to
most.


> Unfortunately, I’ve found RANCID’s own debugging output to be either nonexistent or unhelpful.  I have run into a very similar situation in the past, but sadly I don’t remember what the problem was.  I do remember I had to use system tools to find out what was wrong:
> 
> If you’re running on Linux, you have the strace(1) tool; on OpenBSD, you’ve got ktrace(1); on Solaris you’ve got truss(8); other UNIXes will have roughly-equivalent tools – all these are similar in that they will trace system calls for you and produce (somewhat-) meaningful output that may help you identify where the failure occurs.  E.g. if it’s a permissions error, the strace(8) output may show you the EPERM error message, and if you look carefully, the path to the file in question.  Generally speaking, the strace/ktrace/truss/etc. output will show a failure somewhere in the later part of RANCID’s execution that you can use as a starting point.

what did you find to be missing?  Tell me so that I can try to improve the
debug output.

> Dear All,
> 
> I had rancid installed couple of months back and working fine with no issues
> i have rancid version 3.9 with viewvc 1.3.0
> 
> I just realized that any changes to most devices are not backed up.
> there is no update in revison version neither I receive mail
> It stopped on sept 21 2022
> attached a screen shot of the firewall
> 
> changes to above device is done almost daily.
> i did run clogin deviceip and it logs in succesfully
> 
> appreciate if someone can advise and help in troubleshooting the issue
> I checked the logs but there is no clue
> 
> Thanks and regards
> 
> simon
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20221010/b2ef0a9a/attachment.htm>


More information about the Rancid-discuss mailing list