Error 503 after upgrade

Discussion in 'Ruby/Rails' started by palb, Mar 5, 2008.

  1. palb

    palb Well-Known Member

    I've upgraded to the latest lsws 3.3.7. I've also upgraded all gems incl. rails 2.0.2. Now, after adding a new app to the server, I get an 503 error message in the drop down layer when clicking on "About your application
  2. palb

    palb Well-Known Member

    I also see that when I access an rails 1.2.3 app it's seems to start two instances of ruby. Should just be one, right?
  3. palb

    palb Well-Known Member

    The app in rails 2.0.2 works when I start it with Webrick. It's something with LSWS.
  4. mistwang

    mistwang LiteSpeed Staff

  5. palb

    palb Well-Known Member

    The log says I didn't install rails 2.0.2. But I did. The only thing is that it doesn't show up in /usr/local/lib/ruby/gems/1.8/gems/, which is really weird. When I do "gem list" it says I have rails 2.0.2 and 1.2.3.

    It should be there, right? Do you have any idea what could be wrong? I have these variables in my .profile:

    export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH
    export GEM_PATH=/usr/local/lib/ruby/gems/1.8
    export GEM_HOME=/usr/local/lib/ruby/gems/1.8/gems
  6. palb

    palb Well-Known Member

    I think I found the problem. With this setup I obviously got a gem repository inside the directory I thought where the repository, and there where all the gems (if you follow). So it should be:

    export GEM_PATH=/usr/local/lib/ruby/gems/1.8
    export GEM_HOME=/usr/local/lib/ruby/gems/1.8

    Not much of a LSWS problem but it might help someone else.

Share This Page