<?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>7206</bug_id>
          
          <creation_ts>2015-01-20 18:27:26 +0000</creation_ts>
          <short_desc>Downloading cooker log throws an error</short_desc>
          <delta_ts>2015-03-26 10:27:54 +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>unspecified</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>download artifacts</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          <dependson>7220</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>cristina-danielax.agurida</cc>
          
          <qa_contact name="Cristina Agurida">cristina-danielax.agurida</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>48110</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2015-01-20 18:27:26 +0000</bug_when>
    <thetext>To reproduce:

1. Run a failed build with Toaster
2. In the all builds page, click on the download icon that shows next to the number of errors

This should download the build cooker log, but instead throws this error

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/toastergui/build/3/artifact/cookerlog/id/3

Django Version: 1.6
Python Version: 2.7.6
Installed Applications:
(&apos;django.contrib.auth&apos;,
&apos;django.contrib.contenttypes&apos;,
&apos;django.contrib.messages&apos;,
&apos;django.contrib.sessions&apos;,
&apos;django.contrib.admin&apos;,
&apos;django.contrib.staticfiles&apos;,
&apos;django.contrib.humanize&apos;,
&apos;orm&apos;,
&apos;toastermain&apos;,
&apos;south&apos;,
&apos;bldviewer&apos;,
&apos;toastergui&apos;,
&apos;bldcontrol&apos;)
Installed Middleware:
(&apos;django.middleware.common.CommonMiddleware&apos;,
&apos;django.contrib.sessions.middleware.SessionMiddleware&apos;,
&apos;django.middleware.csrf.CsrfViewMiddleware&apos;,
&apos;django.contrib.auth.middleware.AuthenticationMiddleware&apos;,
&apos;django.contrib.messages.middleware.MessageMiddleware&apos;)


Traceback:
File &quot;/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py&quot;
in get_response
  114.                     response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File &quot;/home/yocto/master/bitbake/lib/toaster/toastergui/views.py&quot; in
build_artifact
  2939.             fsock = b.buildrequest.environment.get_artifact(file_name)
File &quot;/home/yocto/master/bitbake/lib/toaster/bldcontrol/models.py&quot; in
get_artifact
  78.             return open(path, &quot;r&quot;)

Exception Type: IOError at /toastergui/build/3/artifact/cookerlog/id/3
Exception Value: [Errno 2] No such file or directory:
u&apos;/home/yocto/master/build/tmp/log/cooker/qemux86/20150120180920.log&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48873</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-17 10:02:16 +0000</bug_when>
    <thetext>Pushed for review

poky-contrib: adamian/201502016_download_bugs_72207206</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48958</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-20 13:34:38 +0000</bug_when>
    <thetext>Merged in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49731</commentid>
    <comment_count>3</comment_count>
    <who name="Cristina Agurida">cristina-danielax.agurida</who>
    <bug_when>2015-03-25 09:41:40 +0000</bug_when>
    <thetext>Verified on master: bbc139617637392a9b0fb2e9332a42ad64a4a556</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>