<?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>14077</bug_id>
          
          <creation_ts>2020-10-06 04:36:04 +0000</creation_ts>
          <short_desc>devtool doesn&apos;t handle server failing to startup gracefully</short_desc>
          <delta_ts>2021-06-03 14:43:07 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>backport to 3.2</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>stacygaikovaia</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>88304</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-10-06 04:36:04 +0000</bug_when>
    <thetext>I tried to use devtool:

$ devtool modify u-boot
NOTE: Starting bitbake server...
NOTE: No reply from server in 30s
^C
Traceback (most recent call last):
  File &quot;/home/ross/Yocto/poky/scripts/lib/devtool/__init__.py&quot;, line 109, in setup_tinfoil
    tinfoil.prepare(config_only)
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/tinfoil.py&quot;, line 409, in prepare
    config_params.updateToServer(self.server_connection.connection, os.environ.copy())
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/cookerdata.py&quot;, line 73, in updateToServer
    ret, error = server.runCommand([&quot;updateConfig&quot;, options, environment, sys.argv])
  File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/server/process.py&quot;, line 402, in runCommand
    raise bb.BBHandledException()
bb.BBHandledException

How odd, I thought.  Did a normal build:

$ bitbake m4
ERROR: ParseError at /home/ross/Yocto/meta-arm/meta-arm-bsp/conf/machine/include/corstone700.inc:3: Could not include required file conf/machine/include/tune-cortexa32.inc
$

So the server wasn&apos;t starting because it was failing to parse, but devtool didn&apos;t know that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88325</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-10-08 07:45:30 +0000</bug_when>
    <thetext>relates to 13993</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88360</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-10-09 09:53:14 +0000</bug_when>
    <thetext>Stacy: I have another bug, #14054 which I worked on today. I don&apos;t think it will totally fix this one but it may help or be related. Patches for that are in master-next and on bitbake-devel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88361</commentid>
    <comment_count>3</comment_count>
    <who name="Stacy Gaikovaia">stacy.gaikovaia</who>
    <bug_when>2020-10-09 10:09:07 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Stacy: I have another bug, #14054 which I worked on today. I don&apos;t think it
&gt; will totally fix this one but it may help or be related. Patches for that
&gt; are in master-next and on bitbake-devel.

Thanks, Richard, I&apos;ll pull that branch down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88375</commentid>
    <comment_count>4</comment_count>
    <who name="Stacy Gaikovaia">stacy.gaikovaia</who>
    <bug_when>2020-10-13 10:53:57 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I tried to use devtool:
&gt; 
&gt; $ devtool modify u-boot
&gt; NOTE: Starting bitbake server...
&gt; NOTE: No reply from server in 30s
&gt; ^C
&gt; Traceback (most recent call last):
&gt;   File &quot;/home/ross/Yocto/poky/scripts/lib/devtool/__init__.py&quot;, line 109, in
&gt; setup_tinfoil
&gt;     tinfoil.prepare(config_only)
&gt;   File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/tinfoil.py&quot;, line 409, in
&gt; prepare
&gt;     config_params.updateToServer(self.server_connection.connection,
&gt; os.environ.copy())
&gt;   File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/cookerdata.py&quot;, line 73, in
&gt; updateToServer
&gt;     ret, error = server.runCommand([&quot;updateConfig&quot;, options, environment,
&gt; sys.argv])
&gt;   File &quot;/home/ross/Yocto/poky/bitbake/lib/bb/server/process.py&quot;, line 402,
&gt; in runCommand
&gt;     raise bb.BBHandledException()
&gt; bb.BBHandledException
&gt; 
&gt; How odd, I thought.  Did a normal build:
&gt; 
&gt; $ bitbake m4
&gt; ERROR: ParseError at
&gt; /home/ross/Yocto/meta-arm/meta-arm-bsp/conf/machine/include/corstone700.inc:
&gt; 3: Could not include required file conf/machine/include/tune-cortexa32.inc
&gt; $
&gt; 
&gt; So the server wasn&apos;t starting because it was failing to parse, but devtool
&gt; didn&apos;t know that.


Hi Ross, 
If I hide conf/machine/indlude/tune-cortexa32.inc file and try to run `devtool modify u-boot`, I dont&apos; get a server hang like you described. Intentionally introducing errors into the u-boot recipe or corstone700.inc also doesn&apos;t give me the error. Could you include some more details about your envrionment? 

Thank you, 
Stacy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88390</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-10-15 07:57:05 +0000</bug_when>
    <thetext>Sorry for not noticing your comment!  I shall try and replicate today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88398</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-10-15 10:00:55 +0000</bug_when>
    <thetext>Note to self: include the poky commit I&apos;m breaking on.

If I go back to a commit I thought was breaking then I can&apos;t replicate this anymore.  With master I can&apos;t replicate this anymore.

As I can&apos;t rule out a broken setup on my machine, I suggest we keep this open for a bit in case it happens again, but it&apos;s definitely not a release blocker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90076</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-22 18:58:17 +0000</bug_when>
    <thetext>Ross, I think the ball is in your court, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90169</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-29 15:22:08 +0000</bug_when>
    <thetext>Ross, look, ball!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90539</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-06-01 09:56:05 +0000</bug_when>
    <thetext>Can&apos;t replicate easily, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>