Bigtop
  1. Bigtop
  2. BIGTOP-783

'service hue stop' cannot stop the hue service in SLES

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: rpm
    • Labels:
      None

      Description

      in SLES, when try to stop a already started hue service by

      # service hue stop
      Stopping Hue web server:                                                                   done
      

      I found the hue service is not stopped, I can still open the web GUI. We can also verify this by the curl command

       # curl http://localhost:8888/accounts/login/
      
      <!DOCTYPE html>
      <html lang="en">
      <head>
      	<meta charset="utf-8">
      	<title>Hue Login</title>
      	<meta name="viewport" content="width=device-width, initial-scale=1.0">
      	<meta name="description" content="">
      	<meta name="author" content="">
      
      	<link href="/static/ext/css/bootstrap.min.css" rel="stylesheet">
      	<link href="/static/css/hue2.css" rel="stylesheet">
      
      	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
      	<!--[if lt IE 9]>
      	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
      	<![endif]-->
      
      	<style type="text/css">
      		body {
      			padding-top: 100px;
      		}
      	</style>
      </head>
      
      <body>
      	<div class="navbar navbar-fixed-top">
      		<div class="navbar-inner">
      			<div class="container-fluid">
      				<a class="brand" href="#">Hue</a>
      			</div>
      		</div>
      	</div>
      
      	<div class="container">
      		<div class="row">
      			<div class="span4 offset4">
      				<form method="POST" action="/accounts/login/" class="well">
      					<label>Username
      						<input name="username" class="input-large" type="text" maxlength="30">
      					</label>
      					<label>Password
      						<input name="password" class="input-large" type="password" maxlength="30">
      					</label>
      
      						<input type="submit" class="btn primary" value="Sign in" />
      					<input type="hidden" name="next" value="/" />
      
      				</form>
      			</div>
      		</div>
      
      	</div>
      </body>
      </html>
      

      the workaround is kill supervisor first, then kill hue process.

      1. access.log
        13 kB
        Johnny Zhang
      2. error.log
        2 kB
        Johnny Zhang
      3. runcpserver.log
        6 kB
        Johnny Zhang
      4. runcpserver.out
        3 kB
        Johnny Zhang
      5. supervisor.log
        3 kB
        Johnny Zhang

        Activity

        Johnny Zhang created issue -
        Johnny Zhang made changes -
        Field Original Value New Value
        Attachment access.log [ 12553549 ]
        Johnny Zhang made changes -
        Attachment error.log [ 12553550 ]
        Johnny Zhang made changes -
        Attachment runcpserver.log [ 12553551 ]
        Johnny Zhang made changes -
        Attachment runcpserver.out [ 12553552 ]
        Hide
        Johnny Zhang added a comment -

        the attachments are logs under /var/log/hue/, the empty logs, like 'shell_input.log' is not attached

        Show
        Johnny Zhang added a comment - the attachments are logs under /var/log/hue/, the empty logs, like 'shell_input.log' is not attached
        Johnny Zhang made changes -
        Attachment supervisor.log [ 12553553 ]
        Hide
        Johnny Zhang added a comment -

        this is a totally guess, the reason might because of 'service hue stop' cannot supervisor, so it cannot stop hue process, in /var/log/hue/supervisor.log

        [14/Nov/2012 13:10:42 +0000] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
        
        Show
        Johnny Zhang added a comment - this is a totally guess, the reason might because of 'service hue stop' cannot supervisor, so it cannot stop hue process, in /var/log/hue/supervisor.log [14/Nov/2012 13:10:42 +0000] supervisor ERROR Process /usr/lib/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
        Hide
        Peter Linnell added a comment -

        Just a comment: /sbin/service is not well supported in SLES. I've never used it by default and I've never seen it documented in SLES docs. What I would recommend is testing via /etc/init.d/service name and see if it fails in the same way.

        Show
        Peter Linnell added a comment - Just a comment: /sbin/service is not well supported in SLES. I've never used it by default and I've never seen it documented in SLES docs. What I would recommend is testing via /etc/init.d/service name and see if it fails in the same way.
        Hide
        Johnny Zhang added a comment -

        Peter Linnell, you mean "/etc/init.d/hue stop" ? I tried it, it is the same.

        Show
        Johnny Zhang added a comment - Peter Linnell , you mean "/etc/init.d/hue stop" ? I tried it, it is the same.
        Hide
        Peter Linnell added a comment -

        Then the bug is most likely in the initscript itself.

        Show
        Peter Linnell added a comment - Then the bug is most likely in the initscript itself.
        Hide
        Roman Shaposhnik added a comment -

        Johnny, thanks for these bugreports – it looks like both of them have the same rootcause so I'm closing this one as a DUP of BIGTOP-782

        Show
        Roman Shaposhnik added a comment - Johnny, thanks for these bugreports – it looks like both of them have the same rootcause so I'm closing this one as a DUP of BIGTOP-782
        Roman Shaposhnik made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4d 9h 33m 1 Roman Shaposhnik 19/Nov/12 06:33
        Resolved Resolved Closed Closed
        214d 17h 21m 1 Roman Shaposhnik 22/Jun/13 00:55

          People

          • Assignee:
            Unassigned
            Reporter:
            Johnny Zhang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development