Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12524 closed defect (fixed)

IOError: [Errno 24] Too many open files

Reported by: Ryan J Ollos Owned by: Jun Omae
Priority: normal Milestone: 1.0.12
Component: plugin/git Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Fixed IOError: Too many open files by closing pipes after communicating with Git process.

API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Discussed in trac-users:l7xsbecKhVA/jpIkzWExCgAJ, errors like the following were seen:

2016-06-28 20:40:23,400 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/ticket/3048'">, referrer '<obfuscated>'
Traceback (most recent call last):
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 562, in _dispatch_request
    dispatcher.dispatch(req)
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/web/main.py", line 249, in dispatch
    resp = chosen_handler.process_request(req)
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 181, in process_request
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 533, in _process_ticket_request
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/ticket/model.py", line 71, in __init__
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/ticket/api.py", line 281, in get_ticket_fields
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/util/translation.py", line 202, in gettext
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/util/translation.py", line 182, in isactive
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/util/translation.py", line 148, in activate
  File "<obfuscated>/private/pve/local/lib/python2.7/site-packages/babel/support.py", line 562, in load
IOError: [Errno 24] Too many open files: '<obfuscated>/private/pve/local/lib/python2.7/site-packages/trac/locale/en_US/LC_MESSAGES/messages.mo'

The attached patch has been proposed to fix the issue.

Attachments (1)

close-proc-pipes.diff (4.1 KB ) - added by Ryan J Ollos 8 years ago.

Download all attachments as: .zip

Change History (4)

by Ryan J Ollos, 8 years ago

Attachment: close-proc-pipes.diff added

comment:1 by Ryan J Ollos, 8 years ago

Description: modified (diff)
Owner: set to Ryan J Ollos
Status: newassigned

comment:2 by Ryan J Ollos, 8 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in r14927, merged to 1.2-stable in r14928, merged to trunk in r14929.

comment:3 by Ryan J Ollos, 8 years ago

Owner: changed from Ryan J Ollos to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.