[Buildbot-devel] Still having notification problems after updating to latest

Bob Hood bhood2 at comcast.net
Wed Nov 20 22:09:42 UTC 2013


I ran "buildbot sendchange" manually from the command line using all the
values that the hgbuildbot.py changehook sends through Twisted:

    buildbot sendchange --master localhost:9911 --vc hg --branch default
    --revision 20d01ebcb8a89777b992e472de42ac02a39cb966 --comments "Testing
    Buildbot/Mercurial integration." --who bob --auth xxxxxx:xxxxxx
    --repository hg/trunk --property is_merge:False prebuild.py

And it generated this error:

    change not sent:
    Traceback (most recent call last):
      File
    "/usr/local/lib/python2.7/dist-packages/buildbot-0.8.8-py2.7.egg/buildbot/scripts/sendchange.py",
    line 47, in sendchange
        codebase=codebase)
    RemoteError: (IntegrityError) column identifier is not unique u'INSERT
    INTO users (identifier) VALUES (?)' (u'bob',)


What would be causing that?


On 11/18/2013 3:33 PM, Bob Hood wrote:
> I reported this issue a while back, and the consensus was that I was using
> versions of things that were not compatible.  At the time I could not update
> (we were in the middle of a development cycle), but I have now updated things
> related to Buildbot as previously recommended.  Currently:
>
> - We are using Python 2.7.2
> - We are running Mercurial 2.5.2 through Apache2 using hgweb.
> - We are using Buildbot 0.8.8, with "easy_install"s of:
>     - zope.interface 4.0.5
>     - Twisted 13.2.0
>     - SQLAlchemy 0.7.10 (recommended for 0.8.8)
>     - sqlalchemy_migrate 0.7.1
>
> Despite this, we continue to get an issue with Twisted when pushing changesets.  The Mercurial server is using the Buildbot-provided change hook in each repository's .hg/hgrc file.  I have two independent repositories, each using a different port for notifications.  Here is one:
>
>   [hooks]
>   changegroup.buildbot = python:buildbot.changes.hgbuildbot.hook
>   ...
>   [hgbuildbot]
>   master = localhost:9911
>   auth = xxxxx:xxxxxx
>   branchtype = inrepo
>   fork = True
>
> In my master.cfg, I have a PBChangeSource for each repo:
>
>   ...
>   c2 = PBChangeSource(port=9911, user='xxxxxx', passwd='xxxxxx')
>   c3 = PBChangeSource(port=9912, user='xxxxxx', passwd='xxxxxx')
>
>   c['change_source'] = [c3, c2, c1]
>   ...
>
> We STILL have spotty notification with this most-current configuration, and we are getting this error in Twisted (which is probably at fault) when pushing changesets:
>
> ...
> searching for changes
> remote: adding changesets
> remote: adding manifests
> remote: adding file changes
> remote: added 1 changesets with 2 changes to 2 files
> remote: Unhandled Error
> remote: Traceback (most recent call last):
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
> line 416, in fireEvent
> remote:     DeferredList(beforeResults).addCallback(self._continueFiring)
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
> line 306, in addCallback
> remote:     callbackKeywords=kw)
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
> line 295, in addCallbacks
> remote:     self._runCallbacks()
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
> line 577, in _runCallbacks
> remote:     current.result = callback(current.result, *args, **kw)
> remote: --- <exception caught here> ---
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
> line 429, in _continueFiring
> remote:     callable(*args, **kwargs)
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/base.py",
> line 1187, in _reallyStartRunning
> remote:     self._handleSignals()
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py",
> line 306, in _handleSignals
> remote:     self._childWaker.install()
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py",
> line 212, in install
> remote:     _signals.installHandler(self.o)
> remote:   File
> "/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/_signals.py",
> line 60, in installHandler
> remote:     return signal.set_wakeup_fd(fd)
> remote: exceptions.ValueError: set_wakeup_fd only works in main thread
> ...
>
> Should I back down the version of Twisted to something else, or is there some
> other root cause here?
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing 
> conversations that shape the rapidly evolving mobile landscape. Sign up now. 
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20131120/e77b6376/attachment.html>


More information about the devel mailing list