Edward Carraro
2010-Nov-01 15:53 UTC
[Dovecot] Wrong protocol in socket (director-doveadm vs director) ?
I just noticed this error in my logs: director: Error: doveadm not compatible with this server (mixed old and new binaries?) director: Error: director(10.161.192.28:541/right): Wrong protocol in socket (director-doveadm vs director) The first error I removed by changing director_doveadm_port = 541 to director_doveadm_port = 542 Not really sure why that fixed it. The second error I don't know how to clear. I found this thread, http://dovecot.org/pipermail/dovecot/2010-July/051022.html but it didn't work for me. If I create a new service for dovecot-doveadm service director-doveadm { inet_listener { port = 542 } } Then I get a new error saying: service(director-doveadm): executable is empty here is my original 10-director.conf file (i'm using dovecot 2.0.6) director_doveadm_port = 541 service director { unix_listener login/director { mode = 0666 } fifo_listener login/proxy-notify { mode = 0666 } unix_listener director-userdb { mode = 0600 } inet_listener { port = 541 } } service imap-login { executable = imap-login director } service pop3-login { executable = pop3-login director } service managesieve-login { executable = managesieve-login director } protocol lmtp { auth_socket_path = /usr/local/var/run/dovecot/director-userdb passdb { driver = static args = proxy=y nopassword=y port=24 } }
Timo Sirainen
2010-Nov-02 13:41 UTC
[Dovecot] Wrong protocol in socket (director-doveadm vs director) ?
On Mon, 2010-11-01 at 11:53 -0400, Edward Carraro wrote:> service(director-doveadm): executable is emptyservice director-doveadm { executable = doveadm-server }> director_doveadm_port = 541 > > service director { > unix_listener login/director { > mode = 0666 > } > fifo_listener login/proxy-notify { > mode = 0666 > } > unix_listener director-userdb { > mode = 0600 > } > inet_listener { > port = 541 > } > }Do you have only a single director server? I think it gets confused because you have only a single inet_listener. I guess it should be fixed anyway, but you could fix it by having two inet_listeners, the first one with non-doveadm port.
Timo Sirainen
2010-Nov-02 13:44 UTC
[Dovecot] Wrong protocol in socket (director-doveadm vs director) ?
On Tue, 2010-11-02 at 13:41 +0000, Timo Sirainen wrote:> Do you have only a single director server? I think it gets confused > because you have only a single inet_listener. I guess it should be fixed > anyway,http://hg.dovecot.org/dovecot-2.0/rev/f55b91aaddfe should help
Timo Sirainen
2010-Nov-02 16:34 UTC
[Dovecot] Wrong protocol in socket (director-doveadm vs director) ?
On Tue, 2010-11-02 at 12:16 -0400, Edward Carraro wrote:> On Tue, Nov 2, 2010 at 11:46 AM, Timo Sirainen <tss at iki.fi> wrote: > > > > > So after that error is logged everything else works fine anyway? > > > > yea, it only appears once i restart one of the dovecot servers and > telnet... everything seems to be working. > > just wondering, what do the following mean in the logs? > > :541/right > :541/left > :541/in > :541/outThe directors are connected to each others in ring. Like you have connections: A -> B B -> C C -> A So if B logs about "right", it means the B -> C connection. If it logs about "left", it means the "A -> B" connection. The directors always connect to their right side, so "out" should be always the same as "right" and "in" should be "left". But until handshaking is done, it simply logs in/out for incoming/outgoing connections. All of this could probably be done in some other clearer way :)