Issues with updating from 1.1.1 to 1.2.1
Added by Vadim Kotov about 13 years ago
Hi,
I have a problem with database migration, db:migrate throws an exception:
# rake db:migrate RAILS_ENV=production --trace rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead. at /home/webmaster/Apps/redmine-1.2.1/lib/tasks/email.rake:170 ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! RubyGem version error: rack(1.0.1 not ~> 1.1.0) /home/webmaster/Apps/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:271:in `require_frameworks' /home/webmaster/Apps/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:134:in `process' /home/webmaster/Apps/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' /home/webmaster/Apps/redmine-1.2.1/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' /home/webmaster/Apps/redmine-1.2.1/config/environment.rb:20 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' /home/webmaster/Apps/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require' /home/webmaster/Apps/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in' /home/webmaster/Apps/redmine-1.2.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require' /home/webmaster/Apps/redmine-1.2.1/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32 /usr/bin/rake:19:in `load' /usr/bin/rake:19 Tasks: TOP => db:migrate => environment
Looks like rack version is wrong. However, I've tried every version of it (1.1.2, 1.1.1, 1.0.1), and error message is the same. I'm trying to upgrade from Redmine 1.1.1 (Rails 2.3.5) to Redmine 1.2.1 (Rails 2.3.11). PostgreSQL 8.4 is used as a database.
Here is my ruby environment (I use JRuby with Tomcat, it worked before):
# gem env RubyGems Environment: - RUBYGEMS VERSION: 1.5.2 - RUBY VERSION: 1.8.7 (2010-12-03 patchlevel 249) [java] - INSTALLATION DIRECTORY: /usr/local/jruby-1.5.6/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/jruby/bin/jruby - EXECUTABLE DIRECTORY: /usr/local/jruby/bin - RUBYGEMS PLATFORMS: - ruby - universal-java-1.6 - GEM PATHS: - /usr/local/jruby-1.5.6/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - "install" => "--env-shebang" - "update" => "--env-shebang" - REMOTE SOURCES: - http://rubygems.org/
And here is my gem list:
# gem list *** LOCAL GEMS *** actionmailer (2.3.11) actionpack (2.3.11) activerecord (2.3.11) activerecord-jdbc-adapter (0.9.7 java) activerecord-jdbcpostgresql-adapter (0.9.7 java) activeresource (2.3.11) activesupport (2.3.11) bouncy-castle-java (1.5.0145.2) columnize (0.3.1) i18n (0.4.2) jdbc-postgres (8.4.702 java) jruby-jars (1.5.6) jruby-openssl (0.7.3) jruby-rack (1.0.10, 1.0.6) postgres-pr (0.6.3) rack (1.1.2, 1.1.1, 1.0.1) rails (2.3.11) rake (0.8.7) rspec (1.3.0) ruby-debug (0.10.3) ruby-debug-base (0.10.3.2 java) rubygems-update (1.5.2, 1.5.0) rubyzip (0.9.4) sources (0.0.1) warbler (1.2.1)
Hope someone could help. Please help me to understand those error messages, as I dont get this notation (~>).
Replies (1)
RE: Issues with updating from 1.1.1 to 1.2.1 - Added by Mischa The Evil about 13 years ago
Vadim Kotov wrote:
[...] problem with database migration, db:migrate throws an exception:
# rake db:migrate RAILS_ENV=production --trace rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead. at /home/webmaster/Apps/redmine-1.2.1/lib/tasks/email.rake:170 ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! RubyGem version error: rack(1.0.1 not ~> 1.1.0) [...]Looks like rack version is wrong. However, I've tried every version of it (1.1.2, 1.1.1, 1.0.1), and error message is the same. [...]
If the error-message is the same with every version you've tried it suggests that none of the additional (1.1.2 and 1.1.1) versions were actually used. I'd suggest to install only one instance of 1.1.x (1.1.1 is recommended at RedmineInstall) and see if that solves your issue.
Vadim Kotov wrote:
[...] as I dont get this notation (~>).
~>
is the pessimistic operator. See http://docs.rubygems.org/read/chapter/16#page74