[Dovecot] Problem with running two dovecot instances on the same server
Alexandr Sabitov
alexandr.sabitov at netregistry.com.au
Mon Jul 30 10:24:48 EEST 2012
On 29/07/12 02:49, Timo Sirainen wrote:
> On 26.7.2012, at 5.27, Alexandr Sabitov wrote:
>> Jul 26 11:51:20 dovecot-test-1 dovecot: director: Error: Empty server list
>> Jul 26 11:51:20 dovecot-test-1 dovecot: director: Fatal: Invalid value for director_mail_servers setting
>> Jul 26 11:51:20 dovecot-test-1 dovecot: master: Error: service(director): command startup failed, throttling for 60 secs
> Director process gets started for the backend installation where it of course isn't configured. My guess: doveadm (from some cronjob?) is attempting to connect to /var/run/dovecot/director-admin instead of /var/run/dovecot-proxy/director-admin.
>
Hi Timo,
Thanks for reply.
That's right: strace shows that director process is a child of
non-proxy dovecot (pid 7089) which is should not be happening. And I
don't have any cronjob running.
Might we need just update dovecot wiki that if someone runs dovecot and
dovecot-proxy then they have to be installed in different folders as
separate binaries otherwise one instance cross over another somehow
magically. :)
7089 epoll_wait(51, {}, 56, 25070) = 0
7089 epoll_ctl(51, EPOLL_CTL_ADD, 38,
{EPOLLIN|EPOLLPRI|EPOLLERR|EPOLLHUP, {u32=15790944, u64=15790944}}) = 0
7089 epoll_wait(51, {{EPOLLIN, {u32=15790944, u64=15790944}}}, 56,
43627051) = 1
7089 clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f56462d19d0) = 7169
7089 epoll_ctl(51, EPOLL_CTL_DEL, 38, {0, {u32=15790944,
u64=15790944}}) = 0
7089 epoll_wait(51, <unfinished ...>
7169 dup2(83, 2) = 2
7169 close(6) = 0
7169 dup2(38, 7) = 7
7169 dup2(10, 3) = 3
7169 dup2(129, 5) = 5
7169 dup2(95, 6) = 6
7169 setrlimit(RLIMIT_DATA, {rlim_cur=262144*1024,
rlim_max=262144*1024}) = 0
7169 setrlimit(RLIMIT_AS, {rlim_cur=262144*1024, rlim_max=262144*1024}) = 0
7169 execve("/usr/local/dovecot/libexec/dovecot/director",
["dovecot/director"], [/* 15 vars */]) = 0
7169 brk(0) = 0xff6000
7169 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
root at dovecot-test-1:/home/asabitov# lsof /var/run/dovecot/director-admin
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dovecot 7089 root 38u unix 0xffff88007e8e1200 0t0 48243
/var/run/dovecot/director-admin
root at dovecot-test-1:/home/asabitov# lsof
/var/run/dovecot-proxy/director-admin
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dovecot 7102 root 39u unix 0xffff88007e9da300 0t0 48469
/var/run/dovecot-proxy/director-admin
director 7178 webmail 8u unix 0xffff88007e9da300 0t0 48469
/var/run/dovecot-proxy/director-admin
#ps auxf
root 7089 0.0 0.0 17332 1092 ? Ss Jul27 0:02
/usr/local/dovecot/sbin/dovecot
webmail 7091 0.0 0.0 12808 1100 ? S Jul27 0:00 \_
dovecot/anvil
root 7092 0.0 0.0 13056 1324 ? S Jul27 0:01 \_
dovecot/log
root 3572 0.0 0.1 14256 2220 ? S Jul29 0:01 \_
dovecot/config
webmail 16207 0.0 0.2 71684 4252 ? S 09:11 0:00 \_
dovecot/imap
root 7102 0.0 0.0 17204 1072 ? Ss Jul27 0:01
/usr/local/dovecot/sbin/dovecot -c
/usr/local/dovecot/etc/dovecot/dovecot-proxy.conf
webmail 7104 0.0 0.0 12808 1084 ? S Jul27 0:00 \_
dovecot-proxy/anvil
root 7105 0.0 0.0 12936 1244 ? S Jul27 0:00 \_
dovecot-proxy/log
webmail 7178 0.0 0.0 12964 1328 ? S Jul27 0:00 \_
dovecot-proxy/director
dovenull 16202 0.0 0.1 23500 2916 ? S 09:11 0:00 \_
dovecot-proxy/imap-login director
root 16203 0.0 0.1 14604 2544 ? S 09:11 0:00 \_
dovecot-proxy/config
webmail 16208 0.0 0.0 12804 1028 ? S 09:11 0:00 \_
dovecot-proxy/ipc
root 7108 0.0 0.3 48240 6412 ? Ss Jul27 0:01 perl
/usr/local/dovecot/bin/poolmon
--
Regards,
Alexandr Sabitov
Systems Administrator
Netregistry
More information about the dovecot
mailing list