Unicorn can't find gems?

David Palm dvdplm at gmail.com
Tue Jan 19 16:56:16 EST 2010

> Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,
> update your RAILS_GEM_VERSION setting in config/environment.rb for the
> Rails version you do have installed, or comment out RAILS_GEM_VERSION
> to use the latest version installed.

I think I know what this is.

I went nuts on this today. It's Rack 1.1 that is messing with you and stupid stupid rails that, in boot.rb has this:

	rescue Gem::LoadError => load_error
	      $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`... ...

Rails assumes the only reason for failure is a missing Rails install, but if you throw in a #{load_error.inspect} in there the Rack issue shows up loud and clear...

Always always include the actual error in a log statement when you rescue!


> Exception `Errno::EAGAIN' at
> /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:436
> - Resource temporarily unavailable
> I, [2010-01-19T21:25:09.918670 #30184]  INFO -- : reaped
> #<Process::Status: pid=30185,exited(1)> worker=0
> Exception `Errno::ECHILD' at
> /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/unicorn-0.96.0/lib/unicorn.rb:454
> - No child processes
> And then it just repeats.
> I'm using ree both locally and on the server (as you can see), but I'm
> using it through rvm locally.
> Any idea what this might be?
> Thanks,
> Steve
> _______________________________________________
> Unicorn mailing list - mongrel-unicorn at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
> Do not quote signatures (like this one) or top post when replying

More information about the mongrel-unicorn mailing list