1

Topic: Dovecot process hangs

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Centos 7.9.2009
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello.

I have two dovecot servers.

I'm using dovecot replication plugin and I'm running replication via TCPS.
Sometimes happens that imap or deliver process for specfiic mailbox hangs and cannot be killed. I also tried kill -9 PID.

Dovecot version: 2.2.36

In logs I don't see anything useful even with debug log enabled. After process hang I can see the following message in logs:
Jun 13 09:03:33 mx1 dovecot: dsync-local(example@domain): Error: Couldn't lock /vmail/vmail1/domain/example/.dovecot-sync.lock: fcntl(/vmail/vmail1/domain/example/.dovecot-sync.lock, write-lock, F_SETLKW) locking failed: Timed out after 30 seconds (WRITE lock held by pid 87230)

Did you maybe had any similar problems? Is this known issue with dovecot 2.2.?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dovecot process hangs

- Do both servers run same OS release and Dovecot version?
- I'm afraid that you'd better ask for help from Dovecot mailing list since this replication issue is beyond our experience.