Dovecot has failed again during the night

guys,
this still isnt resolved…even after webmin update yestaerday 6.09-3, i thought that perhaps the error the original webmin update caused in dovecot was fixed. however, i wake up this morning and again i find dovecot has shut down enterring a failed state.

this is plain crazy what on earth is going on with these updates?

have a look at the dashboard system monitors…one says dovecot is running the other says it isnt!

We need to see the maillog entries related to the failure. I don’t see this behavior on our servers, so I don’t know what’s happening or why.

ok i will try to get them now.
what is really strange is that i managed to get dovecot restarted, however it is not delivering for one particular domain (the same one that went haywire after the webmin update 6.09-2)

Here is the last 100 lines of the mail error log…(im sorry its so long but i thought that will give best chance of narrowing down what is wrong with the errant domain…

May  8 12:16:49 server1 dovecot: imap-login: Fatal: Can't load ssl_cert: There is no valid PEM certificate.

May 8 12:16:49 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 2 secs
May 8 12:16:51 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:16:51 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 4 secs
May 8 12:16:55 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:16:55 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 8 secs
May 8 12:17:03 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:17:03 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 16 secs
May 8 12:17:19 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:17:19 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 32 secs
May 8 12:17:52 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:17:52 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:18:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:18:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:19:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:19:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:20:37 server1 dovecot: pop3-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:20:37 server1 dovecot: master: Error: service(pop3-login): command startup failed, throttling for 60 secs
May 8 12:20:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:20:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:21:37 server1 dovecot: pop3-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:21:37 server1 dovecot: master: Error: service(pop3-login): command startup failed, throttling for 60 secs
May 8 12:21:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:21:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:22:00 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 12:22:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:22:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:23:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:23:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:24:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:24:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:25:05 server1 dovecot: pop3-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:25:05 server1 dovecot: master: Error: service(pop3-login): command startup failed, throttling for 60 secs
May 8 12:25:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:25:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:26:05 server1 dovecot: pop3-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:26:05 server1 dovecot: master: Error: service(pop3-login): command startup failed, throttling for 60 secs
May 8 12:26:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:26:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:27:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:27:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:28:53 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:28:53 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs
May 8 12:29:36 server1 dovecot: pop3-login: Fatal: Can’t load ssl_cert: There is no valid PEM certificate.
May 8 12:29:36 server1 dovecot: master: Error: service(pop3-login): command startup failed, throttling for 60 secs
May 8 12:29:50 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 12:41:45 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 12:45:22 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 8 12:51:35 server1 dovecot: anvil: Fatal: master: service(anvil): child 5363 killed with signal 9
May 8 12:51:57 server1 dovecot: auth: Error: read(anvil-auth-penalty) failed: EOF
May 8 12:51:57 server1 dovecot: auth: Error: net_connect_unix(anvil-auth-penalty) failed: Permission denied
May 8 12:51:57 server1 dovecot: pop3-login: Error: read(anvil) failed: EOF
May 8 12:51:57 server1 dovecot: anvil: Fatal: master: service(anvil): child 1724 killed with signal 9
May 8 12:52:19 server1 dovecot: anvil: Error: connect limit: disconnection for unknown pid 11577 + ident imap/124.168.56.14/secretary@problemclientdomain.com
May 8 12:52:19 server1 dovecot: imap-login: Fatal: master: service(imap-login): child 11551 killed with signal 9
May 8 12:52:35 server1 dovecot: auth: Error: net_connect_unix(anvil-auth-penalty) failed: Permission denied
May 8 12:52:35 server1 dovecot: auth: Error: auth worker: Aborted PASSV request for tesla@client1domain.com.au: Shutting down
May 8 12:53:36 server1 dovecot: anvil: Error: connect limit: disconnection for unknown pid 24365 + ident imap/120.146.145.157/tesla@client1domain.com.au
May 8 12:54:36 server1 dovecot: anvil: Error: connect limit: disconnection for unknown pid 24359 + ident imap/120.146.145.157/memberships@problemclientdomain.com
May 8 12:54:36 server1 dovecot: anvil: Error: connect limit: disconnection for unknown pid 24366 + ident imap/120.146.145.157/adamjedgar@tesla.com.au
May 8 12:55:16 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 12:55:16 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 13:42:33 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 13:42:35 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 13:42:37 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 13:42:39 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 13:45:15 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:00:02 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:30:56 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:30:56 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:37:16 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:38:04 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:53:49 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 14:55:11 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 08:58:09 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 14 08:58:09 server1 dovecot: imap-login: Error: read(anvil) failed: EOF
May 14 08:58:11 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 08:58:13 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 08:58:15 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 08:58:17 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 09:15:44 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 09:16:36 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 09:17:46 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 09:20:09 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 22:59:28 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 22:59:30 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 22:59:33 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 14 22:59:35 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 15 08:21:06 server1 dovecot: master: Error: unlink(/var/run/dovecot/master.pid) failed: No such file or directory (in main.c:558)

is this the same as this older post in 2018? https://www.virtualmin.com/node/54897

Here is a copy of a handful of log entries around the time the mail server went down…

May  8 11:30:01 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login

May 8 11:44:49 server1 postfix/postfix-script[24938]: fatal: the Postfix mail system is not running
May 8 11:54:06 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 11:54:36 server1 dovecot: master: Fatal: Dovecot is already running? Socket already exists: /var/run/dovecot/login/login
May 8 11:54:41 server1 dovecot: master: Error: service(imap-login): command startup failed, throttling for 2 secs
May 8 11:54:41 server1 dovecot: imap-login: Fatal: Can’t load ssl_cert: Address family not supported by protocol

This is probably the root cause. Check your dovecot.conf for the ssl_cert path (and possibly ssl_key, etc.) to see if the files exist where Dovecot thinks they do, and make sure they’re actually in PEM format.

I’m getting vague notions from various problem reports that maybe there’s a situation where some certs that Virtualmin is copying into place aren’t a valid format for Dovecot (and it may be Dovecot version dependent). But, I’m still guessing pretty wildly and I don’t really have enough data…I probably need to see your Dovecot config file (sanitized if you don’t want to show domain names or paths). And, I need you to tell me whether there are actual PEM files in the places Dovecot is looking for them.

Hi Joe, i am more than happy to give you access to my Virtualmin Pro system directly.

I am now doing the following in Webmin for you…

Enable Remote Login Privileges
submitt support ticket.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.