web.Server Traceback (most recent call last)

web.Server Traceback (most recent call last):

exceptions.RuntimeError: cannot register two producers

/usr/lib/python2.2/site-packages/twisted/web/server.py, line 159 in process
157 try:
158 resrc = self.site.getResourceFor(self)
159 self.render(resrc)
160 except:
Self

site | twisted.web.server.Site instance @ 0x8437d2c <twisted.web.server.Site instance at 0x8437d2c>

Locals

resrc | twisted.web.static.File instance @ 0x8524324 FilePath('/var/www/WebSite/twistedmatrix.com/index')
self | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>

/usr/lib/python2.2/site-packages/twisted/web/server.py, line 166 in render
164 def render(self, resrc):
165 try:
166 body = resrc.render(self)
167 except UnsupportedMethod, e:
Locals

resrc | twisted.web.static.File instance @ 0x8524324 FilePath('/var/www/WebSite/twistedmatrix.com/index')
self | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>

Globals

UnsupportedMethod | `<class twisted.web.server.UnsupportedMethod at 0x83f8f24>`

/usr/lib/python2.2/site-packages/twisted/web/static.py, line 365 in render
363
364 # return data
365 FileTransfer(f, size, request)
366 # and make sure the connection doesn't get closed
Locals

f | `<open file '/var/www/WebSite/twistedmatrix.com/index', mode 'rb' at 0x857d4d8>`
request | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>
size | `5457L`

Globals

FileTransfer | `<class twisted.web.static.FileTransfer at 0x841a96c>`

/usr/lib/python2.2/site-packages/twisted/web/static.py, line 416 in __init__
414 self.request = request
415 self.written = self.file.tell()
416 request.registerProducer(self, 0)
417
Self

written | `0L`
request | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>
file | `<open file '/var/www/WebSite/twistedmatrix.com/index', mode 'rb' at 0x857d4d8>`

Locals

self | twisted.web.static.FileTransfer instance @ 0x8641a74 <twisted.web.static.FileTransfer instance at 0x8641a74>
request | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>
file | `<open file '/var/www/WebSite/twistedmatrix.com/index', mode 'rb' at 0x857d4d8>`

/usr/lib/python2.2/site-packages/twisted/protocols/http.py, line 573 in registerProducer
571 producer.pauseProducing()
572 else:
573 self.transport.registerProducer(producer, streaming)
574
Self

transport | twisted.internet.tcp.Server instance @ 0x857dda4 <HTTPChannel #316 on 80>

Locals

streaming | `0`
self | twisted.web.server.Request instance @ 0x85be73c <GET / HTTP/1.1>
producer | twisted.web.static.FileTransfer instance @ 0x8641a74 <twisted.web.static.FileTransfer instance at 0x8641a74>

/usr/lib/python2.2/site-packages/twisted/internet/abstract.py, line 234 in registerProducer
232 """
233 if self.producer is not None:
234 raise RuntimeError("cannot register two producers")
235 self.producer = producer
Self

producer | twisted.web.server._RemoteProducerWrapper instance @ 0x8528a64 <twisted.web.server._RemoteProducerWrapper instance at 0x8528a64>

Locals

self | twisted.internet.tcp.Server instance @ 0x857dda4 <HTTPChannel #316 on 80>
producer | twisted.web.static.FileTransfer instance @ 0x8641a74 <twisted.web.static.FileTransfer instance at 0x8641a74>

exceptions.RuntimeError: cannot register two producers