Bug 4894 - stop webhob issues
Summary: stop webhob issues
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: High major
Target Milestone: 1.5 M3
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-22 19:19 UTC by Jessica
Modified: 2014-01-21 15:09 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jessica 2013-07-22 19:19:28 UTC
After bitbake mc, I tried to stop webhob via: source webhob stop and I'm getting:

1st time:
bash kill (26683) - No such process

Then I tried to start webhob and getting:
Error: bitbake lock state error. System may be already on.

Then I tried to stop webhob again, now I'm getting:
Error: bitbke lock state error.  System may be already off.
manually stop system with bitbake -m / webserverKillAllComponents

when I tried "bitbake -m webserverKillAllComponents", I got Noting PROVIDES 'webserverKillAllComponents'. 

So at this stage I can neither start nor stop webhob
Comment 1 Jessica 2013-07-22 19:24:14 UTC
A follow on issue, after getting into this stage, if I try to run bitbake core-image-minimal, I'm getting the following which is really bad!

jzhang@jzhang-desktop:~/poky-webhob-test/build$ bitbake core-image-minimal
Traceback (most recent call last):
  File "/home/jzhang/poky-webhob-test/bitbake/bin/bitbake", line 341, in <module>
    ret = main()
  File "/home/jzhang/poky-webhob-test/bitbake/bin/bitbake", line 323, in main
    server_connection = server.establishConnection()
  File "/home/jzhang/poky-webhob-test/bitbake/lib/bb/server/xmlrpc.py", line 368, in establishConnection
    return self.connection.connect()
  File "/home/jzhang/poky-webhob-test/bitbake/lib/bb/server/xmlrpc.py", line 298, in connect
    token = self.connection.addClient()
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/home/jzhang/poky-webhob-test/bitbake/lib/bb/server/xmlrpc.py", line 65, in send_content
    xmlrpclib.Transport.send_content(self, h, body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused
DEBUG: Removed the following variables from the environment: LS_COLORS, GNOME_DESKTOP_SESSION_ID, XDG_CURRENT_DESKTOP, GNOME_KEYRING_CONTROL, DISPLAY, LANG, XDG_SESSION_PATH, XAUTHORITY, SESSION_MANAGER, SHLVL, MANDATORY_PATH, WINDOWID, GPG_AGENT_INFO, BBSERVER, GDMSESSION, XDG_SEAT_PATH, XDG_SESSION_COOKIE, LESSOPEN, DBUS_SESSION_BUS_ADDRESS, _, GNOME_KEYRING_PID, DESKTOP_SESSION, JAVA_HOME, LESSCLOSE, DEFAULTS_PATH, UBUNTU_MENUPROXY, OLDPWD, GTK_MODULES, SPEECHD_PORT, XDG_DATA_DIRS, COLORTERM, BUILDDIR, XDG_CONFIG_DIRS
Comment 2 Alexandru Damian 2013-07-29 09:02:53 UTC
This error means that the bitbake server hasn't started. 

Can you please list all the steps you took and the commands and outputs for each step  ?

Thanks,
Alex
Comment 3 Alexandru Damian 2013-08-06 17:51:36 UTC
Fixed, new stop code now merged in the webhob controller.
Comment 4 Andreea Brandusa Proca 2014-01-21 15:09:16 UTC
Now if toaster doesn't stop we have some additional commands:

andreea@andreea-Vostro-460:~/poky/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

# webserverKillAllified in master:e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371.