Modify

Opened 17 years ago

Closed 16 years ago

#1886 closed defect (worksforme)

AccountManager plugin is leaking files/file descriptors

Reported by: tomek@… Owned by: Matt Good
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 (0)

Change History (2)

comment:1 Changed 17 years ago by Matt Good

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?

comment:2 Changed 16 years ago by John Hampton

Resolution: worksforme
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.