Cyrus replication problems

2007-09-11 Thread Sergey N. Romanov
Hello all,

I have 2 servers and try to make replication between them.

I have FreeBSD 6.2 and Cyrus IMAPd 2.3.9 compiled from sources.

Configuration of master server.

imapd.conf :
...
sync_machineid: 1
sync_host: xx.xx.xx.xx
sync_authname: x
sync_password: x
sync_log: 1

cyrus.conf:

START {
  ...
  syncclientcmd=/usr/local/cyrus/bin/sync_client -r
}

UUIDs for messages are enabled.

Configuration of replica server.

cyrus.conf:

SERVICES {
  ...
  syncservercmd=/usr/local/cyrus/bin/sync_server listen=csync
}

Replication work, but I have some problems:

1. I can not start master server if replica server is not started. I
have messages like
18:12:50 [b3] sync_client[54464]: connect(xx.xx.xx.xx) failed: Operation
timed out
in master server log file.

2. If I restarted replica server, then I have problems with replication.
Right after replica stopped I have
18:34:05 [b3] sync_client[76096]: Error in do_sync(): bailing out!
message in master server log file and I can not see sync_client process
on master server.

3. After replica server is started again replication do not start
(because no sync_client process) and I should restart master server.

4. I can see files like log- in sync folder and commands in these
files are not executed. sync_client do not process these files after
replication started.

Replication do not work correctly? Or what is wrong?!


-- 
Best regards,
Sergey N. Romanov

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Compilation problem...

2002-05-04 Thread Sergey N. Romanov

Hi, 

I have problems with compilation :(

gcc -c -I.. -I/usr/local/db3/include  -I/usr/local/include
-I/usr/local/openssl/
include -I/usr/local/cyrus/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2
\
cyrusdb_skiplist.c
cyrusdb_skiplist.c: In function `getsyncfd':
cyrusdb_skiplist.c:190: `O_DSYNC' undeclared (first use in this
function)
cyrusdb_skiplist.c:190: (Each undeclared identifier is reported only
once
cyrusdb_skiplist.c:190: for each function it appears in.)
cyrusdb_skiplist.c: In function `dump':
cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 2)
cyrusdb_skiplist.c:1679: warning: int format, long int arg (arg 3)
cyrusdb_skiplist.c:1682: warning: unsigned int format, u_long arg (arg
2)
cyrusdb_skiplist.c:1688: warning: unsigned int format, u_long arg (arg
2)
gmake[1]: *** [cyrusdb_skiplist.o] Error 1
gmake[1]: Leaving directory `/usr/tmp/install/cyrus-imapd-2.1.4/lib'
gmake: *** [all] Error 1


In this line [190] we see ... O_RDWR | O_DSYNC ...

O_DSYNC... That is it? I have not found description on this flag in the
Berkeley DB documentation... How to correct an error?



Best Regards,
Sergey N. Romanov