• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue dovecot Error "Timeout waiting for handshake response"

enduser

Basic Pleskian
Server operating system version
AlmaLinux 9.5
Plesk version and microupdate number
18.0.68 Update #2
Hi all,

We have been running our Plesk server for a long time without issues, hosting many users. However, sometimes when there are numerous IMAP connections, including from webmail, the performance slows down significantly and ultimately results in an "internal server error." Below are the errors encountered when this issue arises.

Code:
Apr 24 10:52:13 server-a dovecot[65476]: imap(87285): Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:13 server-a dovecot[65476]: imap(87284): Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:13 server-a dovecot[65476]: imap(87287): Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:14 server-a dovecot[65476]: imap-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:17 server-a dovecot[65476]: pop3: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:17 server-a dovecot[65476]: imap: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:18 server-a dovecot[65476]: pop3-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:19 server-a dovecot[65476]: imap-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:22 server-a dovecot[65476]: pop3: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:22 server-a dovecot[65476]: imap: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:23 server-a dovecot[65476]: pop3-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:24 server-a dovecot[65476]: imap-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:27 server-a dovecot[65476]: pop3: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:27 server-a dovecot[65476]: imap: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:28 server-a dovecot[65476]: pop3-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:29 server-a dovecot[65476]: imap-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:32 server-a dovecot[65476]: pop3: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:32 server-a dovecot[65476]: imap: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:33 server-a dovecot[65476]: pop3-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:34 server-a dovecot[65476]: imap-login: Error: conn unix:stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:35 server-a postfix-local[87520]: 6F414D2ABD0: process '/usr/libexec/dovecot/dovecot-lda -d "$DELIVERED_TO" -a "${ORIGINAL_RECIPIENT:-$DELIVERED_TO}"' stderr : lda([email protected]): Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:36 server-a postfix-local[87536]: BDA59D2A9B9: process '/usr/libexec/dovecot/dovecot-lda -d "$DELIVERED_TO" -a "${ORIGINAL_RECIPIENT:-$DELIVERED_TO}"' stderr : lda([email protected]): Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:38 server-a dovecot[65476]: pop3: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response
Apr 24 10:52:38 server-a dovecot[65476]: imap: Error: conn unix:/var/run/dovecot/stats-writer (pid=65473,uid=0): Timeout waiting for handshake response

After we restart the server, it will be fine for short time, but soon it will repeat the problem again.

Any clues and solutions? Many thanks
 
Thank you Sebahat.hadzhi.

I have checked all the /var/qmail/mailnames/*/*/Maildir/dovecot.index.cache files, and the largest one is 63 MB. Based on this, I suspect that the default_vsz_limit doesn't help. Am I correct?

For "journalctl -xu dovecot", the output are all about users' login records, the most valued records are in my first post.

For "systemctl status dovecot", attached
 

Attachments

  • systemctl status dovecot.zip
    3.4 KB · Views: 1
Back
Top