<?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>8230</bug_id>
          
          <creation_ts>2015-09-01 09:06:05 +0000</creation_ts>
          <short_desc>toaster upload failures on autobuilder</short_desc>
          <delta_ts>2016-07-13 21:29:01 +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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9884</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>elliot.smith</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>joshuagloe</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>53585</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-09-01 09:06:05 +0000</bug_when>
    <thetext>(Not sure what the component should be, assigning to Michael on Pauls suggestion)


Here is an example of a failed UploadToasterEventlog task: looks like the upload stalls and then timeouts.

https://autobuilder.yoctoproject.org/main/builders/nightly-x86-lsb/builds/476/steps/UploadToasterEventlog/logs/stdio

My initial thought was that this was a transient network error but decided to look at a successful log as well. This didn&apos;t look much better:

https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/483/steps/UploadToasterEventlog/logs/stdio


The upload seems to stall much the same way but instead of timeing out it spews
out a _lot_ of python tracebacks such as the ones below:



WARNING: buildhistory is not enabled. Please enable INHERIT += &quot;buildhistory&quot; to see image details.
NOTE: ToasterUI waiting for events
ERROR: &apos;module&apos; object has no attribute &apos;ReachableStamps&apos;
Traceback (most recent call last):
  File &quot;/var/lib/bitbake/lib/bb/ui/toasterui.py&quot;, line 116, in main
    event = eventHandler.waitEvent(0.25)
  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 139, in waitEvent
    return self._create_event(nextline)
  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 115, in _create_event
    event_class = _import_class(event_data[&apos;class&apos;])
  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 110, in _import_class
    return getattr(module, moduleklass)
AttributeError: &apos;module&apos; object has no attribute &apos;ReachableStamps&apos;

WARNING: Error data dump [&apos;  File &quot;/var/lib/bitbake/lib/bb/ui/toasterui.py&quot;, line 116, in main\n    event = eventHandler.waitEvent(0.25)\n&apos;]
{&apos;build_history_enabled&apos;: False,
 &apos;buildinfohelper&apos;: &lt;bb.ui.buildinfohelper.BuildInfoHelper object at 0x7f881d2a8310&gt;,
 &apos;console&apos;: &lt;logging.StreamHandler object at 0x7f881d2a8210&gt;,
 &apos;consolelogfile&apos;: u&apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/tmp/log/cooker/genericx86-64/20150831174419.log&apos;,
 &apos;curr&apos;: &lt;traceback object at 0x7f881d24b7e8&gt;,
 &apos;e&apos;: AttributeError(&quot;&apos;module&apos; object has no attribute &apos;ReachableStamps&apos;&quot;,),
 &apos;error&apos;: None,
 &apos;errors&apos;: 0,
 &apos;event&apos;: &lt;bb.event.ParseCompleted object at 0x7f881d242b10&gt;,
 &apos;eventHandler&apos;: &lt;__main__.EventReader instance at 0x7f881d231c20&gt;,
 &apos;exc_type&apos;: &lt;type &apos;exceptions.AttributeError&apos;&gt;,
 &apos;exc_value&apos;: AttributeError(&quot;&apos;module&apos; object has no attribute &apos;ReachableStamps&apos;&quot;,),
 &apos;exception_data&apos;: &apos;Traceback (most recent call last):\n  File &quot;/var/lib/bitbake/lib/bb/ui/toasterui.py&quot;, line 116, in main\n    event = eventHandler.waitEvent(0.25)\n  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 139, in waitEvent\n    return self._create_event(nextline)\n  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 115, in _create_event\n    event_class = _import_class(event_data[\&apos;class\&apos;])\n  File &quot;/var/lib/bitbake/bin/toaster-eventreplay&quot;, line 110, in _import_class\n    return getattr(module, moduleklass)\nAttributeError: \&apos;module\&apos; object has no attribute \&apos;ReachableStamps\&apos;\n&apos;,
 &apos;first&apos;: False,
 &apos;format&apos;: &lt;bb.msg.BBLogFormatter object at 0x7f881d2a8290&gt;,
 &apos;format_str&apos;: &apos;%(levelname)s: %(message)s&apos;,
 &apos;helper&apos;: &lt;bb.ui.uihelper.BBUIHelper instance at 0x7f881d231cb0&gt;,
 &apos;includelogs&apos;: u&apos;yes&apos;,
 &apos;inheritlist&apos;: u&apos; toaster report-error poky-sanity package_rpm package_deb package_ipk buildstats image-mklibs image-prelink debian devshell sstate license blacklist sanity&apos;,
 &apos;interrupted&apos;: False,
 &apos;loglines&apos;: None,
 &apos;params&apos;: &lt;__main__.MockConfigParameters instance at 0x7f881d231c68&gt;,
 &apos;pformat&apos;: &lt;function pformat at 0x7f881e15fc80&gt;,
 &apos;return_value&apos;: 0,
 &apos;server&apos;: &lt;__main__.MockConnection instance at 0x7f881d405ef0&gt;,
 &apos;taskfailures&apos;: [],
 &apos;tb&apos;: &lt;traceback object at 0x7f881d24b7e8&gt;,
 &apos;traceback&apos;: &lt;module &apos;traceback&apos; from &apos;/usr/lib/python2.7/traceback.pyc&apos;&gt;,
 &apos;warnings&apos;: 0}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53615</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-09-02 08:15:06 +0000</bug_when>
    <thetext>This keeps happening on all builds, AFAICT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53682</commentid>
    <comment_count>2</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2015-09-03 13:25:29 +0000</bug_when>
    <thetext>Can you give some details about the environment and how/why Toaster is being used in it (I&apos;m not very familiar with the autobuilder and there&apos;s not much about it on the Yocto wiki)?

In particular, which version of Toaster is affected (the line numbers in the error don&apos;t tally with the version of Toaster I&apos;m looking at on master)?

It would also help if we had the file which Toaster is trying to load when the error occurs. Failing that, the line which caused the error (in my version of Toaster, this is printed around the time the error occurs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53685</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-09-03 14:00:12 +0000</bug_when>
    <thetext>For the record: Elizabeth Flanagan turned off the toaster upload for the moment so this is not critical right now.

(In reply to comment #2)
&gt; Can you give some details about the environment and how/why Toaster is being
&gt; used in it (I&apos;m not very familiar with the autobuilder and there&apos;s not much
&gt; about it on the Yocto wiki)?

Belen might be able to comment (he seemed to be of opinion that it&apos;s not worth spending time on this right now).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63904</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2016-07-13 00:59:47 +0000</bug_when>
    <thetext>I think this is blocked because the logs are too large to store the way they were. Are there alternate storage options now? Do we still want an autobuilder read-only toaster running?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63925</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-13 15:54:31 +0000</bug_when>
    <thetext>We have #9884[1] which should result in a patch to make the generation of toaster event logs an option at build trigger time, defaulting to off. This way we can not generate the event logs for every build but allow whomever triggers the build to enable them when desirable.


1. https://bugzilla.yoctoproject.org/show_bug.cgi?id=9884</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63949</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-13 21:29:01 +0000</bug_when>
    <thetext>Resolve as duplicate of 9884 where we plan to implement changes to mitigate this issue.

*** This bug has been marked as a duplicate of bug 9884 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>