View previous topic :: View next topic |
Author |
Message |
gojuka Apprentice
Joined: 18 Oct 2002 Posts: 235 Location: Kingston, Ontario, Canada
|
Posted: Sat Dec 11, 2004 11:45 pm Post subject: My cyrus-imapd is broken, yet again! |
|
|
My cyrus-imapd has blown up yet again ... possibly due to an emerge update. Any help would be greatly appreciated since my mail server is kaput. I don't have a lot of info except what is in my logs:
emerge.log
Code: | 1102284960: >>> emerge (20 of 28) net-mail/cyrus-imapd-2.2.10 to /
1102284960: === (20 of 28) Cleaning (net-mail/cyrus-imapd-2.2.10::/usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild)
1102284963: === (20 of 28) Compiling/Merging (net-mail/cyrus-imapd-2.2.10::/usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild)
1102288575: === (20 of 28) Post-Build Cleaning (net-mail/cyrus-imapd-2.2.10::/usr/portage/net-mail/cyrus-imapd/cyrus-imapd-2.2.10.ebuild)
1102288583: >>> AUTOCLEAN: net-mail/cyrus-imapd
1102288588: === Unmerging... (net-mail/cyrus-imapd-2.2.8)
1102288623: >>> unmerge success: net-mail/cyrus-imapd-2.2.8
1102288625: ::: completed emerge (20 of 28) net-mail/cyrus-imapd-2.2.10 to /
|
imapd.log
Code: | Dec 11 18:32:26 o-ren master[15465]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15465]: executed
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15465]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15465 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15465 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15468]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15468]: executed
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15468]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15468 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15468 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15469]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15469]: executed
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15469]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15469 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15469 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15470]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15470]: executed
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15470]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15470 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15470 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15472]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15472]: executed
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15472]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15472 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15472 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15474]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15474]: executed
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15474]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15474 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15474 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15478]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15478]: executed
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15478]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15478 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15478 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15481]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15481]: executed
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:26 o-ren lmtpunix[15481]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:26 o-ren master[13120]: process 15481 exited, status 75
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15481 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren master[15482]: about to exec /usr/lib/cyrus/lmtpd
Dec 11 18:32:26 o-ren lmtpunix[15482]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15482]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 11 18:32:26 o-ren lmtpunix[15482]: DBERROR: init() on berkeley
Dec 11 18:32:26 o-ren lmtpunix[15482]: executed
Dec 11 18:32:27 o-ren lmtpunix[15482]: DBERROR db4: environment not yet opened
Dec 11 18:32:27 o-ren lmtpunix[15482]: DBERROR: opening /var/imap/deliver.db: Invalid argument
Dec 11 18:32:27 o-ren lmtpunix[15482]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 11 18:32:27 o-ren lmtpunix[15482]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 11 18:32:27 o-ren master[13120]: process 15482 exited, status 75
Dec 11 18:32:27 o-ren master[13120]: service lmtpunix pid 15482 in READY state: terminated abnormally
Dec 11 18:32:27 o-ren master[13120]: exiting on SIGTERM/SIGINT
|
messages
Code: | Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15450 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15451]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15451]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15451 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15452]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15452]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15452 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15458]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15458]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15458 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15459]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15459]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15459 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15460]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15460]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15460 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15462]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15462]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15462 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15463]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15463]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15463 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15465]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15465 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15468]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15468 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15469]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15469 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15470]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15470 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15472]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15472 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15474]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15474 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15478]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15478 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:26 o-ren lmtpunix[15481]: DBERROR db4: environment not yet opened
Dec 11 18:32:26 o-ren master[13120]: service lmtpunix pid 15481 in READY state: terminated abnormally
Dec 11 18:32:26 o-ren lmtpunix[15482]: DBERROR db4: fatal region error detected; run recovery
Dec 11 18:32:27 o-ren lmtpunix[15482]: DBERROR db4: environment not yet opened
Dec 11 18:32:27 o-ren master[13120]: service lmtpunix pid 15482 in READY state: terminated abnormally
Dec 11 18:32:27 o-ren master[13120]: exiting on SIGTERM/SIGINT
|
_________________ we're outta control |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sun Dec 12, 2004 12:01 am Post subject: |
|
|
can you do the following: Code: | chown cyrus:mail /var/imap/db
chmod 750 /var/imap/db
find /var/imap/db -type f -not -name ".keep" -exec chmod 600 {} \;
find /var/imap/db -type f -not -name ".keep" -exec chown cyrus:mail {} \; |
and then try again?
cheers
SteveB |
|
Back to top |
|
|
gojuka Apprentice
Joined: 18 Oct 2002 Posts: 235 Location: Kingston, Ontario, Canada
|
Posted: Sun Dec 12, 2004 2:50 pm Post subject: |
|
|
No luck, but that may be because I was messing around trying to troubleshoot.
I ran /usr/lib/cyrus/recover, and that seems to have made things worse. Now cyrus won't even start:
Code: | o-ren imap # /etc/init.d/cyrus start
* Starting cyrus imapd... [ !! ]
o-ren imap #
|
And to make matters worse, when cyrus fails to start like this, nothing is getting logged as to the reason for the failure.
Would my life be easier with some other imap daemon? This is the second time that cyrus has blown up like this on me. Is there some way to convert the cyrus mailstore into something I can import into my mailer (usually kmail but I'm flexible).
Mark _________________ we're outta control |
|
Back to top |
|
|
Haldir Guru
Joined: 27 Sep 2002 Posts: 546
|
Posted: Sun Dec 12, 2004 3:26 pm Post subject: |
|
|
Did you update from 2.0 to 2.2 ?
Your error messages kinda look like you didn't convert your dbs to the new skiplist format |
|
Back to top |
|
|
gojuka Apprentice
Joined: 18 Oct 2002 Posts: 235 Location: Kingston, Ontario, Canada
|
Posted: Mon Dec 13, 2004 2:44 am Post subject: |
|
|
No, but I did run into that skiplist database conversion problem when I did go from 2.1 to 2.2.
In this case it was a minor version upgrade. I had done an 'emerge -upv world` which included an update from 2.2.8 to 2.2.10. At that point, cyrus started puking errors, unknown to me, and eventually filled /var.
When I noticed that mail was failing (it's my own mail server, reasonably low volume not counting the spam) I stopped cyrus, cleared the logs and tried restarting cyrus. It just kept on throwing errors (the errors shown in my first post) at a very rapid rate.
Mark _________________ we're outta control |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|