Project

General

Profile

Unable to upgrade from 1.1.1 to 1.1.3

Added by Michael Dirks over 13 years ago

  1. Ruby implementation and version
    - Ruby for Windows | ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
  2. Rails version (rails --version)
    - Rails 2.3.5
  3. Operating system (precise if you're using cygwin when running on Windows)
    - Windows Server 2008, what's cygwin?
  4. Database used, and its version
    - MySQL Community Edition Server 5.1
  5. Ruby-aware server used: Webrick, Mongrel, Thin, etc. If you don't understand this point, you're using Webrick.
    - Mongrel
C:\Domains\nredmine>rake db:migrate
(in C:/Domains/nredmine)
rake aborted!
undefined local variable or method `version_requirements' for #<Rails::GemDepend
ency:0x4e1d970>

(See full trace by running task with --trace)

This is what I get when trying to upgrade to 1.1.3, while 1.1.1 worked fine.
Here's the --trace one

C:\Domains\nredmine>rake db:migrate --trace
(in C:/Domains/nredmine)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined local variable or method `version_requirements' for #<Rails::GemDepend
ency:0x4dbd778>
C:/Domains/nredmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:
119:in `requirement'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:254:in `activate'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:1204:in `gem'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:
73:in `add_load_paths'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `a
dd_gem_load_paths'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `e
ach'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `a
dd_gem_load_paths'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:132:in `p
rocess'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `s
end'
C:/Domains/nredmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `r
un'
C:/Domains/nredmine/config/environment.rb:20
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original
_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
C:/Domains/nredmine/vendor/rails/activesupport/lib/active_support/dependencies.r
b:156:in `require'
C:/Domains/nredmine/vendor/rails/activesupport/lib/active_support/dependencies.r
b:521:in `new_constants_in'
C:/Domains/nredmine/vendor/rails/activesupport/lib/active_support/dependencies.r
b:156:in `require'
C:/Domains/nredmine/vendor/rails/railties/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequi
sites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_cal
l_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_excep
tion_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load'
C:/Ruby187/bin/rake:19

Is this fixable by me somehow, or is it simply redmine failing to upgrade for unknown reasons?


Replies (2)

RE: Unable to upgrade from 1.1.1 to 1.1.3 - Added by Michael Dirks over 13 years ago

Didn't help much, upgrade failed and massive data loss so that I may have to load an backup into the database again.
I have it loading up slowly but then there's almost everything missing since it thinks it's in / and not /redmine for whatever reason. Any Idea?

    (1-2/2)