The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM/cPanel closing my rails server

Discussion in 'General Discussion' started by Webmas-C, Nov 16, 2013.

  1. Webmas-C

    Webmas-C Registered

    Joined:
    Nov 16, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have read a fair bit of documentation and done a few google searches, it has been over a week and I cannot seem to work this out.
    I am running a rails server which works fine for about 20 hours after which it is mysteriously shut down.

    Rails server on screen using following command:
    Code:
    rails s -p 80
    I have killed the httpd process and ended the chkservd process (which was periodically closing my rails server).
    As previously mentioned the rails server works fine for about a day before which it ends.

    The RoR error log:
    Code:
    Started GET "/whm-server-status" for 127.0.0.1 at 2013-11-15 13:20:01 -0600
    
    ActionController::RoutingError (No route matches [GET] "/whm-server-status"):
      actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
      actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
      railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
      railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
      activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
      activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
      activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
      railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
      actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
      rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
      rack (1.5.2) lib/rack/runtime.rb:17:in `call'
      activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
      rack (1.5.2) lib/rack/lock.rb:17:in `call'
      actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
      railties (4.0.0) lib/rails/engine.rb:511:in `call'
      railties (4.0.0) lib/rails/application.rb:97:in `call'
      rack (1.5.2) lib/rack/lock.rb:17:in `call'
      rack (1.5.2) lib/rack/content_length.rb:14:in `call'
      rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
      /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
      /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
      /usr/local/rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
    
    
      Rendered /usr/local/rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
      Rendered /usr/local/rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.9ms)
      Rendered /usr/local/rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
      Rendered /usr/local/rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (49.4ms)
    - - - Updated - - -

    *Thank you so much for reading!
     
  2. Sys Admin

    Sys Admin Well-Known Member

    Joined:
    Apr 29, 2007
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    What's listening on port 80 then? try "lsof -i :80"
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate a little more on why you are killing the Apache and Chkservd processes? Are they interfering with your Rails implementation in some way?

    Thank you.
     
Loading...

Share This Page