I know this isn't the Twisted forum, but I've done some research and can't seem to find a good solution. So I'd thought I would try here.
Has anyone ran across these errors before while using Autobahn's websockets through Twisted? I'm using Python 2.7, twisted 13.2.0, and autobahn 0.8.8. The error basically kills any new connections that come through and forces me to have to restart the twisted service. Any help here would be appreciated. Maybe I should use gevent or something else rather than epoll?
2014-09-19 13:41:01-0400 [twisted.web.server.Site] Unhandled Error
Traceback (most recent call last):
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
why = selectable.doRead()
--- <exception caught here> ---
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/tcp.py", line 1069, in doRead
transport = self.transport(skt, protocol, addr, self, s, self.reactor)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/tcp.py", line 786, in __init__
self.startReading()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/abstract.py", line 434, in startReading
self.reactor.addReader(self)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 271, in addReader
EPOLLIN, EPOLLOUT)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 255, in _add
self._poller.modify(fd, flags)
exceptions.IOError: [Errno 2] No such file or directory
2014-09-19 16:53:31-0400 [HTTPChannel,226,192.168.135.156] Unhandled Error
Traceback (most recent call last):
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
why = selectable.doRead()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/tcp.py", line 215, in doRead
return self._dataReceived(data)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/tcp.py", line 221, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 88, in dataReceived
self._dataReceived(data)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1265, in _dataReceived
self.consumeData()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1281, in consumeData
while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1440, in processData
return self.processDataHybi()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1753, in processDataHybi
fr = self.onFrameEnd()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1853, in onFrameEnd
self.processControlFrame()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1910, in processControlFrame
if self.onCloseFrame(code, reasonRaw):
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 853, in onCloseFrame
self.sendCloseFrame(code = WebSocketProtocol.CLOSE_STATUS_CODE_NORMAL, isReply = True)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 2096, in sendCloseFrame
self.sendFrame(opcode = 8, payload = payload)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 2025, in sendFrame
self.sendData(raw, sync, chopsize)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1406, in sendData
self.transport.write(data)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/abstract.py", line 355, in write
self.startWriting()
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/abstract.py", line 442, in startWriting
self.reactor.addWriter(self)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 288, in addWriter
EPOLLOUT, EPOLLIN)
File "/home/ec2-user/local-python/lib/python2.7/site-packages/twisted/internet/epollreactor.py", line 257, in _add
self._poller.register(fd, flags)
exceptions.IOError: [Errno 17] File exists