Too many open files

Adam Kramer akramer at google.com
Mon Aug 27 00:32:31 EDT 2007


I believe this is due to a bug in the quota code that doesn't close
the quota file after deleting a mailbox. I consistently get this
behavior trying to delete a user that has more than ~250 mailboxes.
(ulimit -f is 255)

If you delete the user's quota first you shouldn't get this error, at
least if you're running into the same bug I've seen. Assuming you've
patched cyrus to allow quota roots to be removed, "sq user.username
remove 0" will delete the quota root.

I spent a couple hours trying to track the bug down to no avail.



On 8/25/07, Alain Spineux <aspineux at gmail.com> wrote:
> Maybe this is because your are accessing multiple mailbox through the same
> and unique connection.
> At each mailbox it should open some files related to the mailbox and never
> close them !
> The use is to connect to a unique mailbox and read mails and browse
> subfolders, and then always use the same related files.
>
> As a workaround you could try to logout and login before to switch mailbox.
>
>
> Regards
>
>
>
> On 8/25/07, Dale Ghent < daleg at umbc.edu> wrote:
> > On Aug 24, 2007, at 11:49 AM, Rob McMahon wrote:
> >
> > > Cyrus-2.2.13 (yes, I know it's getting on a bit).  Solaris 10 SPARC,
> > > around 115,000 mailboxes.
> > >
> > > After deleting just a few, I start getting errors like "Must login
> > > first", "System I/O Error" (sorry, I haven't got the exact messages to
> > > cut & paste).  Looking in the logs I see:
> >
> > We (Rob Banz and I) are seeing the same thing on Solaris 10 x86. We
> > started our mass mail migration this past monday and a number of user
> > migrations have failed due to the same error.
> >
> > We haven't found the cause yet, but to get around it for now we
> > cranked up the per-process FD limit and limited the number of
> > requests a imapd is allowed to handle. It looks like a file
> > descriptor leak of some sort. So far that has been a decent work-around.
> >
> > /dale
> >
> > --
> > Dale Ghent
> > Specialist, Storage and UNIX Systems
> > UMBC - Office of Information Technology
> > ECS 201 - x51705
> >
> >
> >
> > ----
> > Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> > List Archives/Info:
> http://asg.web.cmu.edu/cyrus/mailing-list.html
> >
>
>
>
> --
> Alain Spineux
> aspineux gmail com
> May the sources be with you
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info:
> http://asg.web.cmu.edu/cyrus/mailing-list.html
>


-- 
-Adam


More information about the Info-cyrus mailing list