cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

All questions about cyrus-imap used by artica

cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

New postby viki » Fri Aug 26, 2011 11:17 am

After upgrade we have problem with cyrus working databases. Immediately after imap restart (i.e.: /etc/init.d/artica-postfix stop / /etc/init.d/artica-postfix start) are in log following messages:

cyrus/lmtpunix[31330]: DBERROR db4: environment not yet opened
Aug 26 09:55:39 mail cyrus/lmtpunix[31330]: DBERROR: opening /var/lib/cyrus/deliver.db: Invalid argument
Aug 26 09:55:39 mail cyrus/lmtpunix[31330]: DBERROR: opening /var/lib/cyrus/deliver.db: cyrusdb error

with /var/lib/cyrus/deliver.db, /var/lib/cyrus/db, /var/lib/cyrus/db.backup1 ... etc

temporary solution is stop cyrus, delete these db and new start. Unfortunately, cyrus sometime dead a is newly started by artica and immediately with db error.
viki
 
Posts: 23
Joined: Mon Jan 31, 2011 6:03 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Linux System Administrator

Re: cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

New postby admin » Fri Aug 26, 2011 11:29 am

Have you upgraded the system ?

could you extract the output of

Code: Select all
cat /var/log/mail.log|grep -E 'cyrus\/.+?DB.+?db'|tail -n 500
User avatar
admin
Site Admin
 
Posts: 11942
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

New postby viki » Mon Aug 29, 2011 10:03 am

System is up-to-date, probably databases are corrupted during restarting process. In one time is problem with tis_sessions.db, next it's db directory ... One time was corrupted seen.db for two users in their directory


Aug 26 10:33:47 mail cyrus/ctl_cyrusdb[13465]: DBERROR db4: DB_ENV->log_flush: LSN of 1/427823 past current end-of-log of 1/67803
Aug 26 10:33:47 mail cyrus/ctl_cyrusdb[13465]: DBERROR db4: Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
Aug 26 10:33:47 mail cyrus/ctl_cyrusdb[13465]: DBERROR db4: /var/lib/cyrus/tls_sessions.db: unable to flush page: 0
Aug 26 10:33:47 mail cyrus/ctl_cyrusdb[13465]: DBERROR db4: txn_checkpoint: failed to flush the buffer cache Invalid argument
Aug 26 10:33:47 mail cyrus/ctl_cyrusdb[13465]: DBERROR: couldn't checkpoint: Invalid argument

Aug 26 10:00:54 mail cyrus/lmtpunix[13333]: DBERROR: init() on berkeley
Aug 26 10:00:54 mail cyrus/lmtpunix[13333]: DBERROR db4: environment not yet opened
Aug 26 10:00:54 mail cyrus/lmtpunix[13333]: DBERROR: opening /var/lib/cyrus/deliver.db: Invalid argument
Aug 26 10:00:54 mail cyrus/lmtpunix[13333]: DBERROR: opening /var/lib/cyrus/deliver.db: cyrusdb error
Aug 26 10:00:54 mail cyrus/lmtpunix[13334]: DBERROR db4: log file size must be >= log buffer size * 4
Aug 26 10:00:54 mail cyrus/lmtpunix[13334]: DBERROR: dbenv->open '/var/lib/cyrus/db' failed: Invalid argument
viki
 
Posts: 23
Joined: Mon Jan 31, 2011 6:03 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Linux System Administrator

Re: cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

New postby viki » Wed Sep 07, 2011 9:46 pm

Hi all,

today I try set DB config on Cyrus imap MDA system -> options -> Database configuration. After set value to twice, immediately I had DBERROR on log. After disable this option, DBERROR disappear. On last I solved problem deleting db directory and delivery.db on /var/lib/cyrus, but time to time (propably when I set anything on cyrus) artica set DB_CONFIG on /var/lib/cyrus/db with defined value and DB4 system collapsed and cyrus stop delivery. Without this file (DB_CONFIG) are sets default value (unfortunate I don't know how get these value). It's strange, because on our Arctica backup system, this option disabled on default.
viki
 
Posts: 23
Joined: Mon Jan 31, 2011 6:03 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Linux System Administrator

Re: cyrus/lmtpunix DBERROR db4: environment not yet open, cyrusd

New postby juder » Mon Jun 04, 2012 2:54 am

today I try set DB config on Cyrus imap MDA system -> options -> Database configuration. After set value to twice, immediately I had DBERROR on log. After disable this option, DBERROR disappear. On last I solved problem deleting db directory and delivery.db on /var/lib/cyrus, but time to time (propably when I set anything on cyrus) artica set Lunettes Chanel DB_CONFIG on /var/lib/cyrus/db with defined value and DB4 system collapsed and cyrus stop delivery. Without this file (DB_CONFIG) are sets default value (unfortunate I don't know how get these value). It's strange, because on our Arctica backup system, this option disabled on default
juder
 
Posts: 1
Joined: Mon Jun 04, 2012 2:44 am
Artica servers number: 3
Linux System: Ubuntu
Technical skills: A Linux developper


Return to Cyrus-imap

Who is online

Users browsing this forum: No registered users and 2 guests

cron