Email broken


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Email broken
# 1  
Old 12-15-2010
Email broken

Hi my email appears to be broken. Well the whole server is barley responding. I can log in through ssh and look at the system.log file

Code:
sudo tail -f -n 1000 /var/log/system.log

When i do this the errors being recorded is off the scale. E.g 100's of entries per second. The errors are complaing about the database. And nobody can connect to the server. Here is some of the log
Code:
Dec 15 14:07:40 localhost imap[2207]: auxpropfunc error generic failure 
Dec 15 14:07:40 localhost imap[2207]: DBERROR: opening /var/imap/mailboxes.db: Cannot allocate memory
Dec 15 14:07:40 localhost imap[2207]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:07:40 localhost imap[2207]: Fatal error: can't read mailboxes file
Dec 15 14:07:40 localhost master[427]: service imap pid 2207 in READY state: terminated abnormally
Dec 15 14:07:40 localhost imap[2211]: auxpropfunc error generic failure 
Dec 15 14:07:40 localhost imap[2211]: DBERROR: opening /var/imap/mailboxes.db: Cannot allocate memory
Dec 15 14:07:40 localhost imap[2211]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:07:40 localhost imap[2211]: Fatal error: can't read mailboxes file
Dec 15 14:07:40 localhost master[427]: service imap pid 2211 in READY state: terminated abnormally
Dec 15 14:07:40 localhost imap[2212]: auxpropfunc error generic failure 
Dec 15 14:07:40 localhost imap[2212]: DBERROR: opening /var/imap/mailboxes.db: Cannot allocate memory
Dec 15 14:07:40 localhost imap[2212]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:07:40 localhost imap[2212]: Fatal error: can't read mailboxes file
Dec 15 14:07:40 localhost master[427]: service imap pid 2212 in READY state: terminated abnormally
Dec 15 14:07:40 localhost lmtpunix[2210]: auxpropfunc error generic failure 
Dec 15 14:07:40 localhost lmtpunix[2210]: DBERROR: opening /var/imap/deliver.db: Cannot allocate memory
Dec 15 14:07:40 localhost lmtpunix[2210]: DBERROR: opening /var/imap/deliver.db: cyrusdb error
Dec 15 14:07:40 localhost lmtpunix[2210]: FATAL: lmtpd: unable to init duplicate delivery database
Dec 15 14:07:40 localhost master[427]: service lmtpunix pid 2210 in READY state: terminated abnormally

I can see there's something wrong with email but what should i do about it.
# 2  
Old 12-15-2010
Your box seems to have run out of memory:
Code:
Dec 15 14:07:40 localhost imap[2211]: DBERROR: opening /var/imap/mailboxes.db: Cannot allocate memory

This may explain why the server is "barely" responding.
Maybe a memory leak somewhere or just a lot of memory consumption.

I am not sure if there is something like the
Code:
free

command. If yes, please issue it and post it's output using code tags, thanks.
# 3  
Old 12-15-2010
Code:
-bash: free: command not found

Smilie

---------- Post updated at 06:38 AM ---------- Previous update was at 06:36 AM ----------

I have top if that's any help. but i don't know how to see processes below the page

---------- Post updated at 06:52 AM ---------- Previous update was at 06:38 AM ----------

i just run mailbfr -f with no luck.

No when i start the mail service i get this
Code:
Dec 15 14:50:04 localhost mbpath[3979]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:04 localhost mbpath[3979]: DBERROR: init() on berkeley
Dec 15 14:50:04 localhost mbpath[3979]: DBERROR db4: environment not yet opened
Dec 15 14:50:04 localhost mbpath[3979]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:04 localhost mbpath[3979]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR db4: fatal region error detected; run recovery
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR: init() on berkeley
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR db4: environment not yet opened
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:04 localhost mbpath[3980]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR db4: fatal region error detected; run recovery
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR: init() on berkeley
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR db4: environment not yet opened
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:04 localhost mbpath[3981]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR db4: fatal region error detected; run recovery
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR: init() on berkeley
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR db4: environment not yet opened
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:05 localhost mbpath[3982]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR db4: fatal region error detected; run recovery
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR: init() on berkeley
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR db4: environment not yet opened
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:05 localhost mbpath[3983]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR db4: fatal region error detected; run recovery
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR: dbenv->open '/var/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database recovery
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR: init() on berkeley
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR db4: environment not yet opened
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR: opening /var/imap/mailboxes.db: Invalid argument
Dec 15 14:50:05 localhost mbpath[3984]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error

# 4  
Old 12-15-2010
Uhm no - you need a command that will show how much memory is used and hopefully how much swap space is used. The single command is for now not the problem. It seems to me that your box has a general memory usage problem at the moment.
Found this:
Quickly check Mac OS X’s virtual memory usage

Maybe give
Code:
vm_stat

a try.
# 5  
Old 12-15-2010
Code:
mail:~ timgolding$ vm_stat
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free:                   127057.
Pages active:                  25333.
Pages inactive:               148806.
Pages wired down:              26484.
"Translation faults":        5779577.
Pages copy-on-write:          888575.
Pages zero filled:            626569.
Pages reactivated:             84232.
Pageins:                      553935.
Pageouts:                       1166.
Object cache: 452236 hits of 501061 lookups (90% hit rate)

# 6  
Old 12-15-2010
Hm ok, I guess I have to pass - do not know enough about Mac OS/X, sorry. Your box seems to have free pages left, but I am not sure if it shows them including any swap space or something.
I found some list of OS/X commands (OS X commands), where there was pointed, that the command
Code:
alloc

should list used and free memory - no clue how the output looks like. Also found another graphical tool:
Does my MAC need more memory?

If none of the output of the above commands/tools gives any clue, I have no more clue myself. Maybe checkout also Cyrus sites for the error you get.
Is there any system log you can also check for any entries that could relate to memory problems or loads of errors of other applications/programs?
# 7  
Old 12-15-2010
I ran that command after a restart. Here's what i have done.

I stopped the mail service ran mailbfr -f then reconstruct -m. Then i restarted the server. Now the mail seems to be working and the /var/log/system.log file isn't going off the scale. I don't think everything is fixed however. Just waiting patiently for another memory leak. I will leave mysql and httpd off over night. That way when i come in tommorrow and find it's all ok. I can restart mysql and httpd and see if the problem comes back. Then i will know that's it my inefficient codes that is causing the problem?
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

2. UNIX for Dummies Questions & Answers

new to ldap, send email to a ou or group, and see a list from email client

hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version). i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010). a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies

3. Debian

[Lenny] I seem to have broken X...

I have been running Debian Lenny on this current PC for about a year. Since installation, I have had no major issues. Last night, I lazily tapped out: $ sudo aptitude update $ sudo aptitude upgrade I quickly scanned what it said would be changed and did not notice anything that may be... (12 Replies)
Discussion started by: Elric of Grans
12 Replies

4. UNIX and Linux Applications

pipe broken

hi i have a server, and i have a web site and i installed apache in the /usr/local/apache/logs i have a file and i have this problem (32)Broken pipe: core_output_filter: writing data to the network plz help me how i can resolve this plz it's urgent th (1 Reply)
Discussion started by: abir2
1 Replies

5. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

6. UNIX for Dummies Questions & Answers

broken pipe?

Hi there, I try to use: > find * | ls but it just gave me one level of ' ls '. and it said: > find * | ls dir1 dir2 f1 f2 f3 Broken Pipe > what is broken pipe? how can i fix it? thks Gusla (3 Replies)
Discussion started by: gusla
3 Replies

7. UNIX for Advanced & Expert Users

Broken

Ok i am running Linux, or rather was. I can not longer do anything. This was a dns server amoungst other things. It will no longer boot. I have used a startup disk, but how can i recover the OS? I need help and urgently. Please someone thanks (3 Replies)
Discussion started by: ollyparkhouse
3 Replies
Login or Register to Ask a Question