<?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>10731</bug_id>
          
          <creation_ts>2016-11-27 20:41:22 +0000</creation_ts>
          <short_desc>bitbake --observe-only doesn&apos;t work with memres</short_desc>
          <delta_ts>2026-02-10 15:02:37 +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.2</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.99</target_milestone>
          
          <blocked>13023</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Pavel Zhukov">pavel</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>pavel</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>68619</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-11-27 20:41:22 +0000</bug_when>
    <thetext>bitbake --observe-only is supposed to capture and display events sent by the server, but it doesn&apos;t seem to be working. If I start it before running bitbake to build something, it exits when the build starts with the following error:

----------- snip -----------
$ BBSERVER=localhost:-1 bitbake --observe-only
Traceback (most recent call last):
  File &quot;/home/paul/poky/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/main.py&quot;, line 511, in bitbake_main
    configParams)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/ui/knotty.py&quot;, line 343, in main
    includelogs, loglines, consolelogfile = _log_settings_from_server(server)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/ui/knotty.py&quot;, line 328, in _log_settings_from_server
    raise BaseException(error)
BaseException: Not able to execute not readonly commands in readonly mode
----------- snip -----------

If I instead run it after I start the bitbake build, it times out:

----------- snip -----------
$ BBSERVER=localhost:-1 bitbake --observe-only
Traceback (most recent call last):
  File &quot;/home/paul/poky/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
    cookerdata.CookerConfiguration()))
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/main.py&quot;, line 496, in bitbake_main
    server_connection.setupEventQueue()
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/server/xmlrpc.py&quot;, line 337, in setupEventQueue
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File &quot;/home/paul/poky/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 34833
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 34833, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 34833, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 34833, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 34833, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: running, host 127.0.0.1, port 34833, retry
----------- snip -----------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73732</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-06-06 11:09:08 +0000</bug_when>
    <thetext>We really need to add a test for --observe-only at the same time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74191</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-06-15 08:40:26 +0000</bug_when>
    <thetext>The first issue (starting the --observe-only instance first) appears to be solved in master at least, but the second is still present. It would be nice if there was a way to keep it alive so that you can continuously watch the server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74912</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-07-11 03:20:48 +0000</bug_when>
    <thetext>Hi Paul,

I&apos;d like to work on it if you are fine with that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74915</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-07-11 07:21:53 +0000</bug_when>
    <thetext>Certainly, thanks Robert!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76510</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2017-09-05 01:12:59 +0000</bug_when>
    <thetext>The bitbake --observer doesn&apos;t work atm, we need go on working on it in 2.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94326</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-11-01 19:53:08 +0000</bug_when>
    <thetext>Medium+ bugs should use an M* milestone so pick M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100096</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-31 15:09:25 +0000</bug_when>
    <thetext>Bulk move of 5.1 bugs to 5.2. -- YP bug review (Randy)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>