<?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>2985</bug_id>
          
          <creation_ts>2012-08-22 08:31:44 +0000</creation_ts>
          <short_desc>Hob can not create image due to permissions error while creating cooker log.</short_desc>
          <delta_ts>2012-09-24 11:49: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>Hob</product>
          <component>hob</component>
          <version>1.3</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreea Brandusa Proca">andreea.b.proca</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>andreea.b.proca</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>valentin.popa</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24319</commentid>
    <comment_count>0</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2012-08-22 08:31:44 +0000</bug_when>
    <thetext>In commit 603f6c631e9454d10517599e229943f2b26d08a5 the following issue occurred:
step 1 : hob is started and machine type is selected (other than quemux86)
step 2 : an image type is selected and &quot;build image&quot; button is pressed
step 3 : this error appears : 
andreea@andreea-Vostro-460:~/yocto/master_hob/build$ hob
Pseudo is not present but is required, building this first before the main build
Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:46
Parsing of 825 .bb files complete (0 cached, 825 parsed). 1124 targets, 19 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120822&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto        = &quot;master:603f6c631e9454d10517599e229943f2b26d08a5&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
Traceback (most recent call last):
  File &quot;/home/andreea/yocto/master_hob/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py&quot;, line 436, in just_bake_button_clicked_cb
    self.builder.just_bake()
  File &quot;/home/andreea/yocto/master_hob/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 1045, in just_bake
    self.fast_generate_image_async(True)
  File &quot;/home/andreea/yocto/master_hob/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 526, in fast_generate_image_async
    self.do_log(self.current_logfile)
  File &quot;/home/andreea/yocto/master_hob/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 1318, in do_log
    self.consolelog = logging.FileHandler(consolelogfile)
  File &quot;/usr/lib/python2.7/logging/__init__.py&quot;, line 897, in __init__
    StreamHandler.__init__(self, self._open())
  File &quot;/usr/lib/python2.7/logging/__init__.py&quot;, line 916, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: &apos;/home/andreea/yocto/master_hob/build/tmp/log/cooker/qemuarm/20120822091542.log&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24353</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-22 18:30:50 +0000</bug_when>
    <thetext>Is there anything in /home/andreea/yocto/master_hob/build/tmp/log or below?  What permission are on this directory?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24368</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-08-22 22:44:32 +0000</bug_when>
    <thetext>Hello Saul,
I reproduced the bug on my machine.
Here is the answer to your question.
Apparently hob tries to access a directory before creating it.
I hope this helps

/home/lserban/work/hob_test/build
lserban@laurentiu-02:~/work/hob_test/build$ ls
bitbake.lock  conf  downloads  pseudodone  sstate-cache  tmp
lserban@laurentiu-02:~/work/hob_test/build$ cd tmp/log/
lserban@laurentiu-02:~/work/hob_test/build/tmp/log$ ls -al
total 12
drwxrwxr-x 3 lserban lserban 4096 Aug 23 02:34 .
drwxrwxr-x 9 lserban lserban 4096 Aug 23 02:39 ..
drwxrwxr-x 3 lserban lserban 4096 Aug 23 02:34 cooker



lserban@laurentiu-02:~/work/hob_test/build/tmp/log/cooker$ ls -al
total 12
drwxrwxr-x 3 lserban lserban 4096 Aug 23 02:34 .
drwxrwxr-x 3 lserban lserban 4096 Aug 23 02:34 ..
drwxrwxr-x 2 lserban lserban 4096 Aug 23 02:39 qemux86
lserban@laurentiu-02:~/work/hob_test/build/tmp/log/cooker$

By the way, in the latest master commit the issue is not reproducible anymore.
I could reproduce it only on commit 603f6c631e9454d10517599e229943f2b26d08a5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24398</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-08-23 14:37:46 +0000</bug_when>
    <thetext>This was fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=fddc16989ddb181800eb6ec383b431e00d79f286 . If the problem is still there please reopen but I think this is fixed now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25591</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-24 11:49:04 +0000</bug_when>
    <thetext>I have verified with e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c commit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>