[Buildbot-devel] buildbot 0.8.1rc2 master not starting completely

Andy Howell AndyHowell at austin.rr.com
Sun Jul 4 21:09:31 UTC 2010


John,

	Thanks. That pointed me in the right direction. Turns out it was my own stupidity. I
wanted the master in '~/Master', but didn't specify the basedir. I made the '~/Master'
directory an moved the files in there. What is didn't notice is the line:

basedir = r'/home/buildbot/'

in buildbot.tac. I added Master to that and it started up just fine. d'oh.

Thanks,

	Andy


On 07/04/2010 03:08 PM, John Ford wrote:
> I recently was running buildbot under PDB.  I did it by doing:
> 
> 1. Comment out log file setup in buildbot.tac:
>    #try:
>    #  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)
>    #except ImportError:
>    #  # probably not yet twisted 8.2.0 and beyond, can't set log yet
>    #  pass
> 2. Change into base directory of buildbot master
> 3. run 'twistd --no_save --nodaemon -y buildbot.tac --debug'
> 
> I tried using the --logfile=- option of twistd, but that didn't seem to have any effect.  I am not too sure what effect being in the debugger has to the twisted internals, but my guess is that it blocks the entire application until the debugger finishes.  I also found that the logging prefix is still applied to every pdb line which gave me sample output like:
> 
> 2010-07-04 13:04:33-0700 [-] Jumping into debugger for post-mortem of exception '__init__() got an unexpected keyword argument 'maxBuilds'':
> 2010-07-04 13:04:33-0700 [-] > /home/jhford/buildbot-0.8.0/master/master.cfg(42)<module>()
> 2010-07-04 13:04:33-0700 [-] -> c['slaves'].append(BuildSlave("bot1name", "bot1passwd", maxBuilds=1))
> list
> 2010-07-04 13:05:39-0700 [-] (Pdb)  37  	
> 2010-07-04 13:05:39-0700 [-]  38  	c['slavePortnum'] = 9989
> 2010-07-04 13:05:39-0700 [-]  39  	c['change_source'].append(PBChangeSource())
> 2010-07-04 13:05:39-0700 [-]  40  	for branch in branches.keys():
> 2010-07-04 13:05:39-0700 [-]  41  	    for slave in branches[branch]['slaves']:
> 2010-07-04 13:05:39-0700 [-]  42  ->	        c['slaves'].append(BuildSlave("bot1name", "bot1passwd", maxBuilds=1))
> 
> 
> Hope this helps,
> 
> John Ford
> 
> 
> ----- Original Message -----
> From: "Andy Howell" <AndyHowell at austin.rr.com>
> To: "Dustin J. Mitchell" <dustin at zmanda.com>
> Cc: buildbot-devel at lists.sourceforge.net
> Sent: Sunday, July 4, 2010 12:57:42 PM
> Subject: Re: [Buildbot-devel] buildbot 0.8.1rc2 master not starting	completely
> 
> On 07/04/2010 09:46 AM, Dustin J. Mitchell wrote:
>> On Sun, Jul 4, 2010 at 1:12 AM, Andy Howell <AndyHowell at austin.rr.com> wrote:
>>> When I start the master, its not opening any tcp ports. I tried configuring manhole as
>>> well, but still nothing. I don't see anything in the twisted.log file either.
>>
>> You don't see *anything*?  Then the buildmaster isn't starting..
>> perhaps check your initscript?
>>
>> Dustin
>>
> 
> Dustin,
> 
> 	I get:
> 
> buildbot start
> 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 'configuration update complete' to verify correct startup.
> 
> I tried running it under strace, but that didn't give me any clues.
> 
> I ran the test suite. All tests passed once I installed the mock support.
> 
> I tried running under the debugger, but didn't get very far. I'm don't know how
> effectively debug twisted apps.
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> 





More information about the devel mailing list