DBERROR: dbenv->open
Casper
casper at snigelpost.org
Mon Nov 21 09:45:35 EST 2005
Ramya Krishnan wrote:
> 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??
>
Try to stop the master and then "rm /var/lib/imap/db/*"
And then start the master again.
This should solve the problem.
/Casper
More information about the Info-cyrus
mailing list