ctl_cyrusdb db version error

Simon Matter simon.matter at invoca.ch
Thu Jul 28 10:31:49 EDT 2011


> On 28/07/2011 08:44, Simon Matter wrote:
>>> Helo,
>>> on a server ( debian 5.0 ) I installed three years ago cyrus 3.2.11 but
>>> I have never used
>>> now I wanted to install cyrus 2.4.10 but when I run the command
>>> /usr/cyrus/bin/ctl_cyrusdb -r I get :
>>>
>>> Fatal error: wrong db version
>>> segmentation fault
>>>
>>> it is possible that ctl_cyrus version 2.4.10 compiled with version 4.6
>>> of libdb give me error because' /usr/lib/libbd.so is a symbolic link to
>>> version 4.4?
>>>
>>> How can I fix this problem ?
>>>
>>> Since I will have to do the same operation on a production server
>>> should
>>> I switch from berkeley db to skiplist db, before upgrade cyrus ?
>> I can only recommend to switch to skiplist before upgrade. That way you
>> can get rid of the BDB version issues. You can then even build 2.4.x
>> without BDB support.
>
> I  recompiled  cyrus-imap with:
>
>   ./configure --prefix=/usr --with-sasl=/usr/local/lib --with-perl
> --with-openssl=/usr/lib/ssl --enable-replication
>
> I remove all file *.db ( is only a test server with no mailbox ) but when
> I run imapd in the /var/log/messages I find :
>
> Jul 28 16:08:55 dnsback kernel: ctl_cyrusdb[21801]: segfault at 170 ip
> 080863f1 sp bff25050 error 4 in ctl_cyrusdb[8048000+12d000]
> Jul 28 16:09:56 dnsback kernel: ctl_cyrusdb[21943]: segfault at 170 ip
> 080863f1 sp bfb2b240 error 4 in ctl_cyrusdb[8048000+12d000]
>
> and if I run /usr/cyrus/bin/ctl_cyrusdb -r I get :
>
> fatal error: wrong db version
> Segmentation fault
>
> Why it  tells me that  even  the version of the  db and  iswrong?
> Should not  create a  new file  mailboxes.db in the skiplist format?

1) I don't think you have built cyrus-imapd without BDB support. Did you
check the resulting binaries with ldd?
2) You also have to clean up the $CONFIGDIR/db directory

Simon




More information about the Info-cyrus mailing list