[Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,

we have some problems with users who report connectionproblems to dovecot 
sometimes. According to the logs there are dovecot reloads at this times.

Seems that a reload also causes dovecot to shut all imapconnections down:

Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received - 
reloading configuration
Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down. 
bytes=251/675


I tried to reload by initscript or sending -HUP manually to pid, dovecot is 
shutting down imapconnections and i think this is the reason for users to 
report this problems with some clients.
This seems to be new with versions 2.x, i have some old 1.2.x dovecots 
running and cant find Server shutting down in their logs after reload.


I have still potential to reduce reloads, but cant avoid them completely. Is 
there a workaround?


Thanks,
Hajo 



Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Daniel Reinhardt
Hajo,

From the looks and sounds of things your Dovecot installation and
configuration is crashing without creating a dump.  What happens prior to
the aforementioned log entries?

Thanks,
Dan


On Tue, Jul 16, 2013 at 11:44 AM, Hajo Locke hajo.lo...@gmx.de wrote:

 Hello,

 we have some problems with users who report connectionproblems to dovecot
 sometimes. According to the logs there are dovecot reloads at this times.
 Seems that a reload also causes dovecot to shut all imapconnections down:

 Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received -
 reloading configuration
 Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down.
 bytes=251/675

 I tried to reload by initscript or sending -HUP manually to pid, dovecot
 is shutting down imapconnections and i think this is the reason for users
 to report this problems with some clients.
 This seems to be new with versions 2.x, i have some old 1.2.x dovecots
 running and cant find Server shutting down in their logs after reload.

 I have still potential to reduce reloads, but cant avoid them completely.
 Is there a workaround?

 Thanks,
 Hajo




-- 
Daniel Reinhardt
crypto...@cryptodan.net
http://www.cryptodan.net
301-875-7018(c)
410-455-0488(h)


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Reindl Harald
where do you suspect a crash in Warning: SIGHUP received?
https://en.wikipedia.org/wiki/Unix_signal

SIGHUP is used for a lot of software to indicate reload
the configuration without completly restart a service

Am 16.07.2013 13:49, schrieb Daniel Reinhardt:
 From the looks and sounds of things your Dovecot installation and
 configuration is crashing without creating a dump.  What happens prior to
 the aforementioned log entries?
 
 On Tue, Jul 16, 2013 at 11:44 AM, Hajo Locke hajo.lo...@gmx.de wrote:
 
 Hello,

 we have some problems with users who report connectionproblems to dovecot
 sometimes. According to the logs there are dovecot reloads at this times.
 Seems that a reload also causes dovecot to shut all imapconnections down:

 Jul 16 13:31:40 myhostname dovecot: master: Warning: SIGHUP received -
 reloading configuration
 Jul 16 13:31:40 myhostname dovecot: imap: Server shutting down.
 bytes=251/675

 I tried to reload by initscript or sending -HUP manually to pid, dovecot
 is shutting down imapconnections and i think this is the reason for users
 to report this problems with some clients.
 This seems to be new with versions 2.x, i have some old 1.2.x dovecots
 running and cant find Server shutting down in their logs after reload.

 I have still potential to reduce reloads, but cant avoid them completely.
 Is there a workaround?



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,


From the looks and sounds of things your Dovecot installation and
configuration is crashing without creating a dump.  What happens prior to
the aforementioned log entries?


none unexpected behaviour. I run now with debugoptions. There is no evidence 
of problem.
some regular mailtraffic and some people are imap-ideling...then comes the 
reload and connections are shut down.

2.0.19 ist default of Ubuntu 12.10, but we also use 2.1.7 with same effect.
Older Machines with 1.2 dont show this behaviour.

Thanks,
Hajo 



Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread mourik jan heupink

Hi,


we have some problems with users who report connectionproblems to
dovecot sometimes. According to the logs there are dovecot reloads at
this times.
Seems that a reload also causes dovecot to shut all imapconnections down:

Just a wile guess:
Could it have something to do with the shutdown_clients setting, 
perhaps..?


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Hajo Locke

Hello,

Could it have something to do with the shutdown_clients setting, 
perhaps..?



arrgh, did not see there is a adequate setting. works good
default of shutdown_clients is yes, must be changed between versions?

Thanks,
Hajo


Re: [Dovecot] reload without shutting imap connections down

2013-07-16 Thread Reindl Harald


Am 16.07.2013 15:18, schrieb Hajo Locke:
 Could it have something to do with the shutdown_clients setting, perhaps..?
  
 arrgh, did not see there is a adequate setting. works good
 default of shutdown_clients is yes, must be changed between versions?

yes - depends of what you need and want

keep in mind that without this and in case of IMAP
with long running connections (over days maybe) the
existing connections are still running with the
old configuration and depending on the config changes
this may or may not be a problem



signature.asc
Description: OpenPGP digital signature