[Toaster] localhostbecontroller error

Daniel Goguen daniel.goguen at dplwireless.com
Mon Mar 28 11:57:10 PDT 2016


Hi All,

I've successfully created a few .hddimg files that ran successfully on a
raspberry pi and would now like to use toaster for building and maintaining
builds.

>From the web GUI I'm able to select raspberrypi as the target machine,
which automatically adds the five layers:

    openembedded-core
    meta-oe
    meta-yocto-bsp
    meta-yocto
    meta-raspberrypi

I then select *rpi-basic-image* as the image recipe and click on 'build
selected recipes' but get the following error:

*Traceback (most recent call last):*
*  File
"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
line 60, in schedule*
*    bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
br.brvariable_set.all(), br.brtarget_set.all())*
*  File
"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 369, in triggerBuild*
*    bbctrl = self.getBBController()*
*  File "/home/daniel/poky/bitbake/lib/toaster/bldcontrol/bbcontroller.py",
line 166, in getBBController*
*    self.startBBServer()*
*  File
"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 122, in startBBServer*
*    cmdoutput = self._shellcmd(cmd)*
*  File
"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 69, in _shellcmd*
*    raise ShellCmdException(err)*

*ShellCmdException: command: bash -c "source
/home/daniel/poky/_toaster_clones/_http___git.yoctoproject.org_git_poky_jethro/oe-init-build-env
/home/daniel/poky/build 2>&1 >toaster_server.log && bitbake --read
/home/daniel/poky/build/conf/toaster-pre.conf --postread
/home/daniel/poky/build/conf/toaster.conf --server-only -t xmlrpc -B
0.0.0.0:0 <http://0.0.0.0:0> 2>&1 >>toaster_server.log " *

*I've noticed slight differences between the localhostbecontroller hosted
on the openembedded git repository and the one at git.yoctoproject. *

Within the localhostbecontroller.py file, the exception error occurs within
the _shellcmd:

   * def _shellcmd(self, command, cwd = None):*
*        if cwd is None:*
*            cwd = self.be.sourcedir*

*        logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command))*
*        p = subprocess.Popen(command, cwd = cwd, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)*
*        (out,err) = p.communicate()*
*        p.wait()*
*        if p.returncode:*
*            if len(err) == 0:*
*                err = "command: %s \n%s" % (command, out)*
*            else:*
*                err = "command: %s \n%s" % (command, err)*
*            logger.warn("localhostbecontroller: shellcmd error %s" % err)*
*            raise ShellCmdException(err)*
*        else:*
*            logger.debug("localhostbecontroller: shellcmd success")*
*            return out*

since I haven't been able to build successfully through toaster yet, has
anyone else faced the same issue?

thanks,

Daniel Goguen, B.Eng
R&D Specialist
(506) 869-3628 <%28506%29%20869-3622> (office)
(506) 850-8012 <%28506%29%20380-5086> (mobile)

-- 


(800) 561-8880 (toll-free)
(506) 847-2348 (fax)
www.dplwireless.com

------------------------------
This e-mail, and any attachments, contains information that is, or may be, 
confidential and proprietary. If you are not the intended recipient, please 
notify the sender that you have received this communication in error, and 
delete it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20160328/3fd99526/attachment.html>


More information about the toaster mailing list