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 gems installer problem

Discussion in 'General Discussion' started by OffbeatAdam, Aug 27, 2007.

  1. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is the error produced when they attempt to list available gems, or when attempting to install a gem?
     
  3. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    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. mtech-hosting

    mtech-hosting Well-Known Member

    Joined:
    Apr 30, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Ive been having a somewhat similiar problem when tryin to view the list of avaible gems from cpanel.

    Im constantly getting the error
    .
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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?


    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. mtech-hosting

    mtech-hosting Well-Known Member

    Joined:
    Apr 30, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    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. mtech-hosting

    mtech-hosting Well-Known Member

    Joined:
    Apr 30, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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. mtech-hosting

    mtech-hosting Well-Known Member

    Joined:
    Apr 30, 2006
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    yep, seems fixed now after rerunning the script. Thanks
     
  11. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    Ok, thats all I needed to know :)

    Thanks for all the help kenneth!
     
  14. MrHant

    MrHant Registered

    Joined:
    Sep 13, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Sorry for digging old thread, but i`m still having that problem.

    Code:
    Bulk updating Gem source index for: [url]http://gems.rubyforge.org/[/url]
    Bulk updating Gem source index for: [url]http://gems.rubyforge.org/[/url]
    /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.
     
    #14 MrHant, Sep 13, 2008
    Last edited: Sep 13, 2008
Loading...

Share This Page