From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 930CBE00C51; Wed, 30 Mar 2016 06:03:53 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NORMAL_HTTP_TO_IP, RCVD_IN_DNSWL_HI,WEIRD_PORT autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * 0.0 NORMAL_HTTP_TO_IP URI: URI host has a public dotted-decimal IPv4 * address * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 21508E00C51 for ; Wed, 30 Mar 2016 06:03:45 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 30 Mar 2016 06:03:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,416,1455004800"; d="scan'208";a="774658692" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga003.jf.intel.com with ESMTP; 30 Mar 2016 06:03:45 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 30 Mar 2016 14:03:42 +0100 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.10]) by irsmsx111.ger.corp.intel.com ([169.254.2.127]) with mapi id 14.03.0248.002; Wed, 30 Mar 2016 14:03:42 +0100 From: "Barros Pena, Belen" To: Daniel Goguen , "toaster@yoctoproject.org" Thread-Topic: [Toaster] localhostbecontroller error Thread-Index: AQHRiSPMSOHwbawwbkmSBsm9+lu4SJ9wtlyAgAFAhoA= Date: Wed, 30 Mar 2016 13:03:42 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.2.160219 x-originating-ip: [10.237.224.30] MIME-Version: 1.0 Subject: Re: localhostbecontroller error X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 13:03:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 29/03/2016 19:56, "toaster-bounces@yoctoproject.org on behalf of Daniel Goguen" wrote: >while the above error seems intermittent and still looking into, I've >managed to launch the bitbake server from Toaster (and had before) but >since the shell displays the following message: >"2016-03-29 15:49:53,830 DEBUG localhostbecontroller: Build launched, >exiting. Follow build logs at /home/daniel/poky/build/toaster_ui.log" > > >at the same time that the Toaster GUI was not updating the progress bar I >thought something was wrong and closed the program before there was >anything in the log file, but eventually I let toaster run longer and >discovered that the image files were being > generated anyway and successfully ran a test image in QEMU. At first I >thought it could be related to running a build whose tasks were already >created (second time running a successful build) but I then tried adding >a new layer to the build and am seeing the > same problem with the GUI progress bar. Anyone else experience this >issue? Hi Daniel, Yes, this is a known problem I'm afraid https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D8328 If you are using the Yocto Project Jethro release, the bars won't update anywhere. In the master branch the progress bars are updating in the page showing project builds, but they don't update in the page showing all builds.=20 Hopefully we'll get to fix it properly at some point. Cheers Bel=E9n > > >thanks, >Daniel > > > >Daniel Goguen, B.Eng > >R&D Specialist >(506) 869-3628 (office) > >(506) 850-8012 (mobile) > > > > > > > > > > > > > > > > > > > > >On Mon, Mar 28, 2016 at 3:57 PM, Daniel Goguen > wrote: > >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=20 >rpi-basic-image as the image recipe and click on 'build selected recipes' >but get the following error: > > >Traceback (most recent call last): > File=20 >"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/management/commands/runb >uilds.py", line 60, in schedule > bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), >br.brvariable_set.all(), br.brtarget_set.all()) > File=20 >"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >", line 369, in triggerBuild > bbctrl =3D self.getBBController() > File=20 >"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/bbcontroller.py", line >166, in getBBController > self.startBBServer() > File=20 >"/home/daniel/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py >", line 122, in startBBServer > cmdoutput =3D self._shellcmd(cmd) > File=20 >"/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_je >thro/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=20 >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 =3D None): > if cwd is None: > cwd =3D self.be.sourcedir > > > logger.debug("lbc_shellcmmd: (%s) %s" % (cwd, command)) > p =3D subprocess.Popen(command, cwd =3D cwd, shell=3DTrue, >stdout=3Dsubprocess.PIPE, stderr=3Dsubprocess.PIPE) > (out,err) =3D p.communicate() > p.wait() > if p.returncode: > if len(err) =3D=3D 0: > err =3D "command: %s \n%s" % (command, out) > else: > err =3D "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 (office) > >(506) 850-8012 (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.