LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > right_aws gem not recognized - 503 Service Not Available

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2009, 01:09 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Default right_aws gem not recognized - 503 Service Not Available

I'm using the right_aws gem for Amazon S3 access in a rails application.

I get a 503 Service Not Available trying to access the website. stderr.log output:

Code:
2009-05-26 19:58:21.755 [STDERR] Missing these required gems:
  right_aws  

You're running:
  ruby 1.8.6.111 at /usr/bin/ruby1.8
  rubygems 1.3.2 at /.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.
However, the gem IS installed and it works. I start up WEBrick and access the website no worries at all.

Am I missing something or why does Litespeed intervene?

JM
Reply With Quote
  #2  
Old 05-26-2009, 01:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You may have multiple ruby install, make sure to use the right now, check it under "Server"->"Rails" tab.
Reply With Quote
  #3  
Old 05-26-2009, 01:25 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Server/Ruby Rails/Ruby Path points to /usr/local/bin/ruby which is symlinked to /usr/bin/ruby1.8. There doesn't seem to be another ruby installed.

What do you mean by 'make sure to use the right now'?
Reply With Quote
  #4  
Old 05-26-2009, 01:35 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
sorry, a typo, should be the "right one".
Does "gem list"
show "right_aws"?
Maybe it was installed as a user level gem, not a system level gem.
Reply With Quote
  #5  
Old 05-27-2009, 03:43 AM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
yes, gem list shows right_aws (1.10.0) and I made sure I install it with

Code:
sudo gem install right_aws
to be at system level
Reply With Quote
  #6  
Old 06-13-2009, 05:46 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Hi mistwang

I'm still trying to solve this problem.

I made sure that right_aws (1.10.0) is installed with sudo and yet it LS still tells me that it doesn't find it?

stderr.log output:

Code:
2009-06-14 00:41:32.290 [STDERR] Missing these required gems:
  right_aws  

You're running:
  ruby 1.8.6.111 at /usr/bin/ruby1.8
  rubygems 1.3.2 at /.gem/ruby/1.8, /usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.
Do you know of a work around or can you tell me how to investigate the problem further.

Cheers,

JM
Reply With Quote
  #7  
Old 06-13-2009, 06:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
check where is the right_aws gem installed,
under /.gem/ruby/1.8 or /usr/lib/ruby/gems/1.8?

Should get rid of /.gem/ruby/1.8, it might be for root user only.
Reply With Quote
  #8  
Old 06-13-2009, 08:09 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
right_aws is installed under

/usr/lib/ruby/gems/1.8/gems/right_aws-1.10.0

permissions are

drwxr-xr-x 4 root root 4.0K May 27 10:16 right_aws-1.10.0

There is no /.gem/ruby/1.8. However, there is a

/home/jms/.gem/ruby/1.8/gems

in which directory there are only two gems

drwxr-xr-x 5 jms jms 4.0K May 26 19:14 highline-1.5.1
drwxr-xr-x 3 jms jms 4.0K May 26 13:19 right_http_connection-1.2.4

Does the fact that the path is /usr/lib/ruby/gems/1.8/gems rather than /user/lib/ruby/gems/1.8 mean anything?
Reply With Quote
  #9  
Old 06-15-2009, 07:55 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think you should remove /home/jms/.gem/ruby/1.8/gems and install all gems at server level.
Reply With Quote
  #10  
Old 06-15-2009, 02:44 PM
jmackin jmackin is offline
Member
 
Join Date: Apr 2009
Posts: 22
Yes, it finally works... This is what I had to do:

1. Remove the hidden directory in my user directory

Code:
sudo rm -r ~/.gem/
2. Reinstall the two gems that were located in that .gem directory (rake needs right_http_connection in order to work).

Code:
sudo gem install highline rigth_http_connection
3. Re-run rake command as sudo

Code:
sudo rake gems:install
4. Restart litespeed

Thanks mistwang, helpful as always.

JM
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:47 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.