Basic two host replication scenario, SSL failure

Ivan Lezhnjov Jr. ivan.lezhnjov.jr at gmail.com
Mon Jul 11 11:50:51 EDT 2011


Below is strace output for cyrus-master during manual sync_client invocation:

/usr/lib/cyrus-imapd/sync_client -v -r


[root at imapsite-master scripts]# netstat -ntuap |grep cyru
tcp        0      0 0.0.0.0:143                 0.0.0.0:*
     LISTEN      29795/cyrus-master
tcp        0      0 0.0.0.0:2005                0.0.0.0:*
     LISTEN      29795/cyrus-master
tcp        0      0 :::143                      :::*
     LISTEN      29795/cyrus-master
tcp        0      0 :::2005                     :::*
     LISTEN      29795/cyrus-master
[root at imapsite-master scripts]# strace -p 29795
Process 29795 attached - interrupt to quit
select(21, [7 11 14 16 17 19 20], NULL, NULL, {5, 201000}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 1 (in [19],
left {7, 245000})
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2aaaada9a390) = 29913
select(21, [7 11 14 16 17 20], NULL, NULL, {7, 0}) = 1 (in [20], left {7, 0})
read(20, "\2\0\0\0\331t\0\0", 8)        = 8
read(20, "\3\0\0\0\331t\0\0", 8)        = 8
read(20, 0x7fff1f11a910, 8)             = -1 EAGAIN (Resource
temporarily unavailable)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {7, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0}) = 0 (Timeout)
select(21, [7 11 14 16 17 19 20], NULL, NULL, {10, 0} <unfinished ...>
Process 29795 detached

I interrupted the output a little while after I'd seen these lines in
the logs of the A switched to replica:

Jul 11 18:45:18 imapsite-master syncserver[29913]: SSL_accept()
incomplete -> wait
Jul 11 18:45:40 imapsite-master syncserver[29813]: SSL_accept() timed
out -> fail
Jul 11 18:45:40 imapsite-master syncserver[29813]: STARTTLS failed:
imapsite-replica [10.10.0.188]

Hope this helps somehow!


More information about the Info-cyrus mailing list