[Csync2] Csync2 git SSL/Filesync problem
InterNetX - Carsten Schoene
carsten.schoene at internetx.de
Mon Feb 27 20:12:42 CET 2012
Hello,
i think i got my problem fixed, which is/was related to this change:
http://git.linbit.com/gitweb.cgi?p=csync2.git;a=commitdiff;h=e412200979d14c3fcbb233434905f0536943a306
I just removed the check for csync_debug_level.
Always logging to syslog in inetd mode makes the most sense to me.
--- csync2.c.orig 2012-02-27 19:54:46.549209332 +0100
+++ csync2.c 2012-02-27 20:02:37.003405617 +0100
@@ -537,7 +537,7 @@
/* Some inetd connect stderr to stdout. The debug level messages on
* stderr would confuse the csync2 protocol. Log to syslog instead. */
- if ( mode == MODE_INETD && csync_debug_level && !csync_syslog ) {
+ if ( mode == MODE_INETD && !csync_syslog ) {
csync_syslog = 1;
openlog("csync2", LOG_ODELAY, LOG_LOCAL0);
}
A workaround was to use -l as aditional option in xinetd configuration.
InterNetX - Carsten Schoene <carsten.schoene at internetx.de> hat am 16. Februar
2012 um 11:12 geschrieben:
> Hello List,
>
> i've a problem with the current csync2 git version.
> I build a rpm package of it for centos 6 with gnutls & sqlite3 enabled.
>
> When i try to sync a changed filek, i get:
> Opening shared library libsqlite3.so
> Reading symbols from shared library libsqlite3.so
> Connecting to host host2.example.tld (SSL) ...
> Updating /etc/ha.d/haresources on host2.example.tld ...
> While syncing file /etc/ha.d/haresources:
> ERROR from peer(/etc/ha.d/haresources): host2.example.tld Connection closed.
> While syncing file /etc/ha.d/haresources:
> ERROR from peer(/etc/ha.d/haresources): host2.example.tld Connection closed.
> ERROR: Auto-resolving failed. Giving up.
> File stays in dirty state. Try again later...
> ERROR from peer(<no file>): host2.example.tld Connection closed.
> Finished with 3 errors.
>
> i posted my config & detailed output online
>
> # csync2.cfg
> http://pastecode.org/index.php/view/86461132
>
> # output of csync2 -xvvv
> http://pastecode.org/index.php/view/97035236
>
> Any help would be great, i can provide more detailed information if needed.
>
> Thanks,
> Carsten
>
>
> --
> Carsten Schöne
> Leiter Rechenzentrum
>
> InterNetX GmbH
> Maximilianstr. 6
> 93047 Regensburg
>
> Tel. +49 941 59559-480
> Fax +49 941 59579-051
>
> www.internetx.com
> www.facebook.com/InterNetX
> www.twitter.com/InterNetX
>
> Geschäftsführer/CEO: Thomas Mörz
> Amtsgericht Regensburg, HRB 7142
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
Carsten Schöne
Leiter Rechenzentrum
InterNetX GmbH
Maximilianstr. 6
93047 Regensburg
Tel. +49 941 59559-480
Fax +49 941 59579-051
www.internetx.com
www.facebook.com/InterNetX
www.twitter.com/InterNetX
Geschäftsführer/CEO: Thomas Mörz
Amtsgericht Regensburg, HRB 7142
More information about the Csync2
mailing list