DBERROR db4: Program version 4.2 doesn't match environment..

All questions about cyrus-imap used by artica

DBERROR db4: Program version 4.2 doesn't match environment..

New postby chris_c_ » Mon Jul 11, 2011 9:05 am

I see these errors in the artica System Events Log, on the artica mangement console:

start of log entries
Code: Select all
Jul 11 04:28:37 articabox cyrus/master[20168]: about to exec /usr/lib/cyrus/bin/imapd
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR db4: Program version 4.2 doesn't match environment version
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: Invalid argument
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR: init() on berkeley
Jul 11 04:28:37 articabox cyrus/imap[20168]: executed
Jul 11 04:28:37 articabox cyrus/imap[20168]: accepted connection
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR db4: environment not yet opened
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR: opening /var/lib/cyrus/tls_sessions.db: Invalid argument
Jul 11 04:28:37 articabox cyrus/imap[20168]: DBERROR: opening /var/lib/cyrus/tls_sessions.db: cyrusdb error
Jul 11 04:28:37 articabox cyrus/imap[20168]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication
Jul 11 04:28:37 articabox cyrus/imap[20168]: login: [192.168.x.y] xxxxxxx plain+TLS User logged in
Jul 11 04:28:37 articabox cyrus/imap[20168]: client id: "name" "Thunderbird" "version" "5.0"
Jul 11 04:28:37 articabox cyrus/imap[20168]: seen_db: user xxxxxxx opened /var/lib/cyrus/user/x/xxxxxxx.seen

end of log entries

Why all these DBERROR ???

"DBERROR db4: Program version 4.2 doesn't match environment version"
"DBERROR: dbenv->open '/var/lib/cyrus/db' failed: Invalid argument"
"DBERROR: init() on berkeley"

"DBERROR db4: environment not yet opened"
"DBERROR: opening /var/lib/cyrus/tls_sessions.db: Invalid argument"
"DBERROR: opening /var/lib/cyrus/tls_sessions.db: cyrusdb error"
chris_c_
 
Posts: 794
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby admin » Mon Jul 11, 2011 10:48 am

it seems there is an upgrade from the system that upgrade db4 libraries

do
Code: Select all
apt-get remove cyrus-imapd-2.2 cyrus-admin-2.2 cyrus-pop3d-2.2 cyrus-murder-2.2 cyrus-clients-2.2  && apt-get install cyrus-imapd-2.2 cyrus-admin-2.2 cyrus-pop3d-2.2 cyrus-murder-2.2 cyrus-clients-2.2
User avatar
admin
Site Admin
 
Posts: 11942
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby chris_c_ » Mon Jul 11, 2011 1:18 pm

I did the remove and install.

Remove took 10 seconds.

Install was too fast.. under 1 second..

Did it really install?? or just reactivate the packages???

I still get the same error...!!!



Code: Select all
   Jul 11 09:13:24 articabox cyrus/imap[17850]: accepted connection
   Jul 11 09:13:25 articabox cyrus/master[21892]: about to exec /usr/lib/cyrus/bin/imapd
   Jul 11 09:13:25 articabox cyrus/imap[21892]: DBERROR db4: Program version 4.2 doesn't match environment version
   Jul 11 09:13:25 articabox cyrus/imap[21892]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: Invalid argument
   Jul 11 09:13:25 articabox cyrus/imap[21892]: DBERROR: init() on berkeley
   Jul 11 09:13:25 articabox cyrus/imap[21892]: executed
   Jul 11 09:13:25 articabox cyrus/imap[21892]: accepted connection
   Jul 11 09:13:25 articabox cyrus/imap[17850]: login: [192.168.xxx.yyy] xxxxxx plaintext User logged in
chris_c_
 
Posts: 794
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby chris_c_ » Tue Jul 12, 2011 4:31 pm

I bump the thread....

Same error after remove / install db4 libraries.

Any suggestion what else to try, to diagnose it, or fix it ??
chris_c_
 
Posts: 794
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby admin » Tue Jul 12, 2011 5:58 pm

According this :
http://lists.andrew.cmu.edu/pipermail/i ... 27885.html

do
Code: Select all
   rm /usr/lib/cyrus/cyrus-db-types.active
   dpkg-reconfigure cyrus-common-2.2
User avatar
admin
Site Admin
 
Posts: 11942
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby chris_c_ » Wed Sep 21, 2011 2:54 pm

On the artica management console, when you click to upgrade from cyrus 2.2.__ to cyrus 2.3.16, this problem returns !!!

The problem is more serious than before.... offlineimap sync fails - download messages from remote server is OK, but it hangs forever when uploading to the remote server. It cannot read from artica's cyrus , and remote server timeout the connection.

Different conflicting versions of libdb-4.6 and libdb-4.2 cyrus database libraries on the system, and it seems to be part of the problem.

Code: Select all
artica:~# locate ctl_cyrusdb
/usr/lib/cyrus/bin/ctl_cyrusdb
/usr/sbin/ctl_cyrusdb
/usr/share/man/man8/ctl_cyrusdb.8
/usr/share/man/man8/ctl_cyrusdb.8.gz


Code: Select all
artica:~# ldd /usr/lib/cyrus/bin/ctl_cyrusdb
   linux-gate.so.1 =>  (0xf7716000)
   libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xf76fd000)
   libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xf76d3000)
   libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xf763e000)
   libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xf761a000)
   libcom_err.so.2 => /lib/libcom_err.so.2 (0xf7607000)
   libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xf75ff000)
   libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xf75eb000)
   libdb-4.6.so => /usr/lib/libdb-4.6.so (0xf74b8000)
   libpcre.so.3 => /usr/lib/libpcre.so.3 (0xf748e000)
   libpcreposix.so.3 => /usr/lib/libpcreposix.so.3 (0xf748c000)
   libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xf7444000)
   libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xf72f1000)
   libz.so.1 => /usr/lib/libz.so.1 (0xf72dc000)
   libc.so.6 => /lib/i686/cmov/libc.so.6 (0xf7181000)
   libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xf717c000)
   libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xf7179000)
   libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xf7160000)
   /lib/ld-linux.so.2 (0xf7717000)


Code: Select all
artica:~# ldd /usr/sbin/ctl_cyrusdb
   linux-gate.so.1 =>  (0xf7799000)
   libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xf7770000)
   libgssapi.so.2 => /usr/lib/libgssapi.so.2 (0xf7747000)
   libkrb5.so.25 => /usr/lib/libkrb5.so.25 (0xf7686000)
   libasn1.so.8 => /usr/lib/libasn1.so.8 (0xf760b000)
   libroken.so.18 => /usr/lib/libroken.so.18 (0xf75f9000)
   libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xf75c7000)
   libcom_err.so.2 => /lib/libcom_err.so.2 (0xf75c4000)
   libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xf75b0000)
   libdb-4.2.so => /usr/lib/libdb-4.2.so (0xf74d5000)
   libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xf748c000)
   libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xf7339000)
   libc.so.6 => /lib/i686/cmov/libc.so.6 (0xf71de000)
   libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xf71da000)
   libheimntlm.so.0 => /usr/lib/libheimntlm.so.0 (0xf71d5000)
   libhx509.so.3 => /usr/lib/libhx509.so.3 (0xf7199000)
   libwind.so.0 => /usr/lib/libwind.so.0 (0xf7171000)
   libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xf7158000)
   /lib/ld-linux.so.2 (0xf779a000)
   libz.so.1 => /usr/lib/libz.so.1 (0xf7143000)


This thread from July 2011 talks about this issue, and a script to fix it.
http://www.mail-archive.com/pkg-cyrus-i ... 01391.html

David: could you review this script, and confirm it's safe to run on artica (running on debian lenny5) ??
http://anonscm.debian.org/gitweb/?p=pkg ... upgrade-db
chris_c_
 
Posts: 794
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: DBERROR db4: Program version 4.2 doesn't match environment..

New postby admin » Thu Sep 22, 2011 6:37 am

hum...
This script is good but there is some values that are not defined espcecially paths of binaries, i think you need to test it before executing it
User avatar
admin
Site Admin
 
Posts: 11942
Joined: Wed Oct 17, 2007 7:59 am
Location: France


Return to Cyrus-imap

Who is online

Users browsing this forum: No registered users and 2 guests

cron