LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Ruby/Rails (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=20)
-   -   right_aws gem not recognized - 503 Service Not Available (http://www.litespeedtech.com/support/forum/showthread.php?t=3065)

jmackin 05-26-2009 01:09 PM

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

mistwang 05-26-2009 01:15 PM

You may have multiple ruby install, make sure to use the right now, check it under "Server"->"Rails" tab.

jmackin 05-26-2009 01:25 PM

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'?

mistwang 05-26-2009 01:35 PM

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.

jmackin 05-27-2009 03:43 AM

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

jmackin 06-13-2009 05:46 PM

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

mistwang 06-13-2009 06:41 PM

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.

jmackin 06-13-2009 08:09 PM

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?

mistwang 06-15-2009 07:55 AM

I think you should remove /home/jms/.gem/ruby/1.8/gems and install all gems at server level.

jmackin 06-15-2009 02:44 PM

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


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