Bug 8258

Summary: File not found when stopping the PR Server using localhost as host
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: Scripts and ToolsAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: ross.burton
Version: 1.8   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Leonardo Sandoval Gonzalez 2015-09-04 14:50:59 UTC
When stopping the prserver using localhost as host, it tries to find a file '/tmp/PRServer_127.0.0.1_8585.pid' 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.
Comment 1 Leonardo Sandoval Gonzalez 2015-09-04 14:52:22 UTC
(In reply to comment #0)
> When stopping the prserver using localhost as host, it tries to find a file
> '/tmp/PRServer_127.0.0.1_8585.pid' which is not present on the system.

I meant '/tmp/PRServer_localhost_8585.pid'

> 
> 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.
Comment 2 Leonardo Sandoval Gonzalez 2015-09-04 22:10:52 UTC
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 'localhost'
Comment 3 Leonardo Sandoval Gonzalez 2015-09-15 23:12:05 UTC
Patch sent to the ML.