Re: cyrus-imapd not starting after upgrade

Michael Menge <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <20190115175415.Horde.-GLtt7JbsfnaXgTZr8YWpka@webmail.uni-tuebingen.de>
Quoting Daniel Bareiro <[email protected]>:

> 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?
>
some defaults for database format have changed between 2.4 and 2.5 but this
is automatically handled.

You Problem lies in

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

Either the executables are installed in the wrong place, or cyrus was  
compiled/packaged
without news support. You can comment out nntp in /etc/cyrus.conf to  
try to start without
running an nntp server

> 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.

As cyrus aborted the start there is no process listening



--------------------------------------------------------------------------------
M.Menge                                Tel.: (49) 7071/29-70316
Universität Tübingen                   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung          mail:  
[email protected]
Wächterstraße 76
72074 Tübingen

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.