[users at bb.net] Buildbot failing to start

Chris Spencer chrisspen at gmail.com
Tue Dec 22 09:49:40 UTC 2015


Yes, the buildbot.tac was generated. The contents are:

    import os

    from twisted.application import service
    from buildbot.master import BuildMaster

    basedir = '/usr/local/myproject/src/buildbot/master'
    rotateLength = 10000000
    maxRotatedFiles = 10
    configfile = 'master.cfg'

    # Default umask for server
    umask = None

    # if this is a relocatable tac file, get the directory containing the
TAC
    if basedir == '.':
        import os.path
        basedir = os.path.abspath(os.path.dirname(__file__))

    # note: this line is matched against to check that this is a buildmaster
    # directory; do not edit it.
    application = service.Application('buildmaster')
    from twisted.python.logfile import LogFile
    from twisted.python.log import ILogObserver, FileLogObserver
    logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"),
rotateLength=rotateLength,
                                    maxRotatedFiles=maxRotatedFiles)
    application.setComponent(ILogObserver, FileLogObserver(logfile).emit)

    m = BuildMaster(basedir, configfile, umask)
    m.setServiceParent(application)
    m.log_rotation.rotateLength = rotateLength
    m.log_rotation.maxRotatedFiles = maxRotatedFiles

I'm using Buildbot version 0.8.12.

When that didn't work, I tried using the version in the repo, which I
believe is 0.8.8-1.1 on Ubuntu 14. That didn't work either, but at least it
gave me an error message in its twistd.log complaining about it being
unable to import plugins. I'm assuming the master/slave code generated with
0.8.12 isn't compatible with 0.8.8.


On Mon, Dec 21, 2015 at 4:51 PM, Vasily <just.one.man at yandex.ru> wrote:

> Hi Chris,
>
> First thing to check when such message appears is whether buildbot.tac
> file is present in your master directory.
>
> P.S. What Buildbot version are you using?
>
> Thanks,
> Vasily
> 21 дек. 2015 г. 23:57 пользователь "Chris Spencer" <chrisspen at gmail.com>
> написал:
>
>> I ran through the steps in the tutorial (
>> http://docs.buildbot.net/current/tutorial/firstrun.html)
>> and was able to get Buildbot running.
>>
>> However, when I rebuilt the virtualenv on an Ubuntu VM and rsynced up my
>> custom configuration folder, buildbot appears unable to start.
>>
>> If I activate my virtualenv and then run `buildbot start master` all I
>> get is:
>>
>>     Following twistd.log until startup finished..
>>
>>     The buildmaster took more than 10 seconds to start, so we were unable
>> to
>>     confirm that it started correctly. Please 'tail twistd.log' and look
>> for a
>>     line that says 'BuildMaster is Running' to verify correct startup.
>>
>> A twistd.log file is generated, but nothing is ever written to it and `ps
>> aux|grep -i twist` shows nothing running.
>>
>> How do I diagnose this problem? How do I run buildbot in non-daemon mode
>> so I can see whatever error it's running into?
>>
>> _______________________________________________
>> users mailing list
>> users at buildbot.net
>> https://lists.buildbot.net/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151222/8a1ed6cd/attachment.html>


More information about the users mailing list