From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>
Cc: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [PATCH 0/4] Fixes for toaster script
Date: Thu, 15 Oct 2015 15:31:43 +0300 [thread overview]
Message-ID: <20151015123143.GA26199@linux.intel.com> (raw)
In-Reply-To: <D2453C80.682B0%belen.barros.pena@intel.com>
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
next prev parent reply other threads:[~2015-10-15 12:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 12:33 [PATCH 0/4] Fixes for toaster script Ed Bartosh
2015-10-14 12:33 ` [PATCH 1/4] toaster: use path to the script to guess config path Ed Bartosh
2015-10-14 12:33 ` [PATCH 2/4] toaster: get rid of SRCFILE Ed Bartosh
2015-10-14 12:33 ` [PATCH 3/4] toaster: set TOASTER_MANAGED variable Ed Bartosh
2015-10-14 12:33 ` [PATCH 4/4] toaster: exit or return depending on the mode Ed Bartosh
2015-10-14 13:10 ` [PATCH 0/4] Fixes for toaster script Barros Pena, Belen
2015-10-14 20:00 ` Brian Avery
2015-10-14 23:55 ` Brian Avery
2015-10-15 0:55 ` Brian Avery
2015-10-15 8:13 ` Ed Bartosh
2015-10-15 10:50 ` Barros Pena, Belen
2015-10-15 12:31 ` Ed Bartosh [this message]
2015-10-15 12:53 ` Barros Pena, Belen
2015-10-15 16:32 ` Brian Avery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151015123143.GA26199@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=belen.barros.pena@intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.