right_aws gem not recognized - 503 Service Not Available

#1
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
 
#3
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

LiteSpeed Staff
#4
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.
 
#6
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

LiteSpeed Staff
#7
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.
 
#8
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?
 
#10
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
 
#11
right_aws gem not recognized 503 Service Not Available

So gehts, warum auch immer:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


require rubygems
require rubygems/gem_runner
require rake/gempackagetask

LOAD_PATH << File.dirname__FILE__ /lib

require flexview

spec = Gem::Specification.new do s
s.platform = Gem::platform::RUBY
s.name = "flexview"
s.version = FlexView::VERSION
s.summary = "A component based XML template engine for Ruby on Rails."
s.files = FileListlib/flex_view, lib//.rb, test/, README, Manifest.txt.to_a

# Generate manifest file
File.openManifest.txt, w.write s.files.join"n"

s.require_path = "lib"
s.test_files = Dir.globtests/.rb
s.has_rdoc = true
s.extra_rdoc_files = "README"
end

Rake::GemPackageTask.newspec do pkg
pkg.need_tar = true
end

task :default => "pkg/#spec.name-#spec.version.gem" do
puts "gem saved to pkg/#spec.name-#spec.version.gem"
end
 
#12
right_aws gem not recognized 503 Service Not Available

Hi there, I thought perhaps this would be a good place to put Ruby Gem install requests so new people like me can know if their gem has been installed or not.

I have 2 requests, please let me know if you can install these from the rubyforge repository:

1 ar_mailer for mail queue support

2RedCloth for Textile markup support

I am new to rails and these gems are frequently required in my tutorial projects. Thanks
 
Top