[Buildbot-commits] [Buildbot] #957: None.change_svc dereferenced in ConsoleStatusResource

Buildbot buildbot-devel at lists.sourceforge.net
Tue Aug 10 14:34:21 UTC 2010


#957: None.change_svc dereferenced in ConsoleStatusResource
--------------------+-------------------------------------------------------
Reporter:  mhagger  |       Owner:           
    Type:  defect   |      Status:  new      
Priority:  major    |   Milestone:  undecided
 Version:  0.8.1    |    Keywords:           
--------------------+-------------------------------------------------------
 Trying to view the "console" web page sometimes results in the following
 error:

 {{{
 2010-08-10 15:22:49+0200 [HTTPChannel,8,192.168.100.37] Unhandled Error
         Traceback (most recent call last):
           File "/usr/lib/python2.5/site-
 packages/twisted/protocols/basic.py", line 231, in dataReceived
             why = self.lineReceived(line)
           File "/usr/lib/python2.5/site-packages/twisted/web/http.py",
 line 1067, in lineReceived
             self.allContentReceived()
           File "/usr/lib/python2.5/site-packages/twisted/web/http.py",
 line 1108, in allContentReceived
             req.requestReceived(command, path, version)
           File "/usr/lib/python2.5/site-packages/twisted/web/http.py",
 line 626, in requestReceived
             self.process()
         --- <exception caught here> ---
           File "/usr/lib/python2.5/site-packages/twisted/web/server.py",
 line 150, in process
             self.render(resrc)
           File "/usr/lib/python2.5/site-packages/twisted/web/server.py",
 line 157, in render
             body = resrc.render(self)
           File "/usr/lib/python2.5/site-
 packages/buildbot/status/web/base.py", line 230, in render
             data = self.content(request, ctx)
           File "/usr/lib/python2.5/site-
 packages/buildbot/status/web/console.py", line 613, in content
             source = self.getChangeManager(request)
           File "/usr/lib/python2.5/site-
 packages/buildbot/status/web/console.py", line 96, in getChangeManager
             return request.site.buildbot_service.parent.change_svc
         exceptions.AttributeError: 'NoneType' object has no attribute
 'change_svc'
 }}}
 The error is not 100% reproducible.  Reloading the page soon after the
 last page load sometimes results in an error but more often in a correct
 console page (maybe error 10% of the time?), even when there is no
 activity in our repository.  It seems like errors are much more likely if
 there was a pause of more than 10 s or so since the page was last loaded.
 For example, the autorefresh of the console web page is quite likely to
 result in an error.

 The buildmaster is running on a relatively quiet Linux VM under a Xen
 hypervisor on a physical computer that is sometimes busy.  The repository
 is configured with two change sources: a SVNPoller and a PBChangeSource.
 If you need any more information about our configuration, please let me
 know.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/957>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list