<?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>5058</bug_id>
          
          <creation_ts>2013-08-27 23:19:17 +0000</creation_ts>
          <short_desc>can&apos;t kill webhob</short_desc>
          <delta_ts>2013-10-25 08:09: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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessica">jessica.zhang</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>andreea.b.proca</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>35962</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-08-27 23:19:17 +0000</bug_when>
    <thetext>Seems if I didn&apos;t do webhob stop.  After a while, when I tried to use the same set of metadata to run webhob, I will end up with following issues, that I can&apos;t cleanly or at least obvious to cleanup and restart webhob:

jzhang@jzhang-desktop:~/poky-webhob-test/build$ source webhob start
Error: bitbake lock state error. System may be already on.
jzhang@jzhang-desktop:~/poky-webhob-test/build$ source webhob stop
Error: bitbake lock state error. System may be already off.
manually stop system with bitbake -m / webserverKillAllComponents
jzhang@jzhang-desktop:~/poky-webhob-test/build$ bitbake webserverKillAllComponents
Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1173 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.19.1&quot;
BUILD_SYS         = &quot;i686-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130827&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;web-hob:658146fcdcde047940644501f2512d8242dd240b&quot;

ERROR: Nothing PROVIDES &apos;webserverKillAllComponents&apos;

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
jzhang@jzhang-desktop:~/poky-webhob-test/build$ ps -ef|grep bitbake
jzhang   15932 15765  0 15:19 pts/3    00:00:00 grep --color=auto bitbake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35972</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-08-28 06:09:07 +0000</bug_when>
    <thetext>The pid of the web server is in whbmain.pid. Manually killing said PID, and then delete whbmain.pid should clear up the issue.

Note that I changed the command to do this from webhobKillAllComponents to webhobKillAll - bad call, I know, but I find the new name more expressive.

Let me know if this procedure works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36493</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-09-10 15:34:53 +0000</bug_when>
    <thetext>Closing because I think the detailed procedure works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38168</commentid>
    <comment_count>3</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2013-10-25 08:09:07 +0000</bug_when>
    <thetext>Verified in toaster/master:b8228afade3b619ac35255d75f84cc6157de4762.

Now, we can use some additional commands if the server does not stop:

brandusa@andreea-Vostro-460:~/toaster/build$ source toaster stop
The system will stop.
Error: bitbake lock state error. Trying to stop a stopped system ?
If you think the system is hanged up, you can try to manually stop system with the commands

# BBSERVER=localhost:8200 bitbake -m

and

# webserverKillAll</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>