[Dovecot] Dovecot crash in 1.0.13

Peter Eriksson peter at ifm.liu.se
Wed May 21 14:39:06 EEST 2008


>> Btw, why is the whole Dovecot system shutting down due to a bug in the
>> 'imap' subprocess? It's rather annoying for the rest of the users...
> 
> It shouldnt' be.
> 
>> May 20 15:16:32 ifm.liu.se dovecot: [ID 107833 mail.info] IMAP(inand):
>> Server shutting down
> 
> Do you mean you didn't cause this manually?

Right.

Hmm.. I wonder if it might be due to the Solaris SMF system seeing the
coredump (and/or signals) and deciding that the system
it is monitoring has failed and thus shuts it down. (I use SMF to handle
Dovecot).

Ah! Yes, that's why!


# tail -18 /var/svc/log/network-dovecot:default.log
[ May 20 15:16:32 Stopping because process dumped core. ]
[ May 20 15:16:32 Executing stop method (:kill) ]
[ May 20 15:17:02 Method or service exit timed out.  Killing contract 6893 ]
[ May 20 15:24:03 Leaving maintenance because clear requested. ]
[ May 20 15:24:03 Enabled. ]
[ May 20 15:24:04 Executing start method ("/ifm/sbin/start_dovecot") ]
[ May 20 15:24:04 Method "start" exited with status 0 ]
[ May 20 19:42:25 Stopping because process dumped core. ]
[ May 20 19:42:25 Executing stop method (:kill) ]
[ May 20 19:42:56 Method or service exit timed out.  Killing contract 7854 ]
[ May 20 21:26:45 Leaving maintenance because clear requested. ]
[ May 20 21:26:45 Enabled. ]
[ May 20 21:26:46 Executing start method ("/ifm/sbin/start_dovecot") ]
[ May 20 21:26:46 Method "start" exited with status 0 ]
[ May 21 08:35:34 Stopping because process dumped core. ]
[ May 21 08:35:34 Executing stop method (:kill) ]
[ May 21 08:35:34 Executing start method ("/ifm/sbin/start_dovecot") ]
[ May 21 08:35:34 Method "start" exited with status 0 ]

Hmm...

Ah! The Solaris SMF FAQ 4.5 has a good answer on how to fix that.
Add the following to the Solaris SMF manifest that controls Dovecot:

<property_group name='startd' type='framework'>
        <propval name='ignore_error' type='astring'
                value='core,signal' />
</property_group>

Please find enclosed an updated Solaris SMF manifest that others might
be interested in using on Solaris 10/OpenSolaris systems...

- Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot.xml
Type: text/xml
Size: 2533 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080521/9bcaa09c/attachment.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 185 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20080521/9bcaa09c/attachment.bin 


More information about the dovecot mailing list