Dovecot update failed

I just updated via webmin and had failures in Dovecot. Webmin shows Dovecot as not running but it is in running processes. Email seems to work too.

Setting up dovecot-core (1:2.2.27-3+deb9u3) ... Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details. invoke-rc.d: initscript dovecot, action "start" failed.
● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-02-11 00:45:53 UTC; 21ms ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 1492 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
 Main PID: 824 (code=exited, status=0/SUCCESS)

Feb 11 00:45:53 s1.vcch.org systemd[1]: Starting Dovecot IMAP/POP3 email ser…...
Feb 11 00:45:53 s1.vcch.org dovecot[1492]: Fatal: Dovecot is already running…gin
Feb 11 00:45:53 s1.vcch.org dovecot[1492]: master: Fatal: Dovecot is already…gin
Feb 11 00:45:53 s1.vcch.org systemd[1]: dovecot.service: Control process exi…=89
Feb 11 00:45:53 s1.vcch.org systemd[1]: Failed to start Dovecot IMAP/POP3 em…er.
Feb 11 00:45:53 s1.vcch.org systemd[1]: dovecot.service: Unit entered failed…te.
Feb 11 00:45:53 s1.vcch.org systemd[1]: dovecot.service: Failed with result …e'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package dovecot-core (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libapt-inst2.0:amd64 (1.4.9) ...
Setting up libcurl3:amd64 (7.52.1-5+deb9u9) ...
Setting up apt-utils (1.4.9) ...
Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u9) ...
Setting up libgd3:amd64 (2.2.4-2+deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
dpkg: dependency problems prevent configuration of dovecot-pop3d:
 dovecot-pop3d depends on dovecot-core (= 1:2.2.27-3+deb9u3); however:
  Package dovecot-core is not configured yet.

dpkg: error processing package dovecot-pop3d (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u8) ...
dpkg: dependency problems prevent configuration of dovecot-imapd:
 dovecot-imapd depends on dovecot-core (= 1:2.2.27-3+deb9u3); however:
  Package dovecot-core is not configured yet.

dpkg: error processing package dovecot-imapd (--configure):
 dependency problems - leaving unconfigured
Setting up php-pear (1:1.10.1+submodules+notgz-9+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up openssh-client (1:7.4p1-10+deb9u5) ...
Setting up curl (7.52.1-5+deb9u9) ...
Setting up openssh-sftp-server (1:7.4p1-10+deb9u5) ...
Setting up openssh-server (1:7.4p1-10+deb9u5) ...
Errors were encountered while processing:
 dovecot-core
 dovecot-pop3d
 dovecot-imapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

.. install failed!

Hello,
It looks like we have a similar problem. Here is the output when we try to update the server through virtualmin GUI:

dpkg: dependency problems prevent configuration of dovecot-pop3d:
dovecot-pop3d depends on dovecot-core (= 1:2.2.27-3+deb9u4); however:
Package dovecot-core is not configured yet.
dpkg: error processing package dovecot-pop3d (–configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u9) …
dpkg: dependency problems prevent configuration of dovecot-imapd:
dovecot-imapd depends on dovecot-core (= 1:2.2.27-3+deb9u4); however:
Package dovecot-core is not configured yet.
dpkg: error processing package dovecot-imapd (–configure):
dependency problems - leaving unconfigured

We cannot figure out what’s went wrong and how to fix this error.
Any hint or help would be greatly appreciated :slight_smile: