Problems upgrading to 2.X from 1.2 (bundler rails dependency messages)
Added by Michael Williamson almost 12 years ago
Hi,
I am trying to upgrade from redmine 1.2 to redmine 2.1 (stable branches) and am running into problems using bundler that I suspect aren't redmine related but are rather distribution related. I am using Ubuntu server 10.10, gem list and script/about are included below. When I try to run bundle I get:
www-data@redmine:/home/www/redmine$ bundle install --without development test /var/lib/gems/1.8/gems/bundler-1.2.2/lib/bundler/dsl.rb:82:in `gem': You cannot specify the same gem twice with different version requirements. You specified: rails (= 3.2.8) and rails (= 2.3.14)
Any insight as to how to diagnose / repair? I've tried running "gem update", which seems to pass but I don't get any further than this error message.
Thanks.
-Mike
System information
www-data@redmine:/home/www/redmine$ RAILS_ENV=production script/about About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.3.7 Rack version 1.1.1 Rails version 2.3.11 Active Record version 2.3.11 Active Resource version 2.3.11 Action Mailer version 2.3.11 Active Support version 2.3.11 Application root /home/www/redmine-1.2 Environment production Database adapter mysql Database schema version 20110511000000 About your Redmine plugins Google Analytics plugin 0.2.0 reCAPTCHA for user self registration 0.1.0 Redmine Favourite Projects plugin 0.4.4 Redmine Wiki Extensions plugin 0.3.7 Redmine Wiki Notes plugin 0.0.1 Embedded 0.0.1 Redmine Better Gantt Chart plugin 0.6.1 Redmine Silencer plugin 0.0.1 cladmin@redmine:~$ gem list *** LOCAL GEMS *** actionmailer (3.2.9, 2.3.11) actionpack (3.2.9, 2.3.11) activemodel (3.2.9) activerecord (3.2.9, 2.3.11) activeresource (3.2.9, 2.3.11) activesupport (3.2.9, 2.3.11) arel (3.0.2) builder (3.1.4, 3.0.4) bundler (1.2.2) daemons (1.1.9, 1.1.4) erubis (2.7.0) gem_plugin (0.2.3) hike (1.2.1) i18n (0.6.1, 0.4.2) journey (1.0.4) json (1.7.5) mail (2.5.2, 2.4.4) mime-types (1.19) multi_json (1.3.7) polyglot (0.3.3) rack (1.4.1, 1.1.1) rack-cache (1.2) rack-ssl (1.3.2) rack-test (0.6.2) rails (3.2.9, 2.3.11) railties (3.2.9) rake (10.0.2, 0.8.7) rdoc (3.12) sprockets (2.8.1, 2.2.1) thor (0.16.0) tilt (1.3.3) treetop (1.4.12) tzinfo (0.3.35)
Replies (4)
RE: Problems upgrading to 2.X from 1.2 (bundler rails dependency messages)
-
Added by Ivan Cenov almost 12 years ago
You are trying to execute bundler in the root directory of Redmine 1.2. I suppose this will not work.
Instead, you have to download the 2.x Redmine and execute bundler from its root. It will probably say that you have execute 'bundle update rails'.
A discussion about using Thin & Redmine 2.x.x.
RE: Problems upgrading to 2.X from 1.2 (bundler rails dependency messages)
-
Added by Michael Williamson almost 12 years ago
Hmmm. I'm pretty sure I had this out of the 2.1 root. I had switched the /home/www/redmine (a link) back to the 1.2 directory prior to running the script/about for the post.
I suspect that the plugins (which I copied over) may be the root cause. I will try removing them from the 2.1 root and try running bundler again.
Thanks for the hints.
-Mike
RE: Problems upgrading to 2.X from 1.2 (bundler rails dependency messages)
-
Added by Tike Jhya almost 12 years ago
You cannot specify the same gem twice with different version requirements. You specified: rails (= 3.2.8) and rails (= 2.3.14)
Check Gemfile, you might have that in two place otherwise, you might have some plugin which has Gemfile stating diff rail version.
RE: Problems upgrading to 2.X from 1.2 (bundler rails dependency messages)
-
Added by Michael Williamson almost 12 years ago
Yes. I had copied the plugins over following the wiki instructions for upgrading. There should probably be a note in the wiki about not copying the plugins over but instead re-installing them for the version of redmine to which you are upgrading.
Once I deleted the plugins from the directory the error message went away.
Thank you for your help.