DBERROR: dbenv->open

Ramya Krishnan ramya_krishnan at sifycorp.com
Mon Nov 21 08:32:34 EST 2005


Hi..
I. I get db error when i try  to start master.

Nov 21 18:14:59 ramya master[2855]: about to exec
/var/cyrus/sbin/ctl_cyrusdb
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR ¬<8e>^F^H: db4
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: dbenv->open
'/var/lib/imap/db' failed: Resource temporarily unavailable
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: init() on berkeley
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: reading
/var/lib/imap/db/skipstamp, assuming the worst: No such file or directory
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: checkpointing cyrus databases
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: archiving database file:
/var/lib/imap/annotations.db
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR ¬<8e>^F^H: db4
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: couldn't checkpoint:
Invalid argument
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: sync /var/lib/imap/db:
cyrusdb error
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR ¬<8e>^F^H: db4
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: error listing log
files: Invalid argument
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: archive
/var/lib/imap/db: cyrusdb error
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: archiving database file:
/var/lib/imap/mailboxes.db
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR ¬<8e>^F^H: db4
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: couldn't checkpoint:
Invalid argument
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: sync /var/lib/imap/db:
cyrusdb error
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR ¬<8e>^F^H: db4
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: error listing log
files: Invalid argument
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: DBERROR: archive
/var/lib/imap/db: cyrusdb error
Nov 21 18:15:17 ramya ctl_cyrusdb[2855]: done checkpointing cyrus databases
Nov 21 18:15:17 ramya master[485]: process 2855 exited, status 1


These are the files that i have in /var/lib/imap/
drwxr-xr-x  23 root  root  4096 Nov 21 15:15 ..
drwxr-xr-x   2 cyrus cyrus 4096 Nov 21 15:17 ptclient
drwxr-xr-x   2 cyrus cyrus 4096 Nov 21 15:17 msg
drwxr-xr-x   2 cyrus cyrus 4096 Nov 21 15:17 log
-rw-------   1 cyrus cyrus  144 Nov 21 16:09 mailboxes.db
-rw-------   1 cyrus cyrus  144 Nov 21 16:09 annotations.db
drwxr-xr-x   2 cyrus cyrus 4096 Nov 21 16:09 proc
lrwxrwxrwx   1 root  root    22 Nov 21 16:31 socket ->
/var/cyrus/etc/socket/
drwxr-xr-x   2 cyrus cyrus 4096 Nov 21 17:44 db
drwx------   2 cyrus cyrus 4096 Nov 21 17:45 db.backup2
drwxr-xr-x   9 cyrus mail  4096 Nov 21 18:15 .
II. When i try to deliver a mail through lmtp i get the following errors
Nov 21 18:44:10 ramya master[5189]: about to exec /var/cyrus/sbin/lmtpd
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR Ð<^H^H: db4
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR: dbenv->open
'/var/lib/imap/db' failed: Resource temporarily unavailable
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR: init() on berkeley
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR: reading
/var/lib/imap/db/skipstamp, assuming the worst: No such file or directory
Nov 21 18:44:28 ramya lmtpunix[5189]: executed
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR Ð<^H^H: db4
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR: opening
/var/lib/imap/deliver.db: Invalid argument
Nov 21 18:44:28 ramya lmtpunix[5189]: DBERROR: opening
/var/lib/imap/deliver.db: cyrusdb error
Nov 21 18:44:28 ramya lmtpunix[5189]: FATAL: lmtpd: unable to init
duplicate delivery database
Nov 21 18:44:28 ramya master[485]: process 5189 exited, status 75
Nov 21 18:44:28 ramya master[485]: service lmtpunix pid 5189 in READY
state: terminated abnormally
Nov 21 18:44:28 ramya master[5220]: about to exec /var/cyrus/sbin/lmtpd


I understand that the db files are not created properly... How do i
create them??
I thought tools/mkimap did create the db files...?


III. I would like to integrate IMAP with LDAP. Am i better off trying
for PAM authentication or patching IMAP and then try authentication.
Any pointers to the problem??

-- 
Thanks and Regards
Ramya Krishnan


********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to 
Sify Limited and is intended for use only by the individual or entity to 
which it is addressed, and may contain information that is privileged, 
confidential or exempt from disclosure under applicable law. If this is a 
forwarded message, the content of this E-MAIL may not have been sent with 
the authority of the Company. If you are not the intended recipient, an 
agent of the intended recipient or a  person responsible for delivering the 
information to the named recipient,  you are notified that any use, 
distribution, transmission, printing, copying or dissemination of this 
information in any way or in any manner is strictly prohibited. If you have 
received this communication in error, please delete this mail & notify us 
immediately at admin at sifycorp.com

www.sify.com - your homepage on the internet for news, sports, finance,
astrology, movies, entertainment, food, languages etc



More information about the Info-cyrus mailing list