[Toaster] [PATCH 0/4] Fixes for toaster script

Ed Bartosh ed.bartosh at linux.intel.com
Thu Oct 15 05:31:43 PDT 2015


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


More information about the toaster mailing list