ruby on rails - shared hosting

Discussion in 'Install/Configuration' started by subhuti, Apr 23, 2010.

  1. subhuti

    subhuti New Member

    Hi!
    I'm trying to setup LiteSpeed (using apache configs ) with RoR
    For this I use this doc from your wiki
    support/wiki/doku.php?id=litespeed_wiki:rails_hosting

    but I still can't run RoR application and I'm getting 503 error
    in error logs I have this

    connection to [/tmp/lshttpd/APVH_example.com:80:testApp.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
    (3 times)

    What I should to do else?

    PS

    I have created file “.ls_rails_config”. in users home
    #RailsApp <name> <App Path> <Rails Evn> <Children Processes> <RunOnStart>
    RailsApp testApp "/lsws/testrails" "development" 4 1

    #RailsAppMap <name> <domain> <URI>
    RailsAppMap testApp "testrails.com" "/"
    RailsAppMap testApp "test.testrails.com" "/"
    Last edited: Apr 23, 2010
  2. NiteWave

    NiteWave Administrator

    can you give more info?

    assume you've replaced the rail app in $homedir/lsws/testrails, and replaced "testrails.com" with your site's domain.
  3. grape

    grape New Member

    Similar 503 Errors

    I have a similar problem. I have a VPS running Debian Lenny and Litespeed Web Server Enterprise v4.0.14. I made a tarball of the Server Root and Web Root prior re-installing the VPS. After re-installing the VPS and LSWS I had nothing but 503 errors on the PHP and Rails sites, but the static HTML sites were serving just fine.

    The log sequence looks like this:

    [000.000.000.000:36734-0#xxxxxxxx.com] connection to [/tmp/lshttpd/xxxxxxxx.com:_.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!

    [000.000.000.000:36734-0#xxxxxxxx.com] connection to [/tmp/lshttpd/xxxxxxxx.com:_.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!

    [000.000.000.000:36734-0#xxxxxxxx.com] connection to [/tmp/lshttpd/xxxxxxxx.com:_.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!

    [000.000.000.000:36734-0#xxxxxxxx.com] Max retries has been reached, 503!

    [000.000.000.000:36734-0#xxxxxxxx.com] oops! 503 Service Unavailable

    [000.000.000.000:36734-0#xxxxxxxx.com] Content len: 0, Request line:
    GET /news.atom?key=8fe1d63ae03146a3ce778ee3fb7b7580d4 HTTP/1.1

    [000.000.000.000:36734-0#xxxxxxxx.com] Redirect: #1, URL: /dispatch.lsapi



    More clues from the usual suspects:

    *The license checks out and has been verified.

    *I have tested this in both a default Rails template as well as an instantiated virtual host with the same results.

    *Document Root Permissions - These should be fine. 755 for directories, 644 for files, etc. Ownership is fine.

    *Server Root Permissions - I suspect these are fine as the server starts and stops, logs and complains, and serves static content like a champ.

    *Rails Context configuration - I am running the easy rails setup. I have never had any trouble with it and never had to configure much of anything.

    *Ruby and Rubygems are Debian Lenny 1.8

    Installed Gems:
    actionmailer (2.3.5)
    actionpack (2.3.5)
    activerecord (2.3.5)
    activeresource (2.3.5)
    activesupport (2.3.5)
    camping (2.0)
    ffi (0.6.3)
    haml (2.2.23)
    rack (1.1.0, 1.0.1)
    rails (2.3.5)
    rake (0.8.7)
    ruby-lsapi (4.0)
    ruby-openid (2.1.7)
    sqlite-ruby (2.2.3)
    sqlite3 (0.0.8)
    sqlite3-ruby (1.2.5)
    test-spec (0.10.0)
    will_paginate (2.3.12)


    If anyone has any ideas, they would certainly be appreciated. I need to get this stuff up and running - and off of the top of my to-do list.

    Thanks,

    Steve
  4. NiteWave

    NiteWave Administrator

  5. grape

    grape New Member

    Just checked this over and created a new context. It appears that this is not the problem. It is probably something right under my nose...
  6. subhuti

    subhuti New Member

    If I use VirtualHosts from Apache config , that then ?
    Last edited: Apr 27, 2010

Share This Page