cyrus-imapd not starting after upgrade

Andrew Morgan morgan at orst.edu
Tue Jan 15 11:57:38 EST 2019


On Tue, 15 Jan 2019, Daniel Bareiro wrote:

> Hi all!
>
> After quite some time, today I decided to update the mail server from
> Debian Jessie (cyrus-imapd 2.4.17) to Debian Stretch (cyrus-imapd 2.5.10-3).
>
> All without problems until I reach the part of cyrus-imapd that does not
> start. This is what I see in the log:
>
> ----------
> Jan 14 23:10:45 mail systemd[1]: Started Cyrus IMAP/POP3 daemons.
> Jan 14 23:10:45 mail cyrus/ctl_cyrusdb[5318]: skiplist: clean shutdown
> file missing, updating recovery stamp
> Jan 14 23:10:45 mail cyrus/ctl_cyrusdb[5318]: recovering cyrus databases
> Jan 14 23:10:45 mail cyrus/ctl_cyrusdb[5318]: done recovering cyrus
> databases
> Jan 14 23:10:46 mail cyrus/cyr_expire[5332]: Repacking mailbox
> user.admin.TareasCron version 12
> Jan 14 23:10:46 mail cyrus/cyr_expire[5332]: Expired 0 and expunged 0
> out of 28809 messages from 80 mailboxes
> Jan 14 23:10:46 mail cyrus/cyr_expire[5332]: duplicate_prune: pruning
> back 3.00 days
> Jan 14 23:10:46 mail cyrus/cyr_expire[5332]: duplicate_prune: purged 0
> out of 438 entries
> Jan 14 23:10:46 mail cyrus/tls_prune[5335]: twoskip: invalid magic
> header: /var/lib/cyrus/tls_sessions.db
> Jan 14 23:10:46 mail cyrus/tls_prune[5335]: cyrusdb: opening
> /var/lib/cyrus/tls_sessions.db with backend skiplist (requested twoskip)
> Jan 14 23:10:46 mail cyrus/tls_prune[5335]: skiplist: recovered
> /var/lib/cyrus/tls_sessions.db (223 records, 41200 bytes) in 0 seconds
> Jan 14 23:10:46 mail cyrus/tls_prune[5335]: skiplist: checkpointed
> /var/lib/cyrus/tls_sessions.db (223 records, 41200 bytes) in 0.091 sec
> Jan 14 23:10:46 mail cyrus/tls_prune[5335]: tls_prune: purged 2 out of
> 223 entries
> Jan 14 23:10:46 mail cyrus/master[5311]: cannot find executable for
> service 'nntp'
> Jan 14 23:10:46 mail cyrus/master[5311]: exiting
> Jan 14 23:10:46 mail systemd[1]: cyrus-imapd.service: Main process
> exited, code=exited, status=78/n/a
> Jan 14 23:10:46 mail systemd[1]: cyrus-imapd.service: Unit entered
> failed state.
> Jan 14 23:10:46 mail systemd[1]: cyrus-imapd.service: Failed with result
> 'exit-code'.
> ----------
>
> I'm not sure what the problem is but that "invalid magic header" makes
> me think that maybe it changed the header format of
> /var/lib/cyrus/tls_sessions.db and the migration process did not do the
> corresponding conversion. Can that be the reason why it doesn't start or
> I'm missing something else? Any ideas that can bring more light?
>
> The associated problem is that because of this it seems that Postfix can
> not deliver the mails since there is no /var/run/cyrus/socket/lmtp.

It wants tls_sessions.db to be a twoskip-format file, but the current 
format is skiplist.  However, it was able to detect this and open it as 
skiplist.  You can fix this issue by stopping Cyrus, removing 
tls_sessions.db, and starting Cyrus.

However, your real problem seems to be the missing nntp executable:

Jan 14 23:10:46 mail cyrus/master[5311]: cannot find executable for service 'nntp'

Do you use NNTP?  You could comment it out of cyrus.conf in order to get 
the rest of Cyrus up and running.

Take a look at the release notes for v2.5.0:

   https://www.cyrusimap.org/imap/download/release-notes/2.5/x/2.5.0.html

It covers important changes from v2.4 to v2.5.  You may need to update 
your cyrus.conf and imapd.conf files.

Thanks,
 	Andy


More information about the Info-cyrus mailing list