Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jan 2006
    Location
    San Antonio, TX
    Posts
    31

    Default ruby gems installer problem

    I've been having no issue with the RoR that gets installed through /scripts/installruby, and up until now I had been using the whm interface to install/list gems for users.

    I have two users that are attempting to use the cpanel gem installer, and its producing the following error:

    Bulk updating Gem source index for: http://gems.rubyforge.org
    /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
    ruby 1.8.6 (2007-03-13) [i686-linux]

    Attempting from the command line, produces permissions errors. I eliminated the first by giving write access to the main gems folder, however, the second permission error is related to /usr/bin and quite honestly, not gonna happen.

    In any-case, anyone encountered and found a resolution for the error above?

    Thanks!

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Is the error produced when they attempt to list available gems, or when attempting to install a gem?

  3. #3
    Member
    Join Date
    Jan 2006
    Location
    San Antonio, TX
    Posts
    31

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Is the error produced when they attempt to list available gems, or when attempting to install a gem?
    This was when attempting to install a gem.

    When attempting to list available gems, it simply states that an error occurred, however this is not as important to me as the users using RoR on my server already know exactly what it is they need.

  4. #4
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    Ive been having a somewhat similiar problem when tryin to view the list of avaible gems from cpanel.

    Im constantly getting the error
    There was a problem fetching the list of available modules
    .

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by OffbeatAdam View Post
    This was when attempting to install a gem.

    When attempting to list available gems, it simply states that an error occurred, however this is not as important to me as the users using RoR on my server already know exactly what it is they need.
    Some gems are full-blown applications that want to be installed in system directories, hence would lead to this issue. Which gem were they attempting to install?

    Quote Originally Posted by mtech-hosting
    There was a problem fetching the list of available modules

    Does it work correct from the command line?
    Code:
    gem list --remote
    There is an odd bug I've been unable to track down which causes the cache file to be created containing only the text:
    Code:
    *** REMOTE GEMS ***
    Bulk updating Gem source index for: http://gems.rubyforge.org
    which then produces the error message you see in cPanel. It is intermittent and annoying. Sometimes clearing the cache files (/home/usr/.cpanel/datastore/_scripts_gemwrapper*) will then allow the list be displayed, but not always.

  6. #6
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    this is the output from gem list --remote

    Code:
    /usr/bin/gem:9:in `require': No such file to load -- rubygems (LoadError)
            from /usr/bin/gem:9
    Should add that this is cpanel 16448

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by mtech-hosting View Post
    this is the output from gem list --remote

    Code:
    /usr/bin/gem:9:in `require': No such file to load -- rubygems (LoadError)
            from /usr/bin/gem:9
    Should add that this is cpanel 16448
    Hmm. Are you on a 64-bit OS? Did you install ruby some time ago? There was a bug in the ruby installer, since fixed, that *sounds* similar to that. You might try /scripts/installruby again to resolve that error.

  8. #8
    Member
    Join Date
    Jan 2006
    Location
    San Antonio, TX
    Posts
    31

    Default

    In this case it was Ferret and Chronic. Unfortunately I can honestly admit that I know nothing about RoR (and at the same token, don't see what the big deal is :P).

    As a test, is there a possibility you could throw a gem at me that isn't of that nature and I can try it on a test account real quick just to see if it works?

  9. #9
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Hmm. Are you on a 64-bit OS? Did you install ruby some time ago? There was a bug in the ruby installer, since fixed, that *sounds* similar to that. You might try /scripts/installruby again to resolve that error.
    Nope im on rhel4 32bit. we did do the ruby install once before when we first upgraded to cPanel 11 some months ago. Ill rerun the script and see what happens.

  10. #10
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    yep, seems fixed now after rerunning the script. Thanks

  11. #11
    Member
    Join Date
    Jan 2006
    Location
    San Antonio, TX
    Posts
    31

    Default

    Bulk updating Gem source index for: http://gems.rubyforge.org
    /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
    ruby 1.8.6 (2007-03-13) [i686-linux]

    I'm still getting that issue. I've tried a couple different gems that I assumed weren't binary leading, however as I have no knowledge of Ruby myself its a needle in a haystack I suppose (and for once, Google's answers are sparse.)

    I've tried a good 20 to 30 gems though... I couldn't list which they were, however I'm assuming this is a bit beyond the binary issue now. It doesn't work at all. I'm unable to list what gems are available either. Searching is fine.

    I've killed the cache a number of times in my attempts now.

  12. #12
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by OffbeatAdam View Post
    Bulk updating Gem source index for: http://gems.rubyforge.org
    /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
    ruby 1.8.6 (2007-03-13) [i686-linux]

    I'm still getting that issue. I've tried a couple different gems that I assumed weren't binary leading, however as I have no knowledge of Ruby myself its a needle in a haystack I suppose (and for once, Google's answers are sparse.)

    I've tried a good 20 to 30 gems though... I couldn't list which they were, however I'm assuming this is a bit beyond the binary issue now. It doesn't work at all. I'm unable to list what gems are available either. Searching is fine.

    I've killed the cache a number of times in my attempts now.
    This is a known issue with cPanel and Ruby integration, one we've been trying to track down. The only work around right is to do the gem install from the command line.

  13. #13
    Member
    Join Date
    Jan 2006
    Location
    San Antonio, TX
    Posts
    31

    Default

    Quote Originally Posted by cpanelkenneth View Post
    This is a known issue with cPanel and Ruby integration, one we've been trying to track down. The only work around right is to do the gem install from the command line.
    Ok, thats all I needed to know

    Thanks for all the help kenneth!

  14. #14
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Default

    Sorry for digging old thread, but i`m still having that problem.

    Code:
    Bulk updating Gem source index for: http://gems.rubyforge.org/
    Bulk updating Gem source index for: http://gems.rubyforge.org/
    /usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
    ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-linux]
    Same comes from cPanel and command line
    Any ideas?
    I`m not server owner, i just own reseller account.
    Last edited by MrHant; 09-13-2008 at 03:30 AM. Reason: code tag missing

Similar Threads & Tags
Similar threads

  1. Ruby Gems. What Now? Help!
    By takuhii in forum New User Questions
    Replies: 3
    Last Post: 07-16-2009, 12:07 PM
  2. Ruby Gems Issue
    By robmfc in forum New User Questions
    Replies: 1
    Last Post: 06-15-2009, 07:22 AM
  3. Security issue with ruby gems install.
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 06-05-2008, 07:55 AM
  4. how does one uninstall ruby and gems?
    By betoranaldi in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-10-2008, 06:11 PM
  5. Ruby Gems on Centos 4.5
    By brianc in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-24-2007, 06:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube