[rancid] Fwd: Re: rancid sending same diffs every time cron runs

Jason Ellison infotek at gmail.com
Wed Mar 18 14:07:12 UTC 2009


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

root at 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.

root at 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

root at 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:

root at monitor:/usr/local/rancid/var/wd/configs# cvs diff
cvs diff: Diffing .

root at 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



2009/3/18 Peter Serwe <peter.serwe at gmail.com>:
> 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
>
> On Tue, Mar 17, 2009 at 10:53 AM, Jason Ellison <infotek at gmail.com> wrote:
>> On Mon, Mar 16, 2009 at 7:46 AM, Mark wrote:
>>> Jason Ellison wrote:
>>>> 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
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
>
>
>
> --
> ピーター
>


More information about the Rancid-discuss mailing list