"Too many open files" after two week

Bug #730699 reported by Pior Bastida on 2011-03-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

After two weeks, zeya.py begins to refuse request of static files and sound file.

Exception "OSError: [Errno 24] Too many open files" are thrown each time.

pior@gin:~$ lsof -p 15116 | grep FIFO | wc -l
pior@gin:~$ ulimit -n

Exception happened during processing of request from ('::ffff:', 44375, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
  File "./zeya.py", line 138, in do_GET
  File "./zeya.py", line 203, in serve_content
    backend.get_content(key, self.wfile, bitrate)
  File "/home/pior/dev/zeya/backends.py", line 196, in get_content
    filename_to_stream(filename, out_stream, bitrate, buffered)
  File "/home/pior/dev/zeya/backends.py", line 80, in filename_to_stream
    p1 = subprocess.Popen(decode_command, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 626, in __init__
    errread, errwrite) = self._get_handles(stdin, stdout, stderr)
  File "/usr/lib/python2.6/subprocess.py", line 978, in _get_handles
    c2pread, c2pwrite = os.pipe()
OSError: [Errno 24] Too many open files

Phil Sung (psung) on 2011-06-21
Changed in zeya:
status: New → Confirmed
importance: Undecided → Medium
Phil Sung (psung) wrote :

Thanks for bringing this to my attention. Can you confirm that commit 1910c77 makes Zeya stop leaking open files?

Changed in zeya:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers