[Csync2] CSync2 fails to sync files that are also modified on slave, even when auto=left is set in configuration.

Samba saasira at gmail.com
Wed Apr 25 10:15:29 CEST 2012


It is the same issue as reported in this mail thread:

Csync2 git SSL/Filesync
problem<http://lists.linbit.com/pipermail/csync2/2012-February/000852.html>


We went by making csync2 log to syslog (i.e. passing -l option to the
csync2 xinetd daemon)

It looks like the recent changes to csync2 to log it to syslog have
resulted into mandating syslog when using inetd mode. It would better not
to mandate so the users can choose what they want.

Further, the documentation should also be updated with this change, i.e
enable syslog (i.e. pass -l option to csync daemon) when running as inetd
daemon so that others will not encounter this issue.

Thanks and Regards,
Samba

---------------------------------------------------------------------------------------------------------------------------
On Mon, Apr 23, 2012 at 6:45 PM, Samba <saasira at gmail.com> wrote:

> Hi,
>
> CSync2 (latest 2.0 branch from git) refusing to sync files if the file is
> also modified on the slave; I don't remember the previous release of csync2
> (csync2-1.34) having any such issue. It looks like there is some issue
> auto-conflict-resolution.
>
> Here is my config:
>
> group test
>> {
>>         host master;
>>         host (slave);
>>         key /etc/csync2/csync2.key;
>>         include /opt/test;
>>         backup-directory /var/backups/csync2;
>>         backup-generations 3;
>>         auto left;
>> }
>
>
>
>
> Here are the errors:
>
> check: /opt/test/cron 10, /opt/test/ 10, 10.
>
>
> Dirty item /opt/test/cron master 1
>
> Local> HELLO master\n
>
> Peer> OK (cmd_finished).\n
>
> Match (+): /opt/test on /opt/test/cron
>
>
> Updating /opt/test/cron on slave ...
>
>
> Local> FLUSH
> t_9GDLvX5uThP6ufPE7coshgjoNEur3b2BRBtpI6sHR7ft9VI7u285CPjnt3je.Xnekfekdnfqffkoiyeorkt23oiqefmwdffgerm2m9rerty4tkmefwqkjfwejfkqemrgejfqeefkrjh3r4jt5mt5k4ti4t45jt45y54t3h134ktjh1mernk34ihdfsf87F10et5knrefbskdjfknsdsdlsdvkjoqwefemfwndcKSDWEDFQQTFWEGEWMKEnwle
> /opt/test/cron\n
>
> Peer> OK (cmd_finished).\n
>
> Local> PATCH
> t_9GDLvX5uThP6ufPE7coshgjoNEur3b2BRBtpI6sHR7ft9VI7u285CPjnt3je.Xnekfekdnfqffkoiyeorkt23oiqefmwdffgerm2m9rerty4tkmefwqkjfwejfkqemrgejfqeefkrjh3r4jt5mt5k4ti4t45jt45y54t3h134ktjh1mernk34ihdfsf87F10et5knrefbskdjfknsdsdlsdvkjoqwefemfwndcKSDWEDFQQTFWEGEWMKEnwle
> /opt/test/cron\n
>
> ASSERT: gnutls_record.c:507
>
>
>
> Peer>
>
> While syncing file /opt/test/cron:
>
>
> ERROR from peer(/opt/test/cron): slave Connection closed.
>
>
> Match (+): /opt/test on /opt/test/cron
>
>
> Auto-resolving conflict: Won 'master/slave' test.
>
>
> Updating /opt/test/cron on slave ...
>
>
> Local> FLUSH
> t_9GDLvX5uThP6ufPE7coshgjoNEur3b2BRBtpI6sHR7ft9VI7u285CPjnt3je.Xnekfekdnfqffkoiyeorkt23oiqefmwdffgerm2m9rerty4tkmefwqkjfwejfkqemrgejfqeefkrjh3r4jt5mt5k4ti4t45jt45y54t3h134ktjh1mernk34ihdfsf87F10et5knrefbskdjfknsdsdlsdvkjoqwefemfwndcKSDWEDFQQTFWEGEWMKEnwle
> /opt/test/cron\n
>
> ASSERT: gnutls_record.c:360
>
>
> ASSERT: gnutls_record.c:879
>
>
> Peer>
>
> While syncing file /opt/test/cron:
>
>
> ERROR from peer(/opt/test/cron): slave Connection closed.
>
>
> ERROR: Auto-resolving failed. Giving up.
>
>
> File stays in dirty state. Try again later...
>
>
> Local> BYE\n
>
> ASSERT: gnutls_record.c:360
>
>
> ASSERT: gnutls_record.c:879
>
>
> Peer>
>
> ERROR from peer(<no file>): slave Connection closed.
>
>
> ASSERT: gnutls_record.c:879
>
>
> ASSERT: gnutls_record.c:254
>
>
> SQL: SELECT command, logfile FROM action GROUP BY command, logfile
>
>
> SQL Query finished.
>
>
> SQL: COMMIT
>
>
> Finished with 3 errors.
>
>
> Any help is really appreciated...
>
> Thanks and Regards,
> Samba
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20120425/cf57ec73/attachment.htm>


More information about the Csync2 mailing list