<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7283</bug_id>
          
          <creation_ts>2015-02-04 12:20:32 +0000</creation_ts>
          <short_desc>Toaster fails to start in managed mode due to traceback</short_desc>
          <delta_ts>2015-02-18 12:37:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48544</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2015-02-04 12:20:32 +0000</bug_when>
    <thetext>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 &quot;/home/ionut/work/poky_1.8&quot;. If you select this directory, a layer like &quot;meta-yocto&quot; will end up in &quot;/home/ionut/work/poky_1.8/meta-yocto&quot;.
 Press Enter to select &quot;/home/ionut/work/poky_1.8&quot; or type the full path to a different directory: 
Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/base.py&quot;, line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/core/management/base.py&quot;, line 255, in execute
    output = self.handle(*args, **options)
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 141, in handle
    while (_verify_be()):
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 103, in _verify_be
    be.builddir = raw_input(&quot;\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: \&quot; %s/build\&quot;)&quot; % os.environment[&apos;HOME&apos;])
AttributeError: &apos;module&apos; object has no attribute &apos;environment&apos;
--------------------------------------------------------------

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 &quot;/home/ionut/work/poky_1.8&quot;. If you select this directory, a layer like &quot;meta-yocto&quot; will end up in &quot;/home/ionut/work/poky_1.8/meta-yocto&quot;.
 Press Enter to select &quot;/home/ionut/work/poky_1.8&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48578</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-05 12:15:08 +0000</bug_when>
    <thetext>Pushed for review on 

poky-contrib:adamian/20150204-bug-7283</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48715</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-11 11:50:03 +0000</bug_when>
    <thetext>Merged in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48904</commentid>
    <comment_count>3</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-18 12:37:46 +0000</bug_when>
    <thetext>Verified on master: 2f8e5a8be1b2baf1aa9cf275f74a906b7597a45b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>