Couldn't create lock .dovecot-sync.lock
Hi,
In a cluster with two servers and replication via dovecot-dsync, this error is logged: server1 dovecot: dsync-server(<user>): Error: Couldn't create lock /var/lib/imap/user/6a/<user>/.dovecot-sync.lock: No such file or directory
This is because "/var/lib/imap/user/6a/<user>/" doesn't exist in server1. In another cluster node, the directory exists and everything seems to work fine.
In my view, this indicates that the first sync is failing. In the first user access Dovecot creates home_dir for him. But the sync is not happening at this time to create the home_dir on the other node.
My confs with doveconf -n: http://www.adminlinux.com.br/newcluster_doveconf.txt
Thanks in advance!
Thiago Henrique
My users are like this "username=domain_name". Could the '=' character be the reason?
Despite my settings always worked: # doveconf auth_username_chars auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@=
All opinions are welcome. Thanks!
Thiago Henrique
Em 16-05-2015 10:06, listas@adminlinux.com.br escreveu:
Hi,
In a cluster with two servers and replication via dovecot-dsync, this error is logged: server1 dovecot: dsync-server(<user>): Error: Couldn't create lock /var/lib/imap/user/6a/<user>/.dovecot-sync.lock: No such file or directory
This is because "/var/lib/imap/user/6a/<user>/" doesn't exist in server1. In another cluster node, the directory exists and everything seems to work fine.
In my view, this indicates that the first sync is failing. In the first user access Dovecot creates home_dir for him. But the sync is not happening at this time to create the home_dir on the other node.
My confs with doveconf -n: http://www.adminlinux.com.br/newcluster_doveconf.txt
Thanks in advance!
Thiago Henrique
Hi,
The point here is: doveadm replicate does not create mail location in both backends.
I have: # cd /var/run/dovecot/ # ls -l replicat* srw-rw-rw- 1 dovemail dovemail 0 May 14 19:44 replication-notify prw-rw-rw- 1 dovemail dovemail 0 May 22 14:28 replication-notify-fifo srw------- 1 dovecot root 0 May 14 19:44 replicator srw-rw-rw- 1 dovemail dovemail 0 May 14 19:44 replicator-doveadm
# ls -ld /var/lib/imap/user/ drwxr-xr-x 251 dovemail mail 4096 May 20 22:01 /var/lib/imap/user/ # ls -ld /var/lib/imap/user/6a drwx------ 14 dovemail dovemail 4096 May 22 00:02 /var/lib/imap/user/6a
These permissions are sufficient. Right? if I run manually: doveadm sync -u <user> tcp:<ip-other-node>:<port> the directory /var/lib/imap/user/6a/<user> is created correctly
Em 20-05-2015 10:10, Listas@Adminlinux escreveu:
dsync-server(<user>): Error: Couldn't create lock /var/lib/imap/user/6a/<user>/.dovecot-sync.lock: No such file or directory
participants (2)
-
Listas@Adminlinux
-
listas@adminlinux.com.br