Results 1 to 9 of 9

Thread: ruby rails

  1. #1
    Join Date
    Mar 2009
    Posts
    90

    Exclamation ruby rails

    I setup Ruby Rails via Cpanel > Ruby Rails area.

    I have uploaded typo files to /etc/rails_apps/typo and setup mysql database user password. When I visit the domain at http://mydomain.net/typo I get a 503 / Service Temporarily Unavailable error message.

    What did I do wrong exactly?

  2. #2
    Join Date
    Mar 2009
    Location
    Near You..
    Posts
    81
    503 error means your Mongrel server/cluster is not working. You can try this:
    SSH in your account and then,

    #cd /path/to/your/rails/app

    #mongrel_rails start -p <your_port> -e production -d

    #mongrel_rails cluster:tart

    You can try to find the error from the mongrel.log file too.

  3. #3
    Join Date
    Mar 2009
    Posts
    90
    Is 3000 the default port?

    [email protected] [/home/user/etc/rails_apps/typo]# mongrel_rails start -p 3000 -e production -d
    ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/gems.rb:12:in `require': undefined method `gem' for Mongrel::Gems:Module (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel.rb:355
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:11
    from /usr/local/bin/mongrel_rails:18:in `load'
    from /usr/local/bin/mongrel_rails:18
    [email protected] [/home/user/etc/rails_apps/typo]# mongrel_rails clustertart
    ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/gems.rb:12:in `require': undefined method `gem' for Mongrel::Gems:Module (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel.rb:355
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:11
    from /usr/local/bin/mongrel_rails:18:in `load'
    from /usr/local/bin/mongrel_rails:18

  4. #4
    Hello China,

    The path /etc is accessible only to root.

    Just give the path of your home directory for the rails application.

    Once you do that application you can start using cpanel itself.

  5. #5
    Join Date
    Mar 2009
    Location
    Near You..
    Posts
    81
    It seems that the ruby version you are using needs to be updated. Please update the ruby version installed in the server.

    You could also try, "sudo mongrel_rails start --user mongrel --group mongrel"

    The process needs to start under root to be allowed to change their effective user id.

  6. #6
    Join Date
    Mar 2009
    Posts
    90
    Thanks, but how do I update Ruby via Cpanel?


    sudo mongrel_rails start --user mongrel --group mongrel
    ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/gems.rb:12:in `require': undefined method `gem' for Mongrel::Gems:Module (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel.rb:355
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:11
    from /usr/local/bin/mongrel_rails:18:in `load'
    from /usr/local/bin/mongrel_rails:18

  7. #7
    Join Date
    Mar 2009
    Location
    Near You..
    Posts
    81
    Login to SSH as root and run the following command:

    /scripts/installruby

  8. #8
    Join Date
    Mar 2009
    Posts
    90
    Upgrades, and re-ran that command and still getting that error
    [email protected] [~]# sudo mongrel_rails start --user mongrel --group mongrel
    ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/gems.rb:12:in `require': undefined method `gem' for Mongrel::Gems:Module (NoMethodError)
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel.rb:355
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:11
    from /usr/local/bin/mongrel_rails:18:in `load'
    from /usr/local/bin/mongrel_rails:18

  9. #9
    Join Date
    Mar 2009
    Location
    Near You..
    Posts
    81
    You could try this:

    Go to http://www.ruby-lang.org/en
    Download latest version tar file
    tar xjvf ruby-version.tar.bz2
    cd ruby-version
    ./configure --prefix=/usr
    make
    make install

    Now type ruby -v to see your ruby version.

    May be, the following url will help you:

    http://www.urbanpuddle.com/articles/...and-ruby-1-8-5

Similar Threads

  1. [Release] Rails in DA - Ruby on Rails Plugin for DirectAdmin
    By hehachris in forum Other Web Hosting Related Offers
    Replies: 2
    Last Post: 02-25-2008, 07:52 AM
  2. Ruby / Ruby on Rails programmer required for consultancy/advice
    By bumfilter in forum Employment / Job Offers
    Replies: 0
    Last Post: 05-29-2006, 08:17 AM
  3. LF: Ruby on Rails Dev
    By bwb in forum Employment / Job Offers
    Replies: 1
    Last Post: 02-11-2006, 01:10 AM
  4. Ruby on rails?
    By ayksolutions in forum Hosting Security and Technology
    Replies: 4
    Last Post: 12-18-2005, 01:12 AM
  5. Ruby on Rails
    By voxio in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-07-2005, 02:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •