<?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>12090</bug_id>
          
          <creation_ts>2017-09-14 22:42:24 +0000</creation_ts>
          <short_desc>bitbake memory resident server reconnect handling needed</short_desc>
          <delta_ts>2025-12-18 16:30: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.99</target_milestone>
          
          <blocked>13023</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</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>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76873</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-09-14 22:42:24 +0000</bug_when>
    <thetext>The following set of actions can be an issue:

1) from a laptop, ssh into a build server and run:
$ cd ~/cow
$ . ./poky/oe-init-build-env
$ bitbake core-image-sato

Wait until the server is into something that takes a long time like building glibc

Then close laptop, or disconnect it from the network.

2) From a terminal on the server itself
$ cd ~/cow
$ . ./poky/oe-init-build-env
$ bitbake core-image-sato

This results in 
20 seconds of *no output* !!! 
Followed by:
Reconnecting to bitbake server ....
Retrying server connection ....
a number of times followed by:
ERROR: Unable to connect to bitbake server or start one

This is because the original bitbake server  (whose pid is in bitbake.lock) is still merrily building the image.  unfortunately, there isn&apos;t afaik, a way to reconnect to the running server, nor is it terribly obvious that the reason you can&apos;t run another bitbake command is that there is a running server already using that build directory.

+++++
Furthermore, Paul pointed out that if you did enable a reconnection, you might need to add a new event (welcome back?) that would fire on reconnection so that the connection didn&apos;t look dead in case the server was busy working but had no events to hand out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96845</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:29 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>