Orphaned processes after doveadm log reopen
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?
-- Tom
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
On 8.7.2019 14.54, Tom Sommer via dovecot wrote:
On 2019-07-08 13:36, Tom Sommer via dovecot wrote:
I rotate logs every night on my Director, running "doveadm log reopen"
It happens on "/etc/init.d/dovecot restart", not "doveadm log reopen"
- sorry
So it happens when you run killproc on dovecot
Tom
Do you happen to have shutdown_clients=no ?
Aki
On 2019-07-09 07:37, Aki Tuomi wrote:
On 8.7.2019 14.54, Tom Sommer via dovecot wrote:
On 2019-07-08 13:36, Tom Sommer via dovecot wrote:
I rotate logs every night on my Director, running "doveadm log reopen"
It happens on "/etc/init.d/dovecot restart", not "doveadm log reopen"
- sorry
So it happens when you run killproc on dovecot
Do you happen to have shutdown_clients=no ?
Nope.
shutdown_clients = yes
participants (2)
-
Aki Tuomi
-
Tom Sommer