Mark & developers,

I spent a few hours working on this issue today.

I've seen a number of mailing list postings with no solution.

With cfengine 3.0.5p1, the "corrupted in transit" problem presents when 
files are in Mac/UNIX format.  After converting the .cf files to DOS 
format, with 0x0d0a linefeeds, everything works fine.  No other changes.

I've tested against different openssl variants, also including 0.9.8a.

Thanks,


On Mon, 12 Apr 2010, Traiano Welcome wrote:

> Hi All
>
> I noticed that changes I made to configuration files in my cf-serverd
> repository server were not propagating to the cf-engine agent servers. On
> closer inspection, with debugging, there seems to be some kind of
> MD5-mismatch that happens when the cf-agent tries to generate the new
> updated copy of the changed configuration file:
>
> During the attempt to synchronise the changed config file from the
> cf-serverd repository, this happens:
>
> ---
> .
> .
> MD5 mismatch: (reply - CFD_TRUE)
>
> !! New file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew seems
> to have been corrupted in transit, aborting!Unappending
>
> !! New file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew seems
> to have been corrupted in transit, aborting!
> .
> .
> ---
>
> I've tried setting encrypt="false" on both ends and double-checked with
> encrypt="true" on both ends, and am not sure of what next would be most
> reasonable to test with.
>
> Has anyone seen this type of problem before? Is it likely related to a
> configuration problem with my cf-engine installation?
>
> A more complete dump of the relevant section of the debug run on the
> cf-agent side looks like this:
>
>
> ---
> .
> .
>
> cf_remotestat(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexis
> ts.cf,link)CacheStat(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/u
> serexists.cf,28002208)
> Did not find in cache
> Transaction Send[t 112][Packed text]Attempting to send 120 bytes
> SendSocketStream, sent 120RecvSocketStream(8) (Concatenated 8 from stream)
> Transaction Receive [t 68][]RecvSocketStream(68)
>    (Concatenated 68 from stream)
> Protoreply: (OK: 0 420 0 0 0 664 1271073955 1271073767 1271073767 0 3913683
> 1 102)
> Mode = 420,0
> OK: type=0
> mode=644
> lmode=0 uid=0
> gid=0 size=664
> atime=1271073955 mtime=1271073767 ino=3913683 nlnk=1, dev=102
> RecvSocketStream(8)    (Concatenated 8 from stream)
> Transaction Receive [t 3][]
> RecvSocketStream(3)
>    (Concatenated 3 from stream)
> Linkbuffer: OK:
> NewClientCache
> VerifyCopy
> (source=/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf
> destination=/var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf)
>
> cf_remotestat(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexis
> ts.cf,link)
> CacheStat(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.c
> f,28002208)Found in cache
> CopyFile(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf
> ,/var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf
> ) -> Destination file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf already
> exists
> Unappending  -> Destination file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf already
> existsCompareFileHashes(/usr/local/
> cvswork/inputs/monitoring-agent/cf-configs/userexists.cf,/var/cfengine/input
> s/monitoring-agent/cf-configs/userexists.cf)
> File sizes differ, no need to compute checksum !! Image file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf has a wrong
> MD5 checksum (should be copy of
> /usr/local/cvswork/inputs/moitoring-agent/cf-configs/userexists.cf)"
> Unappending  !! Image file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf has a wrong
> MD5 checksum (should be copy of
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf)
> -> Updated /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf
> from source
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf on
> xxx.xxx.xxx.xx
> ClassAuditLog( -> Updated
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf from source
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf on
> xxx.xxx.xxx.xx)
> made a system correctionPromised in /var/cfengine/inputs/update.cf bundle
> update (unamed version last edited at Thu Mar 11 11:02:55 2010) at/before
> line 28
> Unappending  -> Updated
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf from source
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf on
> xxx.xxx.xxx.xx
> CopyRegularFile(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/userex
> ists.cf,/var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf)
> This is a remote copy from server: xxx.xxx.xxx.xx
> Transaction Send[t 104][Packed text]
> Attempting to send 112 bytes
> SendSocketStream, sent 112
> RecvSocketStream(8)
>    (Concatenated 8 from stream)
> Transaction Receive [m 664][]
> RecvSocketStream(664)
>    (Concatenated 664 from stream)
> RecvSocketStream(8)
>    (Concatenated 8 from stream)
> Transaction Receive [t 8][]
> RecvSocketStream(8)
>    (Concatenated 8 from stream)
> End of CopyNetReg
> -> Copy of regular file succeeded
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew
> Unappending  -> Copy of regular file succeeded
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew
> Backup file
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf
> ?? Final verification of transmission ...
> Unappending  ?? Final verification of transmission ...
> -> Copy of regular file succeeded
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/monitoring-a
> gent/cf-configs/userexists.cf.cfnew
> Unappending  -> Copy of regular file succeeded
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/
> monitoring-agent/cf-configs/userexists.cf.cfnew
> Backup file
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf
> ?? Final verification of transmission ...
> Unappending  ?? Final verification of transmission ...
> CompareFileHashes(/usr/local/cvswork/inputs/monitoring-agent/cf-configs/user
> exists.cf,/var/cfengine/inputs/monitoring-agent/cf-configs/user
> exists.cf.cfnew)
> HashFile(^@,/var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.c
> fnew)
> Send digest of
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew to
> server, MD5=e00a4d64b462c0e40f55892569d78aff
> Send digest of
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew to
> server, MD5=e00a4d64b462c0e40f55892569d78aff
> Transaction Send[t 112][Packed text]Attempting to send 120 bytes
> SendSocketStream, sent 120
> RecvSocketStream(8)
>    (Concatenated 8 from stream)Transaction Receive [t 8][]
> RecvSocketStream(8)
>    (Concatenated 8 from stream)
> MD5 mismatch: (reply - CFD_TRUE)
> !! New file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew seems
> to have been corrupted in transit, aborting!Unappending
> !! New file
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf.cfnew seems
> to have been corrupted in transit, aborting!
> GetVariable(control_common,version) type=(to be
> determined)IsExpandable(version) - syntax verify
> Found 0 variables in (version)
> Looking for control_common.version
> Searching for scope context control_commonFound scope reference
> control_common
> GetVariable(control_common,version): using scope 'control_common' for
> variable 'version'
> No such variable found control_common.version
>  Verify Constrant name handle
> Was not able to copy
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/monitoring-agent/cf-configs/userexists.cf
> I: Report relates to a promise with handle ""
> I: Made in version 'not specified' of '/var/cfengine/inputs/update.cf' near
> line 28ClassAuditLog(Was not able to copy
> /usr/local/cvswork/inputs/monitoring-agent/cf-configs/userexists.cf to
> /var/cfengine/inputs/monitoring-a
> gent/cf-configs/userexists.cf)
> .
> .
> ---
>
>
> Thanks in Advance!
> Traiano Welcome
>
>
> NOTE: This e-mail message and all attachments thereto contain confidential 
> information intended for a specific addressee and purpose. If you are not the 
> addressee (a) you may not disclose, copy, distribute or take any action based 
> on the contents hereof; (b) kindly inform the sender immediately and destroy 
> all copies hereof. Any copying, publication or disclosure of this message, or 
> part hereof, in any form whatsoever, without the sender's express written 
> consent, is prohibited. No opinion expressed or implied by the sender 
> necessarily constitutes the opinion of MTN. This message does not constitute 
> a guarantee or proof of the facts mentioned herein. No Employee or 
> intermediary is authorised to conclude a binding agreement on behalf of MTN 
> Group Limited, or any of its subsidiary companies, by e-mail without the 
> express written confirmation by a duly authorised representative of MTN Group 
> Limited.
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>

-- 
William R. Lorenz

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to