Discussion:
[rancid] rancid sending same diffs every time cron runs
Jason Ellison
2009-03-12 14:03:02 UTC
Permalink
Hi,

I'm running rancid-2.3.2a9 (modded) with CVS backend. Quite often
rancid sends me the same cvs diffs every time the cron job runs. To
fix it I have to remotely login and run rancid-run via an interactive
shell. Host operating system is Slackware.

Anyone seen this before?

Jason Ellison
Jason Ellison
2009-03-17 17:53:50 UTC
Permalink
Hi,
  I'm running rancid-2.3.2a9 (modded) with CVS backend.  Quite often
rancid sends me the same cvs diffs every time the cron job runs.  To
fix it I have to remotely login and run rancid-run via an interactive
shell.  Host operating system is Slackware.
  Anyone seen this before?
Sadly I see this all the time on 2 rancid boxes we have here.  I've not
tried that as a fix, my fix was to just rebuild CVS and have it start
over.  However, I will try your fix and see if works for me.
As for a true fix, you got me.
Mark
Do people using svn see the same issue? getting emails of diffs
though nothing has changed?

-Jason Ellison
john heasley
2009-03-17 21:54:53 UTC
Permalink
Post by Jason Ellison
Hi,
? I'm running rancid-2.3.2a9 (modded) with CVS backend. ?Quite often
rancid sends me the same cvs diffs every time the cron job runs. ?To
fix it I have to remotely login and run rancid-run via an interactive
shell. ?Host operating system is Slackware.
? Anyone seen this before?
Sadly I see this all the time on 2 rancid boxes we have here. ?I've not
tried that as a fix, my fix was to just rebuild CVS and have it start
over. ?However, I will try your fix and see if works for me.
As for a true fix, you got me.
Mark
Do people using svn see the same issue? getting emails of diffs
though nothing has changed?
have you tried running the diff manually to see if its simply not up-to-date?

cd /var/rancid/<groupname>; svn diff
Jason Ellison
2009-03-18 14:07:12 UTC
Permalink
My lack of knowledge of cvs was no help her. cvs status and cvs
update was trying to tell me it could not update because the file had
been locally modified.

cvs status

***@monitor:/usr/local/rancid/var/wd/configs# cvs status
cvs status: Examining .
===================================================================
File: ru-wd-rt01.hq.util.local Status: Up-to-date

Working revision: 1.6 Wed Mar 18 12:48:10 2009
Repository revision: 1.6
/usr/local/rancid/var/CVS/wd/configs/ru-wd-rt01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp01.hq.util.local Status: Up-to-date

Working revision: 1.3 Wed Mar 18 12:47:56 2009
Repository revision: 1.3
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp02.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 12:47:57 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp02.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp03.hq.util.local Status: Up-to-date

Working revision: 1.6 Wed Mar 18 12:47:56 2009
Repository revision: 1.6
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp03.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp04.hq.util.local Status: Locally Modified

Working revision: 1.7 Tue Mar 17 18:47:56 2009
Repository revision: 1.7
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp04.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp05.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 12:48:03 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp05.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw01.hq.util.local Status: Locally Modified

Working revision: 1.6 Tue Mar 17 12:48:03 2009
Repository revision: 1.6
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw02.hq.util.local Status: Locally Modified

Working revision: 1.10 Mon Mar 16 22:48:01 2009
Repository revision: 1.10
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw02.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw03.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 12:48:04 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw03.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw04.hq.util.local Status: Up-to-date

Working revision: 1.5 Wed Mar 18 12:48:09 2009
Repository revision: 1.5
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw04.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko


Showed that the problem files had been "Locally Modified". cvs
update was not committing the information into the repository. cvs
update was trying to tell me the same thing but i did not relise it.

***@monitor:/usr/local/rancid/var/wd/configs# cvs update
cvs update: Updating .
M ru-wd-sp04.hq.riviera.local
M ru-wd-sw01.hq.riviera.local
M ru-wd-sw02.hq.riviera.local

The "M" means locally modified. I found some information at
"http://www.twobarleycorns.net/cvs_guide/CVS.html" that instructed me
to run:

cvs ci file1 file2 file3

in the cvs man page I found this :

"
import output
import keeps you informed of its progress by printing a line for each
file, preceded by one character indicating the status of the file:

C file

The file already exists in the repository but has been locally modi-
fied; you will have to merge the changes.
"


This opened a vi editor that seemed to be wanting me to annotate something.

quiting this did what seemed to be a forced update

***@monitor:/usr/local/rancid/var/wd/configs# cvs ci
ru-wd-sp04.hq.util.local ru-wd-sw01.hq.util.local
ru-wd-sw02.hq.util.local

Log message unchanged or not specified
a)bort, c)ontinue, e)dit, !)reuse this message unchanged for remaining dirs
Action: (continue) c
Checking in ru-wd-sp04.hq.util.local;
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp04.hq.util.local,v <--
ru-wd-sp04.hq.util.local
new revision: 1.8; previous revision: 1.7
done
Checking in ru-wd-sw01.hq.util.local;
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw01.hq.util.local,v <--
ru-wd-sw01.hq.util.local
new revision: 1.7; previous revision: 1.6
done
Checking in ru-wd-sw02.hq.util.local;
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw02.hq.util.local,v <--
ru-wd-sw02.hq.util.local
new revision: 1.11; previous revision: 1.10
done


Now it looks fixed for now:

***@monitor:/usr/local/rancid/var/wd/configs# cvs diff
cvs diff: Diffing .

***@monitor:/usr/local/rancid/var/wd/configs# cvs status
cvs status: Examining .
===================================================================
File: ru-wd-rt01.hq.util.local Status: Up-to-date

Working revision: 1.6 Wed Mar 18 13:48:10 2009
Repository revision: 1.6
/usr/local/rancid/var/CVS/wd/configs/ru-wd-rt01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp01.hq.util.local Status: Up-to-date

Working revision: 1.3 Wed Mar 18 13:47:56 2009
Repository revision: 1.3
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp02.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 13:47:56 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp02.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp03.hq.util.local Status: Up-to-date

Working revision: 1.6 Wed Mar 18 13:47:56 2009
Repository revision: 1.6
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp03.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp04.hq.util.local Status: Up-to-date

Working revision: 1.8 Wed Mar 18 13:47:57 2009
Repository revision: 1.8
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp04.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sp05.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 13:48:02 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sp05.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw01.hq.util.local Status: Up-to-date

Working revision: 1.7 Wed Mar 18 13:48:04 2009
Repository revision: 1.7
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw01.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw02.hq.util.local Status: Up-to-date

Working revision: 1.11 Wed Mar 18 13:48:04 2009
Repository revision: 1.11
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw02.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw03.hq.util.local Status: Up-to-date

Working revision: 1.4 Wed Mar 18 13:48:04 2009
Repository revision: 1.4
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw03.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ru-wd-sw04.hq.util.local Status: Up-to-date

Working revision: 1.5 Wed Mar 18 13:48:07 2009
Repository revision: 1.5
/usr/local/rancid/var/CVS/wd/configs/ru-wd-sw04.hq.util.local,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko
No. I run svn and do not have the issue.
I have found though, that the most frequently asked question that
comes across the rancid-discuss list are typically related to the repo
being out of date.
It happened to me early on with my installation, svn info, or the
appropriate similar cvs command has been good about pointing out the
cause of the issue.
In my case, svn up (update) fixed it for me, and it's never come back.
Peter
Post by Jason Ellison
Post by Jason Ellison
Hi,
I'm running rancid-2.3.2a9 (modded) with CVS backend. Quite often
rancid sends me the same cvs diffs every time the cron job runs. To
fix it I have to remotely login and run rancid-run via an interactive
shell. Host operating system is Slackware.
Anyone seen this before?
Sadly I see this all the time on 2 rancid boxes we have here. I've not
tried that as a fix, my fix was to just rebuild CVS and have it start
over. However, I will try your fix and see if works for me.
As for a true fix, you got me.
Mark
Do people using svn see the same issue? getting emails of diffs
though nothing has changed?
-Jason Ellison
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
$B%T!<%?!<(B
Loading...