[rancid] rancid suddenly stopped backing up devices

Adam Thompson athompson at merlin.mb.ca
Wed Oct 5 15:21:42 UTC 2022


OK!  Having  clogin work proves that RANCID can connect to the host and (I assume?) authenticate.
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.

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.

That’s all I’ve got, hopefully someone else has an easier suggestion.
-Adam

Adam Thompson
Consultant, Infrastructure Services
[MERLIN]
100 - 135 Innovation Drive
Winnipeg, MB R3T 6A8
(204) 977-6824 or 1-800-430-6404 (MB only)
https://www.merlin.mb.ca<https://www.merlin.mb.ca/>
[cid:image002.png at 01D8D897.6DA634E0]Chat with me on Teams<https://teams.microsoft.com/l/chat/0/0?users=athompson@merlin.mb.ca>

From: simon ben <guy20034u at yahoo.com>
Sent: October 5, 2022 1:16 AM
To: rancid-discuss at shrubbery.net; Adam Thompson <athompson at merlin.mb.ca>
Subject: Re: [rancid] rancid suddenly stopped backing up devices

Dear Adam,

Thanks for the quick reply
actually I did make a change in router config and also firewall and than ran rancid-run manually but there no update in the revisons neither any email .

Thanks and Regards

simon

On Wednesday, October 5, 2022 at 09:10:12 AM GMT+3, Adam Thompson <athompson at merlin.mb.ca<mailto:athompson at merlin.mb.ca>> wrote:


I suspect something broke in your crond(7) or crontab(5)s, since manually invoking rancid seems to work.
It'll vary depending on your OS (which you didn't specify) but try looking in /var/log/cron for information.
The breakage may have come from an automatic OS update, but again, without details it's hard to guess.

But in any case, since clogin still works, it's probably not a RANCID issue at all.  You still need to manually involve rancid (like cron would do) and see if that completes successfully or not.

Also, the problem could simply be email: maybe RANCID is working fine but the emails aren't making it out.  I've run into this more than once when something external in the email chain changed.

You've a bit more basic UNIX troubleshooting to do before we start blaming RANCID, I'm afraid.  Luckily people here will generally be able to provide some advice at the OS level, given adequate detail.

-Adam

Get Outlook for Android<https://aka.ms/AAb9ysg>

________________________________
From: Rancid-discuss <rancid-discuss-bounces at www.shrubbery.net<mailto:rancid-discuss-bounces at www.shrubbery.net>> on behalf of simon ben <guy20034u at yahoo.com<mailto:guy20034u at yahoo.com>>
Sent: Wednesday, October 5, 2022, 01:01
To: rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net> <rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>>
Subject: [rancid] rancid suddenly stopped backing up devices

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/20221005/b69c1af8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 13827 bytes
Desc: image001.png
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20221005/b69c1af8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 359 bytes
Desc: image002.png
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20221005/b69c1af8/attachment-0001.png>


More information about the Rancid-discuss mailing list