<?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>9141</bug_id>
          
          <creation_ts>2016-02-18 22:38:39 +0000</creation_ts>
          <short_desc>toaster when xmlrpc/cooker dies the web didn&apos;t tell the user about it</short_desc>
          <delta_ts>2023-12-14 04:19:25 +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.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>GUI design pending   </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aníbal Limón">anibal.limon</reporter>
          <assigned_to name="Toaster default assignee">toaster</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>stanciux.mihail</cc>
          
          
          <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>59238</commentid>
    <comment_count>0</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-02-18 22:38:39 +0000</bug_when>
    <thetext>If you try to build some incompatible layers and cause the xmlrpc/cooker dies it didn&apos;t notice toaster web ui about it.

Then you should view in the toaster_ui.log an exception about fail to connect, i.e.,

alimon@alimonb-mobl1:~/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/build$ cat bitbake-cookerdaemon.log
Server (cooker) exiting
 
alimon@alimonb-mobl1:~/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/build$ cat toaster_ui.log
Traceback (most recent call last):
  File &quot;/home/alimon/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/bitbake/bin/bitbake&quot;, line 45, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/home/alimon/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/bitbake/lib/bb/main.py&quot;, line 417, in bitbak_main
    server_connection.setupEventQueue()
  File &quot;/home/alimon/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/bitbake/lib/bb/server/xmlrpc.py&quot;, line 308, n setupEventQueue
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File &quot;/home/alimon/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/bitbake/lib/bb/ui/uievent.py&quot;, line 54, in _init__
    self.EventHandle, error = self.BBServer.registerEventHandler(self.host, self.port)
  File &quot;/usr/lib/python2.7/xmlrpclib.py&quot;, line 1233, in __call__
    return self.__send(self.__name, args)
  File &quot;/usr/lib/python2.7/xmlrpclib.py&quot;, line 1591, in __request
    verbose=self.__verbose
  File &quot;/usr/lib/python2.7/xmlrpclib.py&quot;, line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File &quot;/usr/lib/python2.7/xmlrpclib.py&quot;, line 1301, in single_request
    self.send_content(h, request_body)
  File &quot;/home/alimon/repos/yocto-autobuilder/yocto-worker/toaster-tests/build/bitbake/lib/bb/server/xmlrpc.py&quot;, line 79, i send_content
    xmlrpclib.Transport.send_content(self, h, body)
  File &quot;/usr/lib/python2.7/xmlrpclib.py&quot;, line 1448, in send_content
    connection.endheaders(request_body)
  File &quot;/usr/lib/python2.7/httplib.py&quot;, line 997, in endheaders
    self._send_output(message_body)
  File &quot;/usr/lib/python2.7/httplib.py&quot;, line 850, in _send_output
    self.send(msg)
  File &quot;/usr/lib/python2.7/httplib.py&quot;, line 812, in send
    self.connect()
  File &quot;/usr/lib/python2.7/httplib.py&quot;, line 793, in connect
    self.timeout, self.source_address)
  File &quot;/usr/lib/python2.7/socket.py&quot;, line 571, in create_connection
    raise err
error: [Errno 111] Connection refused
DEBUG: Removed the following variables from the environment: VIRTUAL_ENV, TOASTER_DIR, TZ, TOASTER_CONF, SHLVL, OLDPWD, DAABASE_URL, DJANGO_SETTINGS_MODULE, PS1, BBSERVER, _, BUILDDIR
RAW Paste Data</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59257</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-02-19 09:02:15 +0000</bug_when>
    <thetext>To work out what they UI should show, I need to be able to reproduce this. Can you give me some steps? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59272</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-02-19 15:33:33 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; To work out what they UI should show, I need to be able to reproduce this.
&gt; Can you give me some steps? Thanks!

Hi Belen,

The way to reproduce this is a little bit complicated because is a critial error when xmlrpc bitbake dies, the overall idea is detect when xmlrpc bitbake dies and send an event to the WEB ui for show this critical error in some manner.

I&apos;m not an expert on toaster so i think a toaster developer could give you a better description.

Best regards,
    alimon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59276</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-02-19 16:22:06 +0000</bug_when>
    <thetext>From Brian Avery on how to reproduce this: &quot;run toaster. then kill the bitbake memres server (the process that has the —server xmlrpc flags) by hand with a kill command.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59277</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-02-19 16:23:14 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; From Brian Avery on how to reproduce this: &quot;run toaster. then kill the
&gt; bitbake memres server (the process that has the —server xmlrpc flags) by
&gt; hand with a kill command.&quot;

ps augxww | egrep bitbake | egrep server
kill &lt;pid&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>