![]() |
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:Am I missing something or why does Litespeed intervene? JM |
You may have multiple ruby install, make sure to use the right now, check it under "Server"->"Rails" tab.
|
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'? |
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. |
yes, gem list shows right_aws (1.10.0) and I made sure I install it with
Code:
sudo gem install right_aws |
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:Cheers, JM |
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. |
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? |
I think you should remove /home/jms/.gem/ruby/1.8/gems and install all gems at server level.
|
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/Code:
sudo gem install highline rigth_http_connectionCode:
sudo rake gems:installThanks mistwang, helpful as always. JM |
| All times are GMT -7. The time now is 02:06 AM. |