<?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>9893</bug_id>
          
          <creation_ts>2016-07-07 13:19:12 +0000</creation_ts>
          <short_desc>Exception from toaster_buildhistory_dump</short_desc>
          <delta_ts>2016-07-19 11:13:52 +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>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          <dependson>9784</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Elliot Smith">elliot.smith</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>brian.avery</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</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>63716</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-07-07 13:19:12 +0000</bug_when>
    <thetext>If my image doesn&apos;t build (for example I Ctrl+C a bitbake core-image-sato early before it completes I&apos;m now seeing:

NOTE: Writing buildhistory
ERROR: Execution of event handler &apos;toaster_buildhistory_dump&apos; failed
Traceback (most recent call last):
  File &quot;/media/build1/poky/meta/classes/toaster.bbclass&quot;, line 335, in toaster_buildhistory_dump(e=&lt;bb.event.BuildCompleted object at 0x7f9e9b1b51d0&gt;):
     
    &gt;            with open(&quot;%s/files-in-image.txt&quot; % installed_img_path, &quot;r&quot;) as fin:
                     for line in fin:
FileNotFoundError: [Errno 2] No such file or directory: &apos;/media/build1/poky/build/buildhistory/images/genericx86_64/glibc/core-image-sato/files-in-image.txt&apos;

ERROR: Running idle function
Traceback (most recent call last):
  File &quot;/media/build1/poky/bitbake/lib/bb/cooker.py&quot;, line 1400, in buildTargetsIdle(server=&lt;ProcessServer(ProcessServer-1, started)&gt;, rq=&lt;bb.runqueue.RunQueue object at 0x7f9e9ba30f60&gt;, abort=False):
                 if not retval:
    &gt;                bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, targets, failures, interrupted), self.data)
                     self.command.finishAsyncCommand(msg)
  File &quot;/media/build1/poky/bitbake/lib/bb/event.py&quot;, line 174, in fire(event=&lt;bb.event.BuildCompleted object at 0x7f9e9b1b51d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f9ea2f6cd30&gt;):
     
    &gt;    fire_class_handlers(event, d)
         if worker_fire:
  File &quot;/media/build1/poky/bitbake/lib/bb/event.py&quot;, line 112, in fire_class_handlers(event=&lt;bb.event.BuildCompleted object at 0x7f9e9b1b51d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f9ea2f6cd30&gt;):
                         continue
    &gt;            execute_handler(name, handler, event, d)
     
  File &quot;/media/build1/poky/bitbake/lib/bb/event.py&quot;, line 84, in execute_handler(name=&apos;toaster_buildhistory_dump&apos;, handler=&lt;function toaster_buildhistory_dump at 0x7f9eb1ef7378&gt;, event=&lt;bb.event.BuildCompleted object at 0x7f9e9b1b51d0&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7f9ea2f6cd30&gt;):
         try:
    &gt;        ret = handler(event)
         except (bb.parse.SkipRecipe, bb.BBHandledException):
  File &quot;/media/build1/poky/meta/classes/toaster.bbclass&quot;, line 335, in toaster_buildhistory_dump(e=&lt;bb.event.BuildCompleted object at 0x7f9e9b1b51d0&gt;):
     
    &gt;            with open(&quot;%s/files-in-image.txt&quot; % installed_img_path, &quot;r&quot;) as fin:
                     for line in fin:
FileNotFoundError: [Errno 2] No such file or directory: &apos;/media/build1/poky/build/buildhistory/images/genericx86_64/glibc/core-image-sato/files-in-image.txt&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>