<?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>11899</bug_id>
          
          <creation_ts>2017-08-05 04:31:35 +0000</creation_ts>
          <short_desc>broken &apos;bitbake --status-only&apos; and &apos;bitbake -m&apos; for multiple connections</short_desc>
          <delta_ts>2026-10-01 15:48:12 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.4</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>michael.opdenacker</cc>
    
    <cc>pavel</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75668</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-08-05 04:31:35 +0000</bug_when>
    <thetext>I was trying to use these commands to monitor build status with the new memres bitbake change-over, but I could not get these commands to work.

It may be that I have the wrong syntax, but I could not find any specific examples in the documentation.

[ REPRODUCER ]

[build]$ cat ../build-toaster-5/bitbake.lock 
29796 0.0.0.0:51957

[build]$ bitbake --status-only --remote-server=127.0.0.1:51957
Traceback (most recent call last):
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/main.py&quot;, line 370, in bitbake_main
    server_connection, ui_module = setup_bitbake(configParams, configuration)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/main.py&quot;, line 423, in setup_bitbake
    configParams.observe_only, configParams.xmlrpctoken)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 151, in connectXMLRPC
    raise e
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 147, in connectXMLRPC
    connection = BitBakeXMLRPCServerConnection(host, port, (ip, 0), observer_only, featureset)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 89, in __init__
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/ui/uievent.py&quot;, line 72, in __init__
    raise Exception(errmsg)
Exception: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 55744
[build]$ 

[build]$ bitbake -m --remote-server=0.0.0.0:51957
Traceback (most recent call last):
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/main.py&quot;, line 370, in bitbake_main
    server_connection, ui_module = setup_bitbake(configParams, configuration)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/main.py&quot;, line 423, in setup_bitbake
    configParams.observe_only, configParams.xmlrpctoken)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 151, in connectXMLRPC
    raise e
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 147, in connectXMLRPC
    connection = BitBakeXMLRPCServerConnection(host, port, (ip, 0), observer_only, featureset)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/server/xmlrpcclient.py&quot;, line 89, in __init__
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File &quot;/opt/dreyna/toaster_master/poky/bitbake/lib/bb/ui/uievent.py&quot;, line 72, in __init__
    raise Exception(errmsg)
Exception: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285, retry
WARNING: Could not connect to server at 0.0.0.0:51957 (Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 58285)
[build]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75903</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-08-16 15:30:13 +0000</bug_when>
    <thetext>Regardless of whether there&apos;s a bug we clearly need to improve the docs here, so setting the docs flag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75904</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-08-16 15:30:42 +0000</bug_when>
    <thetext>Perhaps we could add a bitbake-selftest for this, too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94738</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-01-17 11:02:42 +0000</bug_when>
    <thetext>The issue is that the process server only accepts one controller connection, see self.controllersock in server/process.py. As such, only one connection to the server operates at a time.

There is a similar issue in the xmlrpc backend where new connections cannot be made if the cooker is running (see server/xmlrpcserver.py).

It was originally designed to take multiple connections with the idea some could be read only in nature. I think somewhere along teh development, that concept has been lost.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>