OffbeatAdam

Active Member
Jan 24, 2006
31
0
156
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!
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Is the error produced when they attempt to list available gems, or when attempting to install a gem?
 

OffbeatAdam

Active Member
Jan 24, 2006
31
0
156
San Antonio, TX
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
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?

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

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
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
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
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.
 

OffbeatAdam

Active Member
Jan 24, 2006
31
0
156
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?
 

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
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.
 

OffbeatAdam

Active Member
Jan 24, 2006
31
0
156
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
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.
 

MrHant

Registered
Sep 13, 2008
1
0
51
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.
 
Last edited: