[Twisted-Python] callback errors?
L. Daniel Burr
ldanielburr at mac.com
Thu Apr 20 11:33:13 MDT 2006
On Thu, 20 Apr 2006 14:12:10 -0400, Joseph Turian <turian at gmail.com> wrote:
> [Posting this to twisted and zope3 user, since I'm not sure which is
> more germane]
>
> I just install zope 3.2.0 on Gentoo.
> I then manually configured a zope instance in /var/lib/zope/zope-3.2.0/
> When I access the zope server at 192.168.0.100:8080, I get the
> following error messages on my terminal:
>
> What do these mean?
> How can I resolve them?
>
Those are errors, yes, and they are coming from twisted.web2. In fact,
though, they aren't really errors in the sense of "something is broken".
The problem is that web2 is raising an error rather than just returning a
"Not Modified" response code. It is harmless, although I do find it
annoying myself.
Not sure what the fix would be; perhaps one of the web2 devs could opine
on that?
Hope this helps,
L. Daniel Burr
> ------
> 2006-04-20T13:45:39 WARNING ZODB.FileStorage Ignoring index for
> /var/lib/zope/zope-3.2.0/var/Data.fs
> ------
> 2006-04-20T13:45:39 INFO root -- HTTP:localhost:8080 Server started.
> Hostname: localhost
> Port: 8080
> ------
> 2006-04-20T13:45:39 INFO root Startup time: 4.060 sec real, 4.070 sec CPU
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET
> /@@login.html?nextURL=http%3A//192.168.0.100%3A8080/%40%40index.html
> HTTP/1.1" 303 0 "http://192.168.0.100:8080/" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2"
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET /@@index.html
> HTTP/1.1" 200 4392 "http://192.168.0.100:8080/" "Mozilla/5.0 (Windows;
> U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2"
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET
> /@@/zope3_tablelayout.css HTTP/1.1" 304 0
> "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET /@@/zope3.js
> HTTP/1.1" 304 0 "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308
> Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET /@@/xmltree.js
> HTTP/1.1" 304 0 "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308
> Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
> 192.168.0.69 - - [20/Apr/2006:13:45:46 -0400] "GET /@@/zope3logo.gif
> HTTP/1.1" 304 0 "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308
> Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
> 192.168.0.69 - - [20/Apr/2006:13:45:47 -0400] "GET
> /@@singleBranchTree.xml HTTP/1.1" 200 289 "-" "Mozilla/5.0 (Windows;
> U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2"
> 192.168.0.69 - - [20/Apr/2006:13:45:47 -0400] "GET
> /@@/zope-app-folder-interfaces-IFolder-zmi_icon.gif HTTP/1.1" 304 0
> "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
> 192.168.0.69 - - [20/Apr/2006:13:45:47 -0400] "GET /@@/pl.gif
> HTTP/1.1" 304 0 "http://192.168.0.100:8080/@@index.html" "Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308
> Firefox/1.5.0.2"
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 353, in writeResponse
> response.stream.close()
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/log.py", line 41,
> in close
> self.stream.close()
> exceptions.AttributeError: 'NoneType' object has no attribute 'close'
> Traceback (most recent call last):
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 373, in _cbFinishRender
> d.callback(response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 229, in callback
> self._startRunCallbacks(result)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 294, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/internet/defer.py",
> line 307, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 363, in filterit
> return f(self, response, self._requestContext)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/server.py", line
> 43, in preconditionfilter
> newresponse = http.checkPreconditions(request, response)
> File "/usr/lib64/zope-3.2.0/lib/python/twisted/web2/http.py", line
> 198, in checkPreconditions
> raise HTTPError(NotModifiedResponse(response))
> twisted.web2.http.HTTPError:
>
>
>
>
> --
> http://www.cs.nyu.edu/~turian/
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
--
L. Daniel Burr
Chief Technology Officer
Illumaware Corporation
More information about the Twisted-Python
mailing list