<?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>11851</bug_id>
          
          <creation_ts>2017-07-27 23:22:28 +0000</creation_ts>
          <short_desc>Toaster broken with bitbake move to default XMLRPC</short_desc>
          <delta_ts>2017-08-01 02:06:04 +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.4</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>2.4 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</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>75360</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-07-27 23:22:28 +0000</bug_when>
    <thetext>The bitbake option &quot;-t SERVERTYPE&quot; was deprecated, with the desired XMLRPC listener now the default.

Also, the bitbake server port cannot be &quot;-1&quot; anymore, and must be explicitly passed.

Without these fixes, no builds are possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75361</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-07-27 23:23:17 +0000</bug_when>
    <thetext>Here is the fix:

diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller
index 2916246..197c2e0 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -331,7 +331,7 @@ class LocalhostBEController(BuildEnvironmentController):
         bitbake = os.path.join(self.pokydirname, &apos;bitbake&apos;, &apos;bin&apos;, &apos;bitbake&apos;)
         toasterlayers = os.path.join(builddir,&quot;conf/toaster-bblayers.conf&quot;)
         self._shellcmd(&apos;bash -c \&quot;source %s %s; BITBAKE_UI=&quot;knotty&quot; %s --read %s --read %s &apos;
-                       &apos;--server-only -t xmlrpc -B 0.0.0.0:0\&quot;&apos; % (oe_init,
+                       &apos;--server-only -B 0.0.0.0:0\&quot;&apos; % (oe_init,
                        builddir, bitbake, confpath, toasterlayers), self.be.sourcedir)
 
         # read port number from bitbake.lock
@@ -365,10 +365,10 @@ class LocalhostBEController(BuildEnvironmentController):
         log = os.path.join(builddir, &apos;toaster_ui.log&apos;)
         local_bitbake = os.path.join(os.path.dirname(os.getenv(&apos;BBBASEDIR&apos;)),
                                      &apos;bitbake&apos;)
-        self._shellcmd([&apos;bash -c \&quot;(TOASTER_BRBE=&quot;%s&quot; BBSERVER=&quot;0.0.0.0:-1&quot; &apos;
+        self._shellcmd([&apos;bash -c \&quot;(TOASTER_BRBE=&quot;%s&quot; BBSERVER=&quot;0.0.0.0:%s&quot; &apos;
                         &apos;%s %s -u toasterui --token=&quot;&quot; &gt;&gt;%s 2&gt;&amp;1;&apos;
-                        &apos;BITBAKE_UI=&quot;knotty&quot; BBSERVER=0.0.0.0:-1 %s -m)&amp;\&quot;&apos; \
-                        % (brbe, local_bitbake, bbtargets, log, bitbake)],
+                        &apos;BITBAKE_UI=&quot;knotty&quot; BBSERVER=0.0.0.0:%s %s -m)&amp;\&quot;&apos; \
+                        % (brbe, self.be.bbport, local_bitbake, bbtargets, log, self.be.bbport, bitbake)],
                         builddir, nowait=True)
 
         logger.debug(&apos;localhostbecontroller: Build launched, exiting. &apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75526</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-08-01 02:00:25 +0000</bug_when>
    <thetext>commit 9d1faf1a6fbfa6ee854ccf2c3d0bf3accbc59f6f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75529</commentid>
    <comment_count>3</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-08-01 02:06:04 +0000</bug_when>
    <thetext>*** Bug 11833 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>