<?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>15008</bug_id>
          
          <creation_ts>2023-01-17 17:29:26 +0000</creation_ts>
          <short_desc>&apos;BitBakeXMLRPCServer&apos; object has no attribute &apos;set_async_cmd&apos;</short_desc>
          <delta_ts>2023-03-08 18:37:57 +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>4.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <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>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94740</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-01-17 17:29:26 +0000</bug_when>
    <thetext>The async command changes in &quot;bitbake: process/cooker/command: Fix currentAsyncCommand locking/races&quot; lead to breakage in the BitBakeXMLRPCServer.

Bitbake rev: b5215887d2f8ea3f28f1ebda721bd5b8f93ec7f3

(https://git.yoctoproject.org/poky/commit/bitbake?id=165e8b563d400bf54c317659a267db85e8c34006)


NOTE: This might be a bug for toasterui instead?

Error (from crops/toaster-container smoketest which builds quilt-native with &quot;master&quot;):

Traceback (most recent call last):
  File &quot;/home/usersetup/poky/bitbake/bin/bitbake&quot;, line 36, in &lt;module&gt;
    sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv),
  File &quot;/home/usersetup/poky/bitbake/lib/bb/main.py&quot;, line 404, in bitbake_main
    return ui_module.main(server_connection.connection, server_connection.events,
  File &quot;/home/usersetup/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 177, in main
    ret, error = server.runCommand(cmdline[&apos;action&apos;])
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 1109, in __call__
    return self.__send(self.__name, args)
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 1450, in __request
    response = self.__transport.request(
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 1169, in single_request
    return self.parse_response(resp)
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 1341, in parse_response
    return u.close()
  File &quot;/usr/lib/python3.8/xmlrpc/client.py&quot;, line 655, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: &lt;Fault 1: &quot;&lt;class &apos;AttributeError&apos;&gt;:&apos;BitBakeXMLRPCServer&apos; object has no attribute &apos;set_async_cmd&apos;&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94786</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-01-21 23:14:07 +0000</bug_when>
    <thetext>**Very** naively adding the {set,clear,get}_async_cmd to lib/bb/server/xmlrpcserver.py [1] _seems_ to get past this error, but then results in:

`
Bitbake crash
Traceback (most recent call last):
  File &quot;.../workspace-toaster/poky/bitbake/bin/bitbake&quot;, line 36, in &lt;module&gt;
    sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv),
  File &quot;.../workspace-toaster/poky/bitbake/lib/bb/main.py&quot;, line 404, in bitbake_main
    return ui_module.main(server_connection.connection, server_connection.events,
  File &quot;.../workspace-toaster/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 135, in main
    params.updateToServer(server, os.environ.copy())
  File &quot;.../workspace-toaster/poky/bitbake/lib/bb/cookerdata.py&quot;, line 75, in updateToServer
    raise Exception(&quot;Unable to update the server configuration with local parameters: %s&quot; % error)
Exception: Unable to update the server configuration with local parameters: Traceback (most recent call last):
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/command.py&quot;, line 91, in runCommand
    result = command_method(self, commandline)
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/command.py&quot;, line 290, in updateConfig
    command.cooker.updateConfigOpts(options, environment, cmdline)
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/cooker.py&quot;, line 540, in updateConfigOpts
    self.reset()
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/cooker.py&quot;, line 1776, in reset
    self.initConfigurationData()
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/cooker.py&quot;, line 397, in initConfigurationData
    self.databuilder.parseBaseConfiguration()
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/cookerdata.py&quot;, line 269, in parseBaseConfiguration
    self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
  File &quot;.../workspace-toaster/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/cookerdata.py&quot;, line 472, in parseConfigurationFiles
    raise SystemExit(msg)
SystemExit: The BBPATH variable is not set and bitbake did not find a conf/bblayers.conf file in the expected location.
Maybe you accidentally invoked bitbake from the wrong directory?
`

[1] https://git.yoctoproject.org/poky-contrib/commit/?h=timo/toaster-15008&amp;id=0328bc30403e6e8ba4cc3018b70c7552ac9cab7f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95072</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-03-07 12:57:32 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=082e46f9ca784a3c714a18642904cccf133f408f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95086</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-03-08 18:37:57 +0000</bug_when>
    <thetext>Passed crops/toaster-container tests:
https://github.com/crops/toaster-container/actions/runs/4356489265/jobs/7614565651</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>