Bug 7283 - Toaster fails to start in managed mode due to traceback
Summary: Toaster fails to start in managed mode due to traceback
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: High critical
Target Milestone: 1.8 M3
Assignee: Alexandru Damian
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-02-04 12:20 UTC by Ionut Chisanovici
Modified: 2015-02-18 12:37 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2015-02-04 12:20:32 UTC
Hi,

For 1.8 M2 RC2, commit:22c38e2d8a058619e3d05534b5e830b750aa4241, toaster fails to start due to traceback which occurs right after toaster is asking which layer directory to use for loading the configurations (I used the default one, the one suggested by toaster so just hit ENTER):

------------------------------------------------------------------
Toaster needs to know in which directory it should check out the layers that will be needed for your builds.
 Toaster suggests "/home/ionut/work/poky_1.8". If you select this directory, a layer like "meta-yocto" will end up in "/home/ionut/work/poky_1.8/meta-yocto".
 Press Enter to select "/home/ionut/work/poky_1.8" or type the full path to a different directory: 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/ionut/work/poky_1.8/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py", line 141, in handle
    while (_verify_be()):
  File "/home/ionut/work/poky_1.8/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py", line 103, in _verify_be
    be.builddir = raw_input("\nToaster needs to know where is your build directory.\n The build directory is where all the artifacts created by your builds will be stored. Type the full path to the directory (for example: \" %s/build\")" % os.environment['HOME'])
AttributeError: 'module' object has no attribute 'environment'
--------------------------------------------------------------

Also, the suggested directory is confusing for the end user as the meta-yocto directory is a sub folder of the poky folder and not for the top folder where the poky was cloned:

-----------------------------
Toaster suggests "/home/ionut/work/poky_1.8". If you select this directory, a layer like "meta-yocto" will end up in "/home/ionut/work/poky_1.8/meta-yocto".
 Press Enter to select "/home/ionut/work/poky_1.8" or type the full path to a different directory:
-----------------------------

For me: /home/ionut/work/poky_1.8 is the top folder, where the poky was cloned
and the correct meta-yocto location should be: /home/ionut/work/poky_1.8/poky/meta-yocto

Cheers,
Ionut C
Comment 1 Alexandru Damian 2015-02-05 12:15:08 UTC
Pushed for review on 

poky-contrib:adamian/20150204-bug-7283
Comment 2 Alexandru Damian 2015-02-11 11:50:03 UTC
Merged in master.
Comment 3 Mihail Stanciu 2015-02-18 12:37:46 UTC
Verified on master: 2f8e5a8be1b2baf1aa9cf275f74a906b7597a45b