Ticket #1886 (closed defect: worksforme)

Opened 1 year ago

Last modified 1 month ago

AccountManager plugin is leaking files/file descriptors

Reported by: tomek@xiaoka.com Assigned to: mgood
Priority: normal Component: AccountManagerPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description

My Trac installation stopped working with

SubversionException: ("Can't open file '/var/svn/jabberd2/format': Too many open files", 24)

When I investigated it, i've checked the file descriptor list and where it points to:

amenite ~ # ps aux | grep jabberd2
apache   19297  0.5  5.3 109736 48332 ?        S    Aug01  10:02 /usr/bin/python /var/www/jabberd2.xiaoka.com/cgi-bin/trac.fcgi
amenite ~ # ls /proc/19297/fd/ -l
lrwx------ 1 apache apache 64 sie  2 15:41 0 -> socket:[15923181]
l-wx------ 1 apache apache 64 sie  2 15:41 1 -> /var/log/apache2/error_log
lrwx------ 1 apache apache 64 sie  2 15:41 10 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmptRSMhp.
$extract
lrwx------ 1 apache apache 64 sie  2 15:41 100 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpd45_PP
.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1000 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpIEwjO
K.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1001 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpmoNDT
N.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1002 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpalanp
E.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1003 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmphCcXN
r.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1004 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmp4AZKz
W.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1005 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpZBBxO
3.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1006 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpGI-RM
V.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1007 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpCbY2N
R.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1008 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpPeQHo
W.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 1009 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmpVAMXU
F.$extract
lrwx------ 1 apache apache 64 sie  2 15:41 101 -> /var/www/jabberd2.xiaoka.com/tmp/TracAccountManager-0.1.3dev_r2171-py2.4.egg-tmp/acct_mgr/templates/tmp7Gjjq0
.$extract
[...]

and so on other ~1000 open files like this.

It breaks the perfectly running installation... :-(

Attachments

Change History

08/05/07 15:50:18 changed by mgood

This doesn't look like it's specific to this plugin, but something broken in how the template files are being extracted from the Egg. It's possible Trac isn't closing them properly, or this is something broken in setuptools itself. Check that you're running the latest setuptools version. Can you bring this up on the t:MailingList to see if anyone else has seen this behavior?

10/30/08 00:01:47 changed by pacopablo

  • status changed from new to closed.
  • resolution set to worksforme.

closing as won't fix due to inactivity, lack of response, and inability to duplicate the issue.


Add/Change #1886 (AccountManager plugin is leaking files/file descriptors)




Change Properties
Action