[Rubygems-developers] [ rubygems-Bugs-29056 ] RubyGems 1.6.0 seems to break Capistrano

noreply at rubyforge.org noreply at rubyforge.org
Mon Mar 7 19:12:37 EST 2011


Bugs item #29056, was opened at 2011-03-03 11:17
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29056&group_id=126

Category: other
Group: v1.6.x
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: Dave Verwer (daveverwer)
>Assigned to: Ryan Davis (zenspider)
Summary: RubyGems 1.6.0 seems to break Capistrano

Initial Comment:
This is going to be a fairly vague bug report and I apologise for that in advance, feel free to ignore if you can not reproduce.

I did a rubygems update and got 1.6.0, after that every time I ran cap, even something as innocuous as "cap -V" in a directory with no capfile in it I got the following error message:

/Library/Ruby/Site/1.8/rubygems.rb:267:in `activate': can't activate net-ssh (= 2.0.4) for [], already activated net-ssh-2.1.3 for [] (Gem::LoadError)

installing RubyGems 1.5.0 again fixes the problem.

Capistrano versions installed are:
capistrano (2.5.19, 2.5.2)

Net-SSH versions are:
net-ssh (2.1.3, 2.0.4, 1.1.4)



----------------------------------------------------------------------

>Comment By: Ryan Davis (zenspider)
Date: 2011-03-07 16:12

Message:
I have an exact repro and am looking into this now.

----------------------------------------------------------------------

Comment By: James Tucker (raggi)
Date: 2011-03-07 15:35

Message:
Looks like the new activation code is broken for some normal cases.

https://gist.github.com/d316ea3fc642dbaca107 should fix it, but I haven't written tests yet.

----------------------------------------------------------------------

Comment By: Dalibor Filus (noice)
Date: 2011-03-07 00:51

Message:
I can confirm this too on OS X Snow Leopard:

noice-macbook% cap deploy
/Library/Ruby/Site/1.8/rubygems.rb:267:in `activate': can't activate net-ssh (= 2.0.4) for [], already activated net-ssh-2.1.3 for [] (Gem::LoadError)

noice-macbook% gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.6.1
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-10
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /Users/daliborfilus/.gem/ruby/1.8
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

noice-macbook% gem -v
1.6.1

noice-macbook% gem list capi       

*** LOCAL GEMS ***

capistrano (2.5.19, 2.5.2)
capistrano-ext (1.2.1)

noice-macbook% gem list net-ssh

*** LOCAL GEMS ***

net-ssh (2.1.3, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.0)

Tried to remove new versions of net-ssh, reinstalling old capistrano, removing new versions, installing just new versions... But I can't remove old net-ssh because of dependency issues, etc...


----------------------------------------------------------------------

Comment By: Dave Verwer (daveverwer)
Date: 2011-03-04 02:08

Message:
Full gem list


*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.5, 3.0.3, 2.3.5, 1.3.6)
actionpack (3.0.5, 3.0.3, 2.3.5, 1.13.6)
actionwebservice (1.2.6)
activemodel (3.0.5, 3.0.3)
activerecord (3.0.5, 3.0.3, 2.3.5, 1.15.6)
activeresource (3.0.5, 3.0.3, 2.3.5)
activesupport (3.0.5, 3.0.3, 2.3.5, 1.4.4)
acts_as_ferret (0.5.2, 0.4.3)
addressable (2.2.4)
arel (2.0.9, 2.0.6)
builder (3.0.0, 2.1.2)
bundler (1.0.10, 1.0.7)
capistrano (2.5.19, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
classifier (1.3.3)
configuration (1.2.0)
daemons (1.1.0, 1.0.10)
data_objects (0.10.3)
datamapper (1.0.2)
directory_watcher (1.3.2)
dm-aggregates (1.0.2)
dm-constraints (1.0.2)
dm-core (1.0.2)
dm-do-adapter (1.0.2)
dm-migrations (1.0.2)
dm-serializer (1.0.2)
dm-sqlite-adapter (1.0.2)
dm-timestamps (1.0.2)
dm-transactions (1.0.2)
dm-types (1.0.2)
dm-validations (1.0.2)
dnssd (1.4, 0.6.0)
do_sqlite3 (0.10.3)
erubis (2.6.6)
extlib (0.9.15)
faraday (0.5.7)
faraday_middleware (0.3.2)
fast-stemmer (1.0.0)
fastercsv (1.5.4)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.8, 0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
github (0.6.0, 0.4.5)
haml (3.0.25)
hashie (1.0.0)
highline (1.6.1, 1.5.2, 1.5.0)
hpricot (0.8.4, 0.8.3, 0.6.164)
i18n (0.5.0)
jekyll (0.10.0)
jk-ferret (0.11.8.3, 0.11.8.2)
json (1.5.1, 1.4.6)
json_pure (1.5.1)
launchy (0.4.0, 0.3.7)
libxml-ruby (1.1.4, 1.1.2)
liquid (2.2.2)
mail (2.2.15, 2.2.14, 2.2.12)
maruku (0.6.0)
mime-types (1.16)
mongrel (1.1.5)
multi_json (0.0.5)
multi_xml (0.2.1)
multipart-post (1.1.0)
needle (1.3.0)
net-scp (1.0.4, 1.0.1)
net-sftp (2.0.5, 2.0.1, 1.1.1)
net-ssh (2.1.3, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
polyglot (0.3.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7, 0.5.6)
rails (3.0.5, 3.0.3, 2.3.5, 1.2.6)
railties (3.0.5, 3.0.3)
rake (0.8.7, 0.8.3)
rdiscount (1.6.8, 1.6.5)
RedCloth (4.2.7, 4.2.3, 4.1.1)
ruby-openid (2.1.8, 2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.6.0, 1.5.0, 1.4.1, 1.3.7)
rubynode (0.1.5)
simple_oauth (0.1.4)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3, 1.3.2, 1.2.4)
stringex (1.2.0, 1.1.0)
syntax (1.0.0)
termios (0.9.4)
text-format (1.0.0)
text-hyphen (1.0.2, 1.0.0)
thor (0.14.6)
treetop (1.4.9)
twitter (1.1.2)
tzinfo (0.3.24, 0.3.23)
uuidtools (2.1.2)
xmpp4r (0.5, 0.4)


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2011-03-03 15:14

Message:
Can I see a full `gem list`?  I can't reproduce with just the gems you've listed:


$ GEM_HOME=~/tmp/gems GEM_PATH=~/tmp/gems gem list

*** LOCAL GEMS ***

capistrano (2.5.19, 2.5.2)
highline (1.6.1)
needle (1.3.0)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.1.3, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1)


$ GEM_HOME=~/tmp/gems GEM_PATH=~/tmp/gems ~/tmp/gems/bin/cap -V
Capistrano v2.5.19


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29056&group_id=126


More information about the Rubygems-developers mailing list