Bug 8240

Summary: Toaster builds fail to start
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Ed Bartosh <eduard.bartosh>
Status: VERIFIED FIXED QA Contact: Cristina Agurida <cristina-danielax.agurida>
Severity: major    
Priority: Medium+ CC: belen.barros.pena, cristina-danielax.agurida, eduard.bartosh, jessica.zhang, richard.purdie, stanciux.mihail
Version: 1.8   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2015-09-02 10:05:59 UTC
Found in master:71b0568fa43285f0946fae93fb43cea5f3bbecec

Toaster builds do not start. To reproduce:

1. Create a Toaster project (I've tried with master and the local releases)
2. Start a build

this is the error I get:

Traceback (most recent call last):
  File "/home/yocto/master/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 59, in schedule
    bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
  File "/home/yocto/master/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 324, in triggerBuild
    bbctrl = self.getBBController()
  File "/home/yocto/master/bitbake/lib/toaster/bldcontrol/bbcontroller.py", line 166, in getBBController
    self.startBBServer()
  File "/home/yocto/master/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 153, in startBBServer
    raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 5 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
BuildSetupException: localhostbecontroller: Bitbake server did not start in 5 seconds, aborting (Error: '' 'Bitbake server address: 0.0.0.0, server port: 49664
Comment 1 Ed Bartosh 2015-09-02 13:00:24 UTC
Should be fixed in ed/toaster/8240
Comment 2 Belen Barros Pena 2015-09-02 15:47:29 UTC
(In reply to comment #1)
> Should be fixed in ed/toaster/8240

Thanks, Ed. Could you submit to the toaster mailing list when you have a chance?
Comment 4 Richard Purdie 2015-09-09 09:18:50 UTC
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=71b0568fa43285f0946fae93fb43cea5f3bbecec contains http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cd61c1a6c5c4b27cfda837ec955a97c95dfa20c3 and if toaster is using the environment file, the chmod -R may well be the cause of the timeout. The good news is this was later fixed in master already.
Comment 6 Ed Bartosh 2015-09-09 10:50:42 UTC
This bug is not reproducible on master. However, I'd suggest to take my patch as current timeout is smallest possible. That means that on less powered systems current code can still break.
Comment 8 Cristina Agurida 2015-10-27 15:21:14 UTC
Verified on master: 505a82673ac2487df5ea343a6422c2fc47018831