From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 572DBE00AC1; Thu, 15 Oct 2015 05:31:52 -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 * [192.55.52.88 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 mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D7831E00A49 for ; Thu, 15 Oct 2015 05:31:49 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 15 Oct 2015 05:31:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,685,1437462000"; d="scan'208";a="811665311" Received: from linux.intel.com ([10.23.219.25]) by fmsmga001.fm.intel.com with ESMTP; 15 Oct 2015 05:31:48 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id 0714B6A4083; Thu, 15 Oct 2015 05:30:48 -0700 (PDT) Date: Thu, 15 Oct 2015 15:31:43 +0300 From: Ed Bartosh To: "Barros Pena, Belen" Message-ID: <20151015123143.GA26199@linux.intel.com> References: <20151015081300.GA18320@linux.intel.com> MIME-Version: 1.0 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH 0/4] Fixes for toaster script X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 12:31:52 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 15, 2015 at 10:50:02AM +0000, Barros Pena, Belen wrote: > Everything works like a charm as long as I issue the commands from inside > the poky directory. I can source the environment script, then source the > toaster script and Toaster starts in analysis mode, although without > importing any toasterconf.json file (which is probably ok, since I don't > need any releases or layer information from the layer index if I am > running builds from cli). I can then do source toaster stop and toaster > stops. From a clean shell, I can then do bitbake/bin/toaster and start > Toaster in build mode. The meta-yocto/conf/toasterconf.json file is > imported, the data from the layer index is fetched, and I can happily run > a build. > > However, if I try to source the toaster script from outside the poky > directory, I get this error: > > Installed 0 object(s) from 0 fixture(s) > Starting webserver... > Webserver address: http://0.0.0.0:8000/ > The BBPATH variable is not set and bitbake did not find a > conf/bblayers.conf file in the expected location. > Maybe you accidentally invoked bitbake from the wrong directory? > DEBUG: Removed the following variables from the environment: LESSOPEN, > SSH_CLIENT, VIRTUALENVWRAPPER_SCRIPT, TOASTER_CONF, LANG, LANGUAGE, SHLVL, > QT_QPA_PLATFORMTHEME, _VIRTUALENVWRAPPER_API, XDG_RUNTIME_DIR, > SSH_SOCKS_SERVER, socks_proxy, TOASTER_DIR, XDG_SESSION_ID, _, > SSH_CONNECTION, LESSCLOSE, BUILDDIR, SSH_TTY, OLDPWD, MAIL, LS_COLORS > Bitbake server start failed > Failed to read bitbake.lock ([Errno 2] No such file or directory: > './bitbake.lock'), invalid port > [1]+ Terminated python $BBBASEDIR/lib/toaster/manage.py > runserver "0.0.0.0:$WEB_PORT" < /dev/null >> ${BUILDDIR}/toaster_web.log > 2>&1 > lsof: status error on bitbake.lock: No such file or directory > lsof 4.86 > latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ > latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ > latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man > usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s] > [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] > [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] > [names] > Use the ``-h'' option to get more help information. > Failed start. > > This is not a toaster issue if it's an issue at all. Bitbake should be run from build directory, otherwise it complains: $ . oe-init-build-env $ cd ../ $ bitbake zlib The BBPATH variable is not set and bitbake did not find a conf/bblayers.conf file in the expected location. Maybe you accidentally invoked bitbake from the wrong directory? DEBUG: Removed the following variables from the environment: NO_AT_BRIDGE, LS_COLORS, LIBGL_DEBUG, MINICOM, CSHEDIT, HOSTTYPE, LESSOPEN, SSH_CLIENT, CVS_RSH, LD_LIBRARY_PATH, INPUTRC, VIRTUALENVWRAPPER_SCRIPT, CPU, LANG, SHLVL, XNLSPATH, LESS, G_BROKEN_FILENAMES, HISTSIZE, LESS_ADVANCED_PREPROCESSOR, gopher_proxy, MANPATH, OSTYPE, _VIRTUALENVWRAPPER_API, PROFILEREAD, XKEYSYMDB, XDG_RUNTIME_DIR, NNTPSERVER, G_FILENAME_ENCODING, HOST, CONFIG_SITE, LESSKEY, XDG_CONFIG_DIRS, LS_OPTIONS, GPG_TTY, XDG_SESSION_ID, _, SSH_CONNECTION, LESSCLOSE, BUILDDIR, PYTHONSTARTUP, SSH_TTY, OLDPWD, HOSTNAME, WINDOWMANAGER, SSH_SENDS_LOCALE, XDG_DATA_DIRS, COLORTERM, MAIL, MACHTYPE, PAGER, MORE I'm pretty sure we shouldn't assume that user will change directory after running . oe-init-build-env -- Regards, Ed