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.

Ruby on Rails Issue

Discussion in 'General Discussion' started by kshazad, Jul 25, 2011.

Thread Status:
Not open for further replies.
  1. kshazad

    kshazad Member

    Joined:
    Nov 4, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Whenever I try to create ruby on rails applciation in cPanel, I get the following error:

    PHP:
    Your app is NOT installed because there was a problem. Try again or contact our support team

    No supported version of rails found.  

    My current version is:
    ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
    Rails 2.3.11

    Any ideas?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The newest cPanel is now requiring Rails 2.3.12 rather than 2.3.11, so simply run the following command in root SSH on the machine:

    Code:
    gem install rails -v=2.3.12
    Thanks!
     
  3. tomdchi

    tomdchi Well-Known Member

    Joined:
    Feb 24, 2008
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    cPanel Access Level:
    DataCenter Provider
    ok, so what if I need rails 2.3.11 for redmine?? I guess I should let the redmine guys know that cpanel doesn't support installation of their software.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You can have multiple versions of rails on the same machine. cPanel will pick up the latest installed version. It's really simple to have two versions and still support cPanel installing properly:

    Code:
    gem install rails -v=2.3.11
    gem install rails -v=2.3.12
    If you do that, you'll get both versions installed:

    Code:
    gem list --local | grep -i rails
     
  5. iggant

    iggant Registered

    Joined:
    Aug 15, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    What is about if my application require rails 3.0.0.

    Code:
    gem list --local | grep -i rails
    rails (3.0.0)
    And I also receive this error:
    Your app is NOT installed because there was a problem. Try again or contact our support team.

    No supported version of rails found.

    Please, advise something
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    As I stated in this thread:

    You cannot have Rails 3+ on the server and have cPanel work to install Rails applications, because the latest version cPanel will support is Rails 2.3.12 and cPanel will always pick up the latest version you have installed. If it detects anything higher than 2.3.12, it will not work to install applications.

    If you want to use Rails 3, you can do that, but cPanel will not work with it. The only method I know for getting applications to work under Rails 3 would be to use mod_rails + Rails 3 and to manually generate applications. I provided a how-to on doing this, which I discussed in this forum thread:

    http://forums.cpanel.net/f5/installing-mod_rails-rails-3-0-9-cpanel-machine-223162.html

    We have a feature request thread about how cPanel 11.34 will include Rails 3 and mod_rails at this location:

    http://forums.cpanel.net/f145/mod_r...upport-case-44197-a-152577-p2.html#post854282
     
  7. asfik

    asfik Member

    Joined:
    Mar 31, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pamulang, Indonesia
    cPanel Access Level:
    Root Administrator
    Hello,

    I have same issue with the following configuration:

    WHM 11.30.3 (build 5)

    $ ruby -v
    ruby 1.8.7 (2009-06-08 patchlevel 173) [x86_64-linux]

    $ gem -v
    1.3.6

    $ gem list --local | grep -i rails
    rails (2.3.12, 2.3.11, 2.3.5)

    cPanel error:

    Your app is NOT installed because there was a problem. Try again or contact our support team.

    Show Details
    No supported version of rails found.

    Any comments is really appreciated.

    Thank you.
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Try updating Rails as I believe we may have updated it again (per internal case 52362) to Rails 2.3.14:

    Code:
    gem install rails -v=2.3.14
     
  9. Brian

    Brian Well-Known Member

    Joined:
    Dec 1, 2010
    Messages:
    117
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    A quick way to determine the version of Rails that your server is expecting/requiring is to run:

    Code:
    egrep "^my @rails.*-v=" /scripts/installruby
    It will spit out something like this:
    Code:
    my @rails        = ( 'rails',                                     '-v=2.3.14' );
    That would then imply that 2.3.14 is the latest rails version cPanel is expecting. You could then install it per Tristan's above instructions.
     
  10. waland09

    waland09 Registered

    Joined:
    Oct 2, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello,

    I too am having issues creating a new RoR app from cPanel (the error message being "No supported version of rails found").

    I have 2.3.11, 2.3.12, and 2.3.14 installed, but "rails -v" reports "Rails 2.3.12". Could this somehow be causing an issue?

    (and the egrep command up above doesn't work for me because I have no directory /scripts/installruby anywhere that I can find -- only "ruby" and "rails_apps", neither of which has a /scripts directory)

    Thanks in advance for any suggestions!
     
    #10 waland09, Oct 2, 2011
    Last edited: Oct 2, 2011
  11. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    How did you install rails 2.3.14 on the machine? I imagine you have both /usr/bin and /usr/local/bin for rails and that's why you aren't getting 2.3.14 on version check due to it being installed in the wrong location. If that's the case, you'd want to run the rails -v check on the binaries:

    Code:
    /usr/local/bin/rails -v
    /usr/bin/rails -v
    As for /scripts/installruby, that is a file rather than a directory. Also, if you do not have a /scripts directory, I'm uncertain how the machine could be running cPanel, since either that directory (/scripts) or a symlink for that directory to /usr/local/cpanel/scripts should exist on any cPanel machine.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page