<?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>8026</bug_id>
          
          <creation_ts>2015-07-17 12:51:16 +0000</creation_ts>
          <short_desc>Toaster start up directories incorrect</short_desc>
          <delta_ts>2016-02-08 11:55:04 +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>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Wood">michael.g.wood</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>52461</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-07-17 12:51:16 +0000</bug_when>
    <thetext>If you try to start toaster from bitbake the directory guessing goes wrong, it looks like it&apos;s using a fixed number of directories to traverse up the directory structure, which will be wrong depending on where you have toaster.

(venv)michael@draco:~/dev/yocto/bitbake(1.26 *)$ ./bin/toaster
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_admin_log
Creating table south_migrationhistory

You just installed Django&apos;s auth system, which means you don&apos;t have any superusers defined.
Would you like to create one now? (yes/no): no
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 &gt; django.contrib.auth
 &gt; django.contrib.contenttypes
 &gt; django.contrib.messages
 &gt; django.contrib.sessions
 &gt; django.contrib.admin
 &gt; django.contrib.staticfiles
 &gt; django.contrib.humanize
 &gt; south

Not synced (use migrations):
 - orm
 - bldcontrol
(use ./manage.py migrate to migrate these)
Running migrations for orm:
 - Migrating forwards to 0019_auto__add_buildartifact.
 &gt; orm:0001_initial
 &gt; orm:0002_auto__add_field_build_timespent
 &gt; orm:0003_timespent
 - Migration &apos;orm:0003_timespent&apos; is marked for no-dry-run.
 &gt; orm:0004_auto__add_field_package_installed_name
 &gt; orm:0005_auto__add_target_image_file__add_target_file__add_field_variablehistor
 &gt; orm:0006_auto__add_field_target_image_size__add_field_target_license_manifest_p
 &gt; orm:0007_auto__add_helptext
 &gt; orm:0008_auto__chg_field_variablehistory_operation__chg_field_recipe_descriptio
 &gt; orm:0009_auto__add_projectvariable__add_projectlayer__add_projecttarget__add_pr
 &gt; orm:0010_auto__add_field_project_branch__add_field_project_short_description__a
 &gt; orm:0011_auto__add_field_projectlayer_dirpath
 &gt; orm:0012_auto__add_field_projectlayer_optional__add_field_projecttarget_task
 &gt; orm:0013_auto__add_release__add_layerversiondependency__add_unique_layerversion
 &gt; orm:0014_auto__chg_field_package_summary__chg_field_layer_summary__chg_field_re
 &gt; orm:0015_auto__add_field_layer_vcs_web_url__add_field_layer_vcs_web_tree_base_u
 &gt; orm:0016_auto__add_field_release_helptext__chg_field_release_branch__add_index_
 &gt; orm:0017_auto__del_toastersettingdefaultlayer__add_releaselayersourcepriority__
 &gt; orm:0018_auto__add_field_layer_version_project
 &gt; orm:0019_auto__add_buildartifact
 - Loading initial data for orm.
Installed 0 object(s) from 0 fixture(s)
Running migrations for bldcontrol:
 - Migrating forwards to 0008_brarchive.
 &gt; bldcontrol:0001_initial
 &gt; bldcontrol:0002_auto__add_field_buildenvironment_sourcedir__add_field_buildenvironment
 &gt; bldcontrol:0003_auto__add_field_brlayer_dirpath
 &gt; bldcontrol:0004_loadinitialdata
 - Migration &apos;bldcontrol:0004_loadinitialdata&apos; is marked for no-dry-run.
 &gt; bldcontrol:0005_auto__add_brerror
 &gt; bldcontrol:0006_auto__add_brbitbake
 &gt; bldcontrol:0007_auto__add_field_buildrequest_environment__chg_field_buildrequest_build
 &gt; bldcontrol:0008_brarchive
 - Migration &apos;bldcontrol:0008_brarchive&apos; is marked for no-dry-run.
 - Loading initial data for bldcontrol.
Installed 0 object(s) from 0 fixture(s)
Toaster needs to know in which directory it can download build log files and other artifacts.
 Toaster suggests &quot;/home/michael/dev/yocto/bitbake/toaster_build_artifacts/&quot;.
 Press Enter to select &quot;/home/michael/dev/yocto/bitbake/toaster_build_artifacts/&quot; or type the full path to a different directory: 
Verifying the Build Environment. If the local Build Environment is not properly configured, you will be asked to configure it.

 -- Validation: The checkout directory must be set.
Toaster needs to know in which directory it should check out the layers that will be needed for your builds.
 Toaster suggests &quot;/home/michael/dev/yocto&quot;. If you select this directory, a layer like &quot;meta-intel&quot; will end up in &quot;/home/michael/dev/yocto/meta-intel&quot;.
 Press Enter to select &quot;/home/michael/dev/yocto&quot; or type the full path to a different directory (must be a parent of current checkout directory): 
Verifying the Build Environment. If the local Build Environment is not properly configured, you will be asked to configure it.

 -- Validation: The build directory must be set.
Traceback (most recent call last):
  File &quot;./bin/../lib/toaster/manage.py&quot;, line 10, in &lt;module&gt;
    execute_from_command_line(sys.argv)
  File &quot;/home/michael/dev/yocto/bitbake/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py&quot;, line 399, in execute_from_command_line
    utility.execute()
  File &quot;/home/michael/dev/yocto/bitbake/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py&quot;, line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File &quot;/home/michael/dev/yocto/bitbake/venv/local/lib/python2.7/site-packages/django/core/management/base.py&quot;, line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File &quot;/home/michael/dev/yocto/bitbake/venv/local/lib/python2.7/site-packages/django/core/management/base.py&quot;, line 285, in execute
    output = self.handle(*args, **options)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 198, in handle
    while (_verify_be()):
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 142, in _verify_be
    is_changed = _update_builddir()
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 131, in _update_builddir
    suggesteddir = self._get_suggested_builddir(be)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 61, in _get_suggested_builddir
    return DN(self._find_first_path_for_file(DN(self.guesspath), &quot;bblayers.conf&quot;, 4))
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 32, in _find_first_path_for_file
    ret = self._find_first_path_for_file(j, filename, level - 1)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 32, in _find_first_path_for_file
    ret = self._find_first_path_for_file(j, filename, level - 1)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 32, in _find_first_path_for_file
    ret = self._find_first_path_for_file(j, filename, level - 1)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 32, in _find_first_path_for_file
    ret = self._find_first_path_for_file(j, filename, level - 1)
  File &quot;/home/michael/dev/yocto/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 24, in _find_first_path_for_file
    for i in os.listdir(startdirectory):
OSError: [Errno 13] Permission denied: &apos;/home/michael/dev/project_one/dir/dir/dir&apos;
Failed to start the web server, stopping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58681</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-02-05 19:14:32 +0000</bug_when>
    <thetext>We now start toaster in a different way and this setup stage has changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58718</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-02-08 11:55:04 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>