Orphaned processes after doveadm log reopen

Tom Sommer mail at tomsommer.dk
Mon Jul 8 14:44:04 EEST 2019


On 2019-07-08 13:36, Tom Sommer via dovecot wrote:
> I rotate logs every night on my Director, running "doveadm log reopen"
> 
> I've noticed a problem with processes not closing correctly, they can
> be open for days and cause corrupt index files because they are
> connected to different backends (so it writes to the wrong server when
> the process disconnects)
> 
> 23518 ?        S    140:53 dovecot/anvil [4 connections]
> 23519 ?        S    444:45 dovecot/log
> 23520 ?        S    497:19 dovecot/imap-login [8 pre-login + 27 
> proxies]
> 23531 ?        S      0:27 dovecot/config
> 26201 ?        S    551:53 dovecot/imap-login [7 pre-login + 33 
> proxies]
> 22126 ?        S    960:15 dovecot/pop3-login [28 pre-login + 396 
> proxies]
> 59515 ?        S    218:32 dovecot/pop3-login [44 pre-login + 468 
> proxies]
> 
> Is there any way to force these orphaned processes to terminate after
> a certain time?

I ran "strace -f -p" on 59515 which caused the process to wake up and 
terminate? Very strange.

I can send the dump from strace if you want, but since it contains 
addresses I would prefer it to be done off-list


More information about the dovecot mailing list