Cyberwizzard Apprentice
Joined: 02 Apr 2004 Posts: 244 Location: Norway
|
Posted: Wed Jun 02, 2004 2:26 am Post subject: Cyrus IMAP: ctl_cyrusdb hangs?? |
|
|
Hi everyone. I'm running Cyrus on my server and so far is running fine... until now that is. I noticed that it took longer and longer every time to reload the imap server. I found this in a mail archive somewhere and it seemed to work:
Quote: | Hi Sam,
Sam Smith wrote:
> The upgrade seemed to go OK, but when I start the master process it
> starts ctl_cyrusdb. I get the following messages:
>
> Dec 17 14:16:05 newimap.ece.gatech.edu master[9932]: [ID 392559
> local6.debug] about to exec /usr/cyrus/bin/ctl_cyrusdb
> Dec 17 14:16:05 newimap.ece.gatech.edu ctl_cyrusdb[9932]: [ID 702911
> local6.notice] recovering cyrus databases
>
> and that's all. ctl_cyrusdb never seems to finish recovering, imapd
> never starts, etc.
>
> We do have over 100G of email... Should ctl_cyrusdb take hours?
Take a look at your top output, and see if any IO or CPU activity is
happening. If not, take a truss (Solaris) or strace (?) (Linux) of the
ctl_cyrusdb process. Something that has been plagueing me is that
ctl_cyrusdb runs out of filedescriptor because it opens the same file
about 250 times. So if your truss output shows poll(), and EMFILE, that
might be your problem.
If, and only if that is the case, you might be helped by removing the
deliver-db, the tls_sessions db and all the snapshots. However, make
sure you make backups first! I haven't yet had this problem again on
2.1.16, but I did the first time I started 2.1.16 using my 'old' databases.
Does anyone else experience the 'out of file descriptors (EMFILE)' problem?
Regards, Paul Boven. |
My problem is that I don't want to delete all those files every time since they cause loadsa errors while loading cyrus....
This is the actual problem:
Quote: | Jun 2 04:02:09 sportlaan master[4230]: setrlimit: Unable to set file descriptors limit to -1: Operation not permitted |
Now my question is, what is cyrus trying to do here and how do i fix it?? |
|