• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue Dovecot stop restarts many times every day

MariuszB

Basic Pleskian
Server operating system version
AlmaLinux 8.10 (Cerulean Leopard)
Plesk version and microupdate number
18.0.72 #3
Every day I receive alerts about imap server problem. Dovecot stops work for 2-3 minutes. In logs I have something like this:

imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)

I don't know what is the problem source. Maybe too many connections etc.? Could you tell me how to debug this issue?
 
Hello, @MariuszB . Could you please check the dovecot service status and let us know if you see any additional entries:

Code:
systemctl status dovecot.service

As far as I am aware, the issue could be related to the default_vsz_limit, thus, you might try increasing it according to the instructions from this article.
 
Unfortunately problem comes back. This is what I found in maillog:

Oct 2 08:45:14 h8 dovecot[2122699]: pop3-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
Oct 2 08:45:14 h8 dovecot[2122682]: master: Error: service(pop3-login): command startup failed, throttling for 32.000 secs
Oct 2 08:45:21 h8 dovecot[2122699]: imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
Oct 2 08:45:21 h8 dovecot[2122682]: master: Error: service(imap-login): command startup failed, throttling for 4.000 secs
Oct 2 08:45:35 h8 dovecot[2122699]: imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
Oct 2 08:45:35 h8 dovecot[2122682]: master: Error: service(imap-login): command startup failed, throttling for 8.000 secs
Oct 2 08:45:53 h8 dovecot[2122699]: imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
Oct 2 08:45:53 h8 dovecot[2122682]: master: Error: service(imap-login): command startup failed, throttling for 16.000 secs
Oct 2 08:45:56 h8 dovecot[2122699]: pop3-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
Oct 2 08:45:56 h8 dovecot[2122682]: master: Error: service(pop3-login): command startup failed, throttling for 60.000 secs
 
Thank you for the update. Could you please also try running plesk repair mail and confirm if that helped solving the issue?
 
Thank for the confirmation. Please check /var/log/syslog, /var/log/maillog, and run sudo journalctl -u dovecot to gather more details. At this point, my last two guesses are that either the server is exhausting the memory or there's network issue.
 
Memory is not an issue. I have 20-30 GB free on this server. I forgot write about it before.

I have found something more in logs:

Reloading Dovecot IMAP/POP3 email server.
Reloaded Dovecot IMAP/POP3 email server.
master: Warning: SIGHUP received - reloading configuration
master: Error: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: stat(/var/run/dovecot/config) failed: No such file or directory (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: stat(/var/run/dovecot/config) failed: No such file or directory (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: stat(/var/run/dovecot/config) failed: No such file or directory (path is from CONFIG_FILE environment)
pop3-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
master: Error: service(pop3-login): command startup failed, throttling for 2.000 secs
master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
imap-login: Fatal: master: service(imap-login): child 2545242 returned error 89 (Fatal failure)
imap-login: Fatal: master: service(imap-login): child 2545243 returned error 89 (Fatal failure)
imap-login: Fatal: master: service(imap-login): child 2545244 returned error 89 (Fatal failure)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: stat(/var/run/dovecot/config) failed: No such file or directory (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: stat(/var/run/dovecot/config) failed: No such file or directory (path is from CONFIG_FILE environment)
imap-login: Fatal: Error reading configuration: read(/var/run/dovecot/config) failed: read(size=8192) failed: Interrupted system call - Also failed to read config by executing doveconf: /var/run/dovecot/config is a UNIX socket (path is from CONFIG_FILE environment)
master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
 
I have dovecot logs in maillog but it's detail.

/var/log/maillog:Oct 8 15:42:47 h8 dovecot[3809355]: master: Warning: SIGHUP received - reloading configuration
/var/log/maillog.processed:Oct 7 17:42:40 h8 dovecot[3809355]: master: Warning: SIGHUP received - reloading configuration
/var/log/maillog.processed:Oct 7 20:43:00 h8 dovecot[3809355]: master: Warning: SIGHUP received - reloading configuration
/var/log/maillog.processed:Oct 7 22:42:35 h8 dovecot[3809355]: master: Warning: SIGHUP received - reloading configuration
 
Thank you. It looks like the service reloads at regular intervals. Can you please provide a copy of /etc/logrotate.d/dovecot. Also, do you have any custom cron jobs that could be triggering the reload action, please?
 
I have no dovecot logrotate file. Logs are in maillog aggregated with postfix. I checked cron and I didn't find any suspected jobs which can reload dovecot.

Here is my logrotate.d files:

bootlog fail2ban.rpmnew mod_security passenger plesk-php74 plesk-php84 syslog
btmp firewalld monit plesk plesk-php80 sa-update syslog.rpmnew
chrony httpd mysql plesk-php71 plesk-php81 sssd wp-toolkit-action-logs
dnf iptraf-ng named plesk-php72 plesk-php82 sw-cp-server wtmp
fail2ban kvm_stat nginx plesk-php73 plesk-php83 sw-engine zabbix-agent
 
Back
Top