From prashant at bluebarracuda.com  Thu Apr 12 16:56:18 2007
From: prashant at bluebarracuda.com (prashant)
Date: Thu Apr 12 16:57:09 2007
Subject: [Csync2] No Logs, No Sync
Message-ID: <461E4892.9050301@bluebarracuda.com>

Hi All,
I am configuring csync2 version1.33. But its not synchronizing.
Even csync -xv is giving me errors like

ERROR from peer drbd1: File is also marked dirty here!

Questions:
1. How to get logs as i do not find logs
2. How do I get the files cleaned (Not dirty)
3. How to get csync2 synchronising automatically.

My csync2.cfg

# Csync2 Example Configuration File
# ---------------------------------
#
# Please read the documentation:
# http://oss.linbit.com/csync2/paper.pdf

 group mygroup
 {
        host node1 node2;

        key /etc/cy.key;

        include /replicate;

        action
        {
                logfile "/var/log/csync2_action.log";
                do-local;
        }

        backup-directory /var/backups/csync2;
        backup-generations 3;

        auto none;
 }

 prefix homedir
 {
        on host[12]: /export/users;
        on *:        /home;
 }


NOTE: Both nodes can communicate with each other and starts on ports 30865

Please tell me what is wrong with this config.

Many thanks
Prashant

From csync2 at office-vienna.at  Fri Apr 20 20:18:30 2007
From: csync2 at office-vienna.at (csync2)
Date: Fri Apr 20 20:19:02 2007
Subject: [Csync2] problem w/ start
Message-ID: <fc.0064b7b9003dfafd0064b7b9003dfafd.3dfb46@office-vienna.at>

hi, when starting a sync, i get SSL error..

has anyone an idea what i may have missed?

I generated the server key and the self-signed keys.
openssl genrsa -out /etc/csync2_ssl_key.pem 1024
openssl req -new -key /etc/csync2_ssl_key.pem -out /etc/csync2_ssl_cert.csr
openssl x509 -req -days 600 -in /etc/csync2_ssl_cert.csr -signkey
/etc/csync2_ssl_key.pem -out /etc/csync2_ssl_cert.pem


debian packages on 2.6.18 / 2.6.20
csync2 1.33-2

config is:
group webservers {
        host web01;
        host web02;
key /etc/csync2-serverfarm.key;
include /var/www;
}
strace:
client:
[pid  8835] write(2, "<8835> New connection from 192.1"..., 47<8835> New
connection from 192.168.22.1:42972.
) = 47
[pid  8835] dup2(4, 0)                  = 0
[pid  8835] dup2(4, 1)                  = 1
[pid  8835] close(4)                    = 0
[pid  8835] setsockopt(1, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid  8835] read(0, "SSL\n", 512)       = 4
[pid  8835] write(1, "OK (activating_ssl).\n", 21) = 21
[pid  8835] access("/dev/random", R_OK) = 0
[pid  8835] access("/dev/urandom", R_OK) = 0
[pid  8835] open("/dev/urandom", O_RDONLY) = 4
[pid  8835] select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
[pid  8835] read(4,
"M@%\211\361\346\2069us\335Uby\370\332#\v\253\0o\304x\324"..., 120) = 120
[pid  8835] select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
[pid  8835] read(4,
"_3\363d\203\25b\362\245*\264\32\22\350G\376\323z4\311\256"..., 120) = 120
[pid  8835] select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
[pid  8835] read(4,
"6r3\367@D,\325\370}\35\332mH\364U\265\277\257\25\34\267"..., 120) = 120
[pid  8835] select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
[pid  8835] read(4,
"D\25z\r\3435Zn\330\364N1Vxy\230fZU\336\225kw\327\316\252"..., 120) = 120
[pid  8835] select(5, [4], NULL, NULL, {3, 0}) = 1 (in [4], left {3, 0})
[pid  8835] read(4,
"k\345\6\234C\222o\210Pt\255\375\356\262\r\2469Xa\230}\352"..., 120) = 120
[pid  8835] gettimeofday({1177091272, 357090}, NULL) = 0
[pid  8835] getrusage(RUSAGE_SELF, {ru_utime={0, 4000}, ru_stime={0, 0},
...}) = 0
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) =
1726072714
[pid  8835] open("/etc/csync2_ssl_cert.pem", O_RDONLY) = 5
[pid  8835] fstat64(5, {st_mode=S_IFREG|0644, st_size=704, ...}) = 0
[pid  8835] mmap2(NULL, 704, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f59000
[pid  8835] close(5)                    = 0
[pid  8835] munmap(0xb7f59000, 704)     = 0
[pid  8835] open("/etc/csync2_ssl_key.pem", O_RDONLY) = 5
[pid  8835] fstat64(5, {st_mode=S_IFREG|0644, st_size=887, ...}) = 0
[pid  8835] mmap2(NULL, 887, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f59000
[pid  8835] close(5)                    = 0
[pid  8835] munmap(0xb7f59000, 887)     = 0
[pid  8835] open("/etc/csync2_ssl_cert.pem", O_RDONLY) = 5
[pid  8835] fstat64(5, {st_mode=S_IFREG|0644, st_size=704, ...}) = 0
[pid  8835] mmap2(NULL, 704, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f59000
[pid  8835] close(5)                    = 0
[pid  8835] munmap(0xb7f59000, 704)     = 0
[pid  8835] gettimeofday({1177091272, 361773}, NULL) = 0
[pid  8835] getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 0},
...}) = 0
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) =
1726072715
[pid  8835] gettimeofday({1177091272, 361999}, NULL) = 0
[pid  8835] getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 0},
...}) = 0
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) =
1726072715
[pid  8835] recv(0, "\26\3\1\0D", 5, 0) = 5
[pid  8835] recv(0,
"\1\0\0@\3\1F(\374\315\374\10\241\367\21)1\212.\0323\361"..., 68, 0) = 68
[pid  8835] brk(0x80a3000)              = 0x80a3000
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] gettimeofday({1177091272, 362676}, NULL) = 0
[pid  8835] getrusage(RUSAGE_SELF, {ru_utime={0, 8000}, ru_stime={0, 0},
...}) = 0
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) =
1726072715
[pid  8835] time(NULL)                  = 1177091272
[pid  8835] send(1,
"\26\3\1\0J\2\0\0F\3\1F(\374\310d\345\3069t~\373\273\231"..., 79, 0) = 79
[pid  8835] send(1,
"\26\3\1\1\351\v\0\1\345\0\1\342\0\1\3370\202\1\3330\202"..., 494, 0) = 494
[pid  8835] send(1,
"\26\3\1\0?\r\0\0;\2\1\2\0006\0004021\v0\t\6\3U\4\6\23\2"..., 68, 0) = 68
[pid  8835] send(1, "\26\3\1\0\4\16\0\0\0", 9, 0) = 9
[pid  8835] recv(0, "\26\3\1\0\7", 5, 0) = 5
[pid  8835] recv(0, "\v\0\0\3\0\0\0", 7, 0) = 7
[pid  8835] write(2, "<8835> ", 7<8835> )      = 7
[pid  8835] write(2, "Establishing SSL connection fail"..., 36Establishing
SSL connection failed.
) = 36
[pid  8835] munmap(0xb7f5a000, 4096)    = 0
[pid  8835] exit_group(1)               = ?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linbit.com/pipermail/csync2/attachments/20070420/e648d86b/attachment.html
From duke at sigsegv.at  Sat Apr 21 21:01:43 2007
From: duke at sigsegv.at (Thomas Hager)
Date: Sat Apr 21 21:02:14 2007
Subject: [Csync2] problem w/ start
In-Reply-To: <fc.0064b7b9003dfafd0064b7b9003dfafd.3dfb46@office-vienna.at>
References: <fc.0064b7b9003dfafd0064b7b9003dfafd.3dfb46@office-vienna.at>
Message-ID: <1177182103.3019.0.camel@zhadum.wg.at>

On Fri, 2007-04-20 at 20:18 +0200, csync2 wrote:
> hi, when starting a sync, i get SSL error..
try generating the certificate with the default values
(i.e. openssl req -batch ...)

hth,
tom.

-- 
Thomas "Duke" Hager                       {duke,hager}@sigsegv.at
GPG: 1024D/D27F858C            http://www.sigsegv.at/gpg/duke.gpg
=================================================================
"Never Underestimate the Power of Stupid People in Large Groups."


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.linbit.com/pipermail/csync2/attachments/20070421/5060d998/attachment.pgp
