[Csync2] ssl problems between debian squeeze and wheeze
Art -kwaak- van Breemen
ard+csync2 at telegraafnet.nl
Tue Jan 22 14:17:14 CET 2013
Hi,
On Tue, Jan 22, 2013 at 02:08:20PM +0100, Art -kwaak- van Breemen wrote:
> This is part of a csync2 -TT <old> <new>
To be clear that the new ssl is killing the old one:
> run on the old system:
>
> > read(7, "-----BEGIN CERTIFICATE-----\nMIIC"..., 8192) = 757
> > read(7, "", 4096) = 0
> > close(7) = 0
> > munmap(0x7fa2412dd000, 4096) = 0
> > open("/etc/csync2_ssl_key.pem", O_RDONLY) = 7
> > fstat(7, {st_mode=S_IFREG|0644, st_size=891, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa2412dd000
> > read(7, "-----BEGIN RSA PRIVATE KEY-----\n"..., 8192) = 891
> > read(7, "", 4096) = 0
> > close(7) = 0
> > munmap(0x7fa2412dd000, 4096) = 0
> > open("/etc/csync2_ssl_cert.pem", O_RDONLY) = 7
> > fstat(7, {st_mode=S_IFREG|0644, st_size=757, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa2412dd000
> > read(7, "-----BEGIN CERTIFICATE-----\nMIIC"..., 8192) = 757
> > read(7, "", 4096) = 0
> > close(7) = 0
> > munmap(0x7fa2412dd000, 4096) = 0
> > getrusage(RUSAGE_SELF, {ru_utime={0, 10000}, ru_stime={0, 0}, ...}) = 0
> > times({tms_utime=1, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4336147999
> > getrusage(RUSAGE_SELF, {ru_utime={0, 10000}, ru_stime={0, 0}, ...}) = 0
> > times({tms_utime=1, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4336147999
> > sendto(5, "\26\3\1\0P\1\0\0L\3\1P\376\212\252\234\10x'+\3541\370y\321\343\344\273\32\232\335\263"..., 85, 0, NULL, 0) = 85
> > recvfrom(5, "\26\3\1\0J", 5, 0, NULL, NULL) = 5
> > recvfrom(5, "\2\0\0F\3\1P\376\212\252D)\30\30P\256M\365\213f4\227U\263*\375I[\35\4\220l"..., 74, 0, NULL, NULL) = 74
> > recvfrom(5, "\26\3\1\2\17", 5, 0, NULL, NULL) = 5
> > recvfrom(5, "\v\0\2\v\0\2\10\0\2\0050\202\2\0010\202\1j\2\t\0\345\207\331\5\352\314\377R0\r\6"..., 527, 0, NULL, NULL) = 527
> > recvfrom(5, "\26\3\1\0\233", 5, 0, NULL, NULL) = 5
> > recvfrom(5, "\r\0\0\227\2\1\2\0\222\0G0E1\v0\t\6\3U\4\6\23\2AU1\0230\21\6\3"..., 155, 0, NULL, NULL) = 155
> > recvfrom(5, "\26\3\1\0\4", 5, 0, NULL, NULL) = 5
> > recvfrom(5, "\16\0\0\0", 4, 0, NULL, NULL) = 4
> > sendto(5, "\26\3\1\0\7\v\0\0\3\0\0\0", 12, 0, NULL, 0) = 12
When the new one receives this ^^^^ it disconnects...
> > getrusage(RUSAGE_SELF, {ru_utime={0, 10000}, ru_stime={0, 0}, ...}) = 0
> > times({tms_utime=1, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4336147999
> > getrusage(RUSAGE_SELF, {ru_utime={0, 10000}, ru_stime={0, 0}, ...}) = 0
> > times({tms_utime=1, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4336147999
> > sendto(5, "\26\3\1\0\206\20\0\0\202\0\200M\n\212\240\357\351mQ\202x\343\235:E<\24cp\374\3110"..., 139, 0, NULL, 0) = 139
> > sendto(5, "\24\3\1\0\1\1", 6, 0, NULL, 0) = 6
>
> This is the dump on the new, run with csync2 -ii:
> > [pid 7142] read(5, "-----BEGIN RSA PRIVATE KEY-----\n"..., 4096) = 891
> > [pid 7142] read(5, "", 4096) = 0
> > [pid 7142] close(5) = 0
> > [pid 7142] munmap(0x7fd40de60000, 4096) = 0
> > [pid 7142] open("/etc/csync2_ssl_cert.pem", O_RDONLY) = 5
> > [pid 7142] fstat(5, {st_mode=S_IFREG|0644, st_size=757, ...}) = 0
> > [pid 7142] fstat(5, {st_mode=S_IFREG|0644, st_size=757, ...}) = 0
> > [pid 7142] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd40de60000
> > [pid 7142] lseek(5, 0, SEEK_CUR) = 0
> > [pid 7142] read(5, "-----BEGIN CERTIFICATE-----\nMIIC"..., 4096) = 757
> > [pid 7142] read(5, "", 4096) = 0
> > [pid 7142] close(5) = 0
> > [pid 7142] munmap(0x7fd40de60000, 4096) = 0
> > [pid 7142] recvfrom(0, "\26\3\1\0P", 5, 0, NULL, NULL) = 5
> > [pid 7142] recvfrom(0, "\1\0\0L\3\1P\376\212\252\234\10x'+\3541\370y\321\343\344\273\32\232\335\263\177\r\330\371F"..., 80, 0, NULL, NULL) = 80
> > [pid 7142] getrusage(RUSAGE_SELF, {ru_utime={0, 0}, ru_stime={0, 0}, ...}) = 0
> > [pid 7142] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4329903491
> > [pid 7142] getrusage(RUSAGE_SELF, {ru_utime={0, 0}, ru_stime={0, 0}, ...}) = 0
> > [pid 7142] times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 4329903491
> > [pid 7142] brk(0x1da6000) = 0x1da6000
> > [pid 7142] brk(0x1d9e000) = 0x1d9e000
> > [pid 7142] writev(1, [{"\26\3\1\0J\2\0\0F\3\1P\376\212\252D)\30\30P\256M\365\213f4\227U\263*\375I"..., 79}, {"\26\3\1\2\17\v\0\2\v\0\2\10\0\2\0050\202\2\0010\202\1j\2\t\0\345\207\331\5\352\314"..., 532}, {"\26\3\1\0\233\r\0\0\227\2\1\2\0\222\0G0E1\v0\t\6\3U\4\6\23\2AU1"..., 160}, {"\26\3\1\0\4\16\0\0\0", 9}], 4) = 780
> > [pid 7142] recvfrom(0, "\26\3\1\0\7", 5, 0, NULL, NULL) = 5
> > [pid 7142] recvfrom(0, "\v\0\0\3\0\0\0", 7, 0, NULL, NULL) = 7
The new one receives this ^^^^ and disconnects..
> > [pid 7142] write(2, "<7142> ", 7) = 7
> > [pid 7142] write(2, "Establishing SSL connection fail"..., 36) = 36
> > [pid 7142] exit_group(1) = ?
> > Process 7142 detached
> Ard
The old one eventually dies:
sendto(5, "\26\3\1\0`[j\201\322`\316\272\261-1\265\330\223!+\313\343\327\241F\313\263~\266S\221K"..., 101, 0, NULL, 0) = -1 ECONNRESET (Connection reset by peer)
More information about the Csync2
mailing list