<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;">2.4 was releasted in 2010, it's 2017. We advise not to run Berkeley DB (even on 2.3.19), because it doesn't upgrade very nicely.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">I would advise that you get some version 10 binaries and use cvt_cyrusdb to convert all your berkeley databases to skiplist. Skiplist in 2.3.19 is rock solid. You'll need to update the config as well, but the default for every database type in 2.3.19 is skiplist, so it's just a matter of removing some lines from imapd.conf.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Regards,<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Bron.<br></div>
<div><br></div>
<div>On Wed, 4 Jan 2017, at 19:45, absolutely_free--- via Info-cyrus wrote:<br></div>
<blockquote type="cite"><div><br></div>
<div style="font-family:Arial;">Hi,<br></div>
<div>I am using cyrus-imapd23-2.3.19_2 on FreeBSD.<br></div>
<div>After BSD upgrade (from 10 to 11) I get problems with cyrus.<br></div>
<div>I get this kind of errors on:<br></div>
<div><br></div>
<div><div>Jan 4 09:27:31 mail imaps[65141]: DBERROR db5: pthread suspend failed: Invalid argument<br></div>
<div>Jan 4 09:27:31 mail imaps[65141]: DBERROR db5: BDB0061 PANIC: Invalid argument<br></div>
<div>Jan 4 09:27:31 mail imaps[65141]: DBERROR: critical database situation<br></div>
<div>Jan 4 09:27:31 mail imaps[65140]: DBERROR db5: BDB0060 PANIC: fatal region error detected; run recovery<br></div>
<div>Jan 4 09:27:31 mail imaps[65140]: DBERROR: critical database situation<br></div>
<div>Jan 4 09:27:38 mail imaps[65142]: DBERROR db5: BDB0060 PANIC: fatal region error detected; run recovery<br></div>
<div>Jan 4 09:27:38 mail imaps[65142]: DBERROR: critical database situation<br></div>
<div>Jan 4 09:27:38 mail master[65081]: service imaps pid 65142 in READY state: terminated abnormally<br></div>
<div>Jan 4 09:27:38 mail imaps[65143]: DBERROR db5: BDB0060 PANIC: fatal region error detected; run recovery<br></div>
<div>Jan 4 09:27:38 mail imaps[65143]: DBERROR: critical database situation<br></div>
<div>Jan 4 09:27:38 mail master[65081]: service imaps pid 65143 in READY state: terminated abnormally<br></div>
</div>
<div><br></div>
<div>So I stopped imapd service, and ran /usr/local/cyrus/bin/ctl_cyrusdb -r as cyrus user.<br></div>
<div><br></div>
<div>Rebuild went fine: <br></div>
<div><br></div>
<div><div>Jan 4 09:36:17 mail ctl_cyrusdb[62332]: recovering cyrus databases<br></div>
<div>Jan 4 09:36:17 mail ctl_cyrusdb[62332]: done recovering cyrus databases<br></div>
</div>
<div><br></div>
<div>and I also checked that just after ctl_cyrusdb command, I was able to dump mailboxes.db content with ctl_mboxlist -d<br></div>
<div><br></div>
<div>After few minutes, I get same errors, and ctl_mboxlist -d returns nothing:<br></div>
<div><br></div>
<div><div>cyrus@mail:/root$ /usr/local/cyrus/bin/ctl_cyrusdb -r<br></div>
<div>cyrus@mail:/root$ <br></div>
</div>
<div><br></div>
<div>Yesterday I tried to:<br></div>
<div><br></div>
<div>stop services<br></div>
<div>remove and recreate /var/imap folder<br></div>
<div>run reconstruct<br></div>
<div><br></div>
<div>but it seems I got no stable solution<br></div>
<div><br></div>
<div>Can you help me to solve this problem?<br></div>
<div>Thank you very much<br></div>
<div><br></div>
<div>This is my imapd.conf:<br></div>
<div><br></div>
<div><div>root@mail:/usr/local/etc# grep -v ^# imapd.conf |grep -v ^$<br></div>
<div>configdirectory: /var/imap<br></div>
<div>partition-default: /var/spool/imap<br></div>
<div>allowapop: 0<br></div>
<div>unixhierarchysep: no<br></div>
<div>altnamespace: no<br></div>
<div>allowanonymouslogin: no<br></div>
<div>allowplaintext: yes<br></div>
<div>quotawarn: 90<br></div>
<div>timeout: 30<br></div>
<div>imapidlepoll: 60<br></div>
<div>poptimeout: 10<br></div>
<div>popminpoll: 0<br></div>
<div>admins: root cyrus<br></div>
<div>defaultacl: anyone lrs<br></div>
<div>duplicatesuppression: no<br></div>
<div>sievedir: /var/imap/sieve<br></div>
<div>postmaster: postmaster<br></div>
<div>sieve_maxscriptsize: 32<br></div>
<div>sieve_maxscripts: 5<br></div>
<div>duplicate_db: berkeley<br></div>
<div>mboxlist_db: skiplist<br></div>
<div>ptscache_db: berkeley<br></div>
<div>seenstate_db: skiplist<br></div>
<div>sasl_pwcheck_method: saslauthd<br></div>
<div>sasl_mech_list: plain<br></div>
<div>tls_cert_file: /etc/certs/ssl.crt/server.crt<br></div>
<div>tls_key_file: /etc/certs/ssl.key/server.key<br></div>
<div>tls_ca_file: /etc/certs/ssl.crt/gd_bundle-g2-g1.crt<br></div>
<div>tls_ca_path: /etc/certs/ssl.crt<br></div>
<div>notifysocket: /var/imap/socket/notify<br></div>
</div>
<div><br></div>
<div>And cyrus.conf<br></div>
<div><br></div>
<div><div>root@mail:/usr/local/etc# grep -v ^# cyrus.conf |grep -v ^$ <br></div>
<div>START {<br></div>
<div> # do not delete this entry!<br></div>
<div> recover cmd="ctl_cyrusdb -r"<br></div>
<div> # this is only necessary if using idled for IMAP IDLE<br></div>
<div>}<br></div>
<div>SERVICES {<br></div>
<div> # add or remove based on preferences<br></div>
<div> imap cmd="imapd" listen="127.0.0.1:imap" prefork=1<br></div>
<div> imaps cmd="imapd -s" listen="imaps" prefork=0<br></div>
<div> #pop3 cmd="pop3d" listen="pop3" prefork=0<br></div>
<div> pop3s cmd="pop3d -s" listen="pop3s" prefork=0<br></div>
<div> sieve cmd="timsieved" listen="sieve" prefork=0<br></div>
<div> # these are only necessary if receiving/exporting usenet via NNTP<br></div>
<div> # at least one LMTP is required for delivery<br></div>
<div> lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0<br></div>
<div> # this is required if using notifications<br></div>
<div>}<br></div>
<div>EVENTS {<br></div>
<div> # this is required<br></div>
<div> checkpoint cmd="ctl_cyrusdb -c" period=30<br></div>
<div> # this is only necessary if using duplicate delivery suppression,<br></div>
<div> # Sieve or NNTP<br></div>
<div> delprune cmd="cyr_expire -E 3" at=0400<br></div>
<div> # this is only necessary if caching TLS sessions<br></div>
<div> tlsprune cmd="tls_prune" at=0400<br></div>
<div>}<br></div>
</div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a><br></div>
<div>List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div>
<div>To Unsubscribe:<br></div>
<div><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
</blockquote><div style="font-family:Arial;"><br></div>
<div id="sig567075"><div class="signature">--<br></div>
<div class="signature"> Bron Gondwana<br></div>
<div class="signature"> brong@fastmail.fm<br></div>
<div class="signature"><br></div>
</div>
<div style="font-family:Arial;"><br></div>
</body>
</html>