rack 1.2 version causing misleading error msg

Eric Wong normalperson at yhbt.net
Mon Feb 28 15:51:03 EST 2011


Don Park <don.park at gmail.com> wrote:

  Received: from rubyforge.org (rubyforge.org [127.0.0.1])
    by rubyforge.org (Postfix) with ESMTP id 79A9E1858112;
    Mon, 28 Feb 2011 12:12:48 -0500 (EST)
  Received: from mail-fx0-f50.google.com (mail-fx0-f50.google.com
    [209.85.161.50])
    by rubyforge.org (Postfix) with ESMTP id ADC541858112
    for <mongrel-unicorn at rubyforge.org>;
    Mon, 28 Feb 2011 11:23:10 -0500 (EST)
  Received: by fxm18 with SMTP id 18so4518682fxm.23
    for <mongrel-unicorn at rubyforge.org>;
    Mon, 28 Feb 2011 08:23:09 -0800 (PST)
  Received: by 10.223.114.203 with SMTP id f11mr509500faq.20.1298910133851;
    Mon, 28 Feb 2011 08:22:13 -0800 (PST)
  Received: from [10.0.1.104] (173-8-218-204-Oregon.hfc.comcastbusiness.net
    [173.8.218.204])
    by mx.google.com with ESMTPS id 21sm1637322fav.41.2011.02.28.08.22.11
    (version=SSLv3 cipher=OTHER); Mon, 28 Feb 2011 08:22:12 -0800 (PST)
  Date: Tue, 23 Nov 2010 15:36:36 -0800

Btw, something with your local mail queue is off, and it's not
Rubyforge's (nor Google's fault).

> The problem: (note this is the only ruby on the system and rvm/bundler
> is not being used)
> 
> $ gem list rails
> 
> *** LOCAL GEMS ***
> rails (2.3.10, 2.3.8, 2.3.5)
> 
> $ unicorn_rails
> Missing the Rails 2.3.10 gem. Please `gem install -v=2.3.10 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.
> 
> After much experimentation, the problem is the existence of rack 1.2.1
> 
> $ sudo gem uninstall rack
> 
> Select gem to uninstall:
>  1. rack-1.1.0
>  2. rack-1.2.1
>  3. All versions
> > 2
> 
> donp at donpdonp:~/everyonedelivers$ unicorn_rails

<snip> yup, all is good when only one version of Rack is installed.

This should be fixed in RubyGems 1.6:
  http://blog.segment7.net/2011/02/19/rubygems-gem-activation-is-changing

I'm sure the RubyGems testers would appreciate all the testing/feedback
they can get with this since it's been a problem for a while (though
things like bundler/isolate do a great deal to mitigate the issue).

-- 
Eric Wong


More information about the mongrel-unicorn mailing list