[Buildbot-commits] [Buildbot] #2254: MailNotifier gives exception: 'NoneType' object has no attribute 'changes'

Buildbot trac trac at buildbot.net
Wed Jan 15 21:00:20 UTC 2014


#2254: MailNotifier gives exception: 'NoneType' object has no attribute 'changes'
-----------------------+---------------------
Reporter:  jaredgrubb  |       Owner:
    Type:  defect      |      Status:  closed
Priority:  major       |   Milestone:  0.8.6
 Version:  0.8.6       |  Resolution:  fixed
Keywords:              |
-----------------------+---------------------

Old description:

> I see this exception in my logs:
> 14046 2012-03-21 20:12:14-0700 [-] Starting factory
> <twisted.mail.smtp.ESMTPSenderFactory instance at 0x102c41a70>
> 14047 2012-03-21 20:12:14-0700 [-] Exception caught notifying
> <buildbot.status.mail.MailNotifier instance at 0x1038bdb00> of
> buildFinished event
> 14048 2012-03-21 20:12:14-0700 [-] Unhandled Error
> 14049     Traceback (most recent call last):
> 14050       File
> "/Users/buildbot/ctbot/src/master/buildbot/status/build.py", line 285, in
> buildFinished
> 14051         w.callback(self)
> 14052       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
> packages/twisted/internet/defer.py", line 368, in callback
> 14053         self._startRunCallbacks(result)
> 14054       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
> packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
> 14055         self._runCallbacks()
> 14056       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
> packages/twisted/internet/defer.py", line 551, in _runCallbacks
> 14057         current.result = callback(current.result, *args, **kw)
> 14058     --- <exception caught here> ---
> 14059       File
> "/Users/buildbot/ctbot/src/master/buildbot/status/builder.py", line 512,
> in _buildFinished
> 14060         w.buildFinished(name, s, results)
> 14061       File
> "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 435, in
> buildFinished
> 14062         return self.buildMessage(name, [build], results)
> 14063       File
> "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 654, in
> buildMessage
> 14064         d = self.useUsers(build)
> 14065       File
> "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 673, in
> useUsers
> 14066         d = self.parent.db.changes.getChangeUids(change.number)
> 14067     exceptions.AttributeError: 'NoneType' object has no attribute
> 'changes'
> 14068
>
> Sometimes when I see this exception, I get an email; but not always. How
> does this boject end up without a 'db'?

New description:

 I see this exception in my logs:
 14046 2012-03-21 20:12:14-0700 [-] Starting factory
 <twisted.mail.smtp.ESMTPSenderFactory instance at 0x102c41a70>
 14047 2012-03-21 20:12:14-0700 [-] Exception caught notifying
 <buildbot.status.mail.MailNotifier instance at 0x1038bdb00> of
 buildFinished event
 14048 2012-03-21 20:12:14-0700 [-] Unhandled Error
 14049     Traceback (most recent call last):
 14050       File
 "/Users/buildbot/ctbot/src/master/buildbot/status/build.py", line 285, in
 buildFinished
 14051         w.callback(self)
 14052       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 368, in callback
 14053         self._startRunCallbacks(result)
 14054       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 464, in _startRunCallbacks
 14055         self._runCallbacks()
 14056       File "/Users/buildbot/ctbot/sandbox/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 551, in _runCallbacks
 14057         current.result = callback(current.result, *args, **kw)
 14058     --- <exception caught here> ---
 14059       File
 "/Users/buildbot/ctbot/src/master/buildbot/status/builder.py", line 512,
 in _buildFinished
 14060         w.buildFinished(name, s, results)
 14061       File
 "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 435, in
 buildFinished
 14062         return self.buildMessage(name, [build], results)
 14063       File
 "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 654, in
 buildMessage
 14064         d = self.useUsers(build)
 14065       File
 "/Users/buildbot/ctbot/src/master/buildbot/status/mail.py", line 673, in
 useUsers
 14066         d = self.parent.db.changes.getChangeUids(change.number)
 14067     exceptions.AttributeError: 'NoneType' object has no attribute
 'changes'
 14068

 Sometimes when I see this exception, I get an email; but not always. How
 does this boject end up without a 'db'?

--

Comment (by dustin):

 worth noting - this is in 0.8.6p1, but not 0.8.6

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2254#comment:4>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list