<?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>8258</bug_id>
          
          <creation_ts>2015-09-04 14:50:59 +0000</creation_ts>
          <short_desc>File not found when stopping the PR Server using localhost as host</short_desc>
          <delta_ts>2015-10-07 13:46:55 +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>Scripts and Tools</component>
          <version>1.8</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>minor</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>ross.burton</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>53752</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 14:50:59 +0000</bug_when>
    <thetext>When stopping the prserver using localhost as host, it tries to find a file &apos;/tmp/PRServer_127.0.0.1_8585.pid&apos; which is not present on the system.

Steps to reproduced:

$ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --start

$ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --stop

pidfile /tmp/PRServer_localhost_8585.pid does not exist. Daemon not running?


It is important to notice that the server was CORRECTLY stopped, just the extra message is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53753</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 14:52:22 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; When stopping the prserver using localhost as host, it tries to find a file
&gt; &apos;/tmp/PRServer_127.0.0.1_8585.pid&apos; which is not present on the system.

I meant &apos;/tmp/PRServer_localhost_8585.pid&apos;

&gt; 
&gt; Steps to reproduced:
&gt; 
&gt; $ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --start
&gt; 
&gt; $ bitbake-prserv --host localhost --port 8585 --loglevel=DEBUG --stop
&gt; 
&gt; pidfile /tmp/PRServer_localhost_8585.pid does not exist. Daemon not running?
&gt; 
&gt; 
&gt; It is important to notice that the server was CORRECTLY stopped, just the
&gt; extra message is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53759</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-04 22:10:52 +0000</bug_when>
    <thetext>One additional comment:

The file created has the name:

/tmp/PRServer_127.0.0.1_8585.pid

So, this file is stored with the IP, but it looking using the string &apos;localhost&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54124</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-09-15 23:12:05 +0000</bug_when>
    <thetext>Patch sent to the ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55029</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-10-07 13:46:55 +0000</bug_when>
    <thetext>Patch merged:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5a51fb28dbdfcae8ceb503a5290532dd38aeb09f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>