[Csync2] csync2 doesn't handle deletes?

Dustin Mitchell dustin at mozilla.com
Thu Jun 28 00:23:18 CEST 2012


I just tried to delete another dir (/data/repos/yum/mozilla/CentOS/6/x86_64/) after verifying everything was happy on all four nodes.  It failed again -- and there seems to be an unterminated string, too:

----
<`B?? ??cc?\S?+?:?&1l+????v???m/??????H?CentOS/6/x86_64/mozilla-git-1.7.9.4-2.el6.src.rpm): releng-puppet1.build.mtv1.mozilla.com L???l
I/O Error 'No such file or directory' in rsync-check: /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.3-1.el6.src.rpm

While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.3-1.el6.noarch.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.3-1.el6.noarch.rpm): releng-puppet1.build.mtv1.mozilla.com octet-stream 648

While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.2-1.el6.src.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.2-1.el6.src.rpm): releng-puppet1.build.mtv1.mozilla.com rs6
While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.2-1.el6.noarch.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.2-1.el6.noarch.rpm): releng-puppet1.build.mtv1.mozilla.com ??(???o???7p?0??L"?qc>?3=?qxE       2o??W5m?????֙?????B;?:?:??b??Vu???DLd=l?O?y???)?K????
While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.1-1.el6.src.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.1-1.el6.src.rpm): releng-puppet1.build.mtv1.mozilla.com ?8??:_f?? ???

While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.1-1.el6.noarch.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.1-1.el6.noarch.rpm): releng-puppet1.build.mtv1.mozilla.com ?i?W|?
While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.0-1.el6.src.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.0-1.el6.src.rpm): releng-puppet1.build.mtv1.mozilla.com ????ҭ??:?      ;??4"h~ͭ???C???

While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.0-1.el6.noarch.rpm:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64/mock_mozilla-1.0.0-1.el6.noarch.rpm): releng-puppet1.build.mtv1.mozilla.com ?D?wW???*??????,?q#?Y?
While syncing file /data/repos/yum/mozilla/CentOS/6/x86_64:

ERROR from peer(/data/repos/yum/mozilla/CentOS/6/x86_64): releng-puppet1.build.mtv1.mozilla.com ????+?R`I?+? ???H?N?287ʉ?fw???9?U?|W?   ?fd??\????????OK (cmd_finished).
----

So it looks like my hunch was correct, and deleting directories doesn't work, because csync2 tries to look at files in the directory, gets an IO error, and bails out?

I'm using:
  csync2 2.0rc1 - cluster synchronization tool, 2nd generation

And the sync script looks like

----
# check the local db
$CSYNC2 -cr / $group_arg || exit 1

# if nothing's dirty, we're done
if ! $CSYNC2 -M $group_arg >/dev/null; then
    exit 0
fi

# log what has changed
$CSYNC2 -T $group_arg >> $LOG

# actually perform the sync
$CSYNC2 -x $verbose_arg $group_arg || exit 1
----

Dustin


More information about the Csync2 mailing list