<?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>8259</bug_id>
          
          <creation_ts>2015-09-04 21:25:36 +0000</creation_ts>
          <short_desc>bitbake hangs if PRSERV_HOST=localhost is specified but server is not running</short_desc>
          <delta_ts>2015-10-23 07:01:44 +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>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <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>53757</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 21:25:36 +0000</bug_when>
    <thetext>In case there is no server running (daemon), and variable PRSERV_HOST is present, when running a&apos;bitbake &lt;target&gt;&apos; it hangs with the following log:

Delaying shutdown due to active processes which appear to be holding bitbake.lock:
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF        NODE NAME
python  18299 lsandov1   12u   REG    8,4        0 30090935242 /home/lsandov1/poky/build/bitbake.lock
.
.
.

Steps to reproduce

1. echo &quot;PRSERV_HOST=\&quot;localhost:8585\&quot;&quot; &gt;&gt; conf/local.conf

#make sure you do not run the bitbake-prserv or the daemon is not already running (ps aux | grep bitbake-prserv)

2. bitbake &lt;anytarget&gt;


What it is expected is to exit immediately to the command line, instead of showing the log and hanging there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53758</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 21:29:02 +0000</bug_when>
    <thetext>Also, if one suspends (control + z) when it is hanging, multiple bitbake-prserv process are observed:

lsandov1@yctb05:~/poky/build&gt; ps axu | grep bitbake
lsandov1 18248  0.3  0.0 124392 27140 pts/34   T    13:09   0:02 python /home/lsandov1/poky/bitbake/bin/bitbake prserv-test
lsandov1 18268  0.1  0.0 196428 30032 pts/34   T    13:09   0:00 python /home/lsandov1/poky/bitbake/bin/bitbake prserv-test
lsandov1 18299  0.8  0.0 211084 43500 pts/34   Tl   13:09   0:05 python /home/lsandov1/poky/bitbake/bin/bitbake prserv-test
.
.
.
.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54690</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-09-25 17:34:59 +0000</bug_when>
    <thetext>This is not reproducible on master anymore.

It seems this change in cooker solved the issue:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/prserv/serv.py?id=85256c8fa986f2a3258e75a22bb8d0656ffa41bf

It is not reproducible in master anymore but if return to a commit before the change in cooker, the issue is there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55646</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-10-23 07:01:44 +0000</bug_when>
    <thetext>verified as per above comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>