Project

General

Profile

RESOLVED: Upgrading Redmine

Added by Matt Freitag about 11 years ago

Hey all,

I'm trying to upgrade Redmine from 1.4.4 to 2.2.3 and am running into problems with rake.

I'm using Ruby 1.9.3, Rails 3.2.12, rvm 1.16.20

Anyway, just after the "rake aborted!" line it says "superclass mismatch for class Mark" and I'm guessing this is what's screwing up rake. What does it mean and how do I fix this? Let me know if you need more info

Here's the rake generate_secret_token --trace:

[~/redmine-2.2.3]# rake generate_secret_token --trace
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant ANY
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF8
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF16LE
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/i686-linux/psych.so: warning: already initialized constant UTF16BE
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/stream.rb:12: warning: already initialized constant ANY
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/stream.rb:15: warning: already initialized constant UTF8
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/stream.rb:18: warning: already initialized constant UTF16LE
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/stream.rb:21: warning: already initialized constant UTF16BE
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/sequence.rb:42: warning: already initialized constant ANY
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/sequence.rb:45: warning: already initialized constant BLOCK
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/sequence.rb:48: warning: already initialized constant FLOW
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:9: warning: already initialized constant ANY
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:12: warning: already initialized constant PLAIN
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:15: warning: already initialized constant SINGLE_QUOTED
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:18: warning: already initialized constant DOUBLE_QUOTED
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:21: warning: already initialized constant LITERAL
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/scalar.rb:24: warning: already initialized constant FOLDED
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/mapping.rb:16: warning: already initialized constant ANY
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/mapping.rb:19: warning: already initialized constant BLOCK
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/nodes/mapping.rb:22: warning: already initialized constant FLOW
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/visitors/visitor.rb:10: warning: already initialized constant DISPATCH
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/scalar_scanner.rb:8: warning: already initialized constant TIME
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/scalar_scanner.rb:11: warning: already initialized constant FLOAT
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/handler.rb:26: warning: already initialized constant OPTIONS
rake aborted!
superclass mismatch for class Mark
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/parser.rb:33:in `<class:Parser>'
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/parser.rb:32:in `<module:Psych>'
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych/parser.rb:1:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:7:in `require'
/dcs/local/home/hgdm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:7:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/ordered_hash.rb:2:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/ordered_hash.rb:2:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/ordered_options.rb:1:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/activesupport-3.2.12/lib/active_support/ordered_options.rb:1:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/configuration.rb:2:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/configuration.rb:2:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/railtie.rb:2:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/railtie.rb:2:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/engine.rb:1:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/engine.rb:1:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/plugin.rb:1:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/plugin.rb:1:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:3:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/application.rb:3:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails.rb:10:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails.rb:10:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/all.rb:1:in `require'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.12/lib/rails/all.rb:1:in `<top (required)>'
/dcs/local/home/hgdm/redmine-2.2.3/config/application.rb:3:in `require'
/dcs/local/home/hgdm/redmine-2.2.3/config/application.rb:3:in `<top (required)>'
/dcs/local/home/hgdm/redmine-2.2.3/Rakefile:5:in `require'
/dcs/local/home/hgdm/redmine-2.2.3/Rakefile:5:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load_rakefile'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:583:in `raw_load_rakefile'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:89:in `block in load_rakefile'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:88:in `load_rakefile'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:72:in `block in run'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/bin/rake:19:in `load'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/bin/rake:19:in `<main>'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
/dcs/local/home/hgdm/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'


Replies (7)

RE: Upgrading Redmine - Added by Matt Freitag about 11 years ago

I'm guessing this is a really simple fix.

I'm going to start with kill -9 [redminePID]; rvm implode and redo the rvm install. I'll be chronicling my efforts here as I go on the off chance it'll be helpful.

Please do chime in if rvm implode is not the way to go.

Thanks!
Matt

RE: Upgrading Redmine - Added by Jan Niggemann (redmine.org team member) about 11 years ago

There's no [redminePID] as it is run by your application server (rack, passenger, whatever). Try apachectl stop... That said, I don't use rvm - but you seem to use some flavour of linux, check out the installation guides:
RedmineInstall
Install redmine on debian / ubuntu

RE: Upgrading Redmine - Added by Matt Freitag about 11 years ago

couple extra things about my environment: cPanel 11.34.1 on Redhat 5.9. sorry I didn't mention it earlier.

I did also try to use the RedmineInstall guide, but the same thing happened with rake. I haven't used the debian/ubuntu guide since I'm using cPanel and Redhat

installing passenger on cPanel isn't working, either, but then I don't expect commands for Apache2 to work on EasyApache. I have to talk about that with the server admin later.

and Redmine does have its own PID because we can't make it start with apache so I'm using webrick for the moment and running the application on another port my provider happens to have open/available on the server.

any ideas, Jan? or anyone else?

thank you!
Matt

RE: Upgrading Redmine - Added by Jan Niggemann (redmine.org team member) about 11 years ago

OK, so I take it back, you do have a [redminePID] ;-)
As to the rake issue: No idea, sorry...

RE: Upgrading Redmine - Added by Matt Freitag about 11 years ago

Thanks for trying :)

Anyone else out there willing to help out?

RE: Upgrading Redmine - Added by Etienne Massip about 11 years ago

My friend Google tells it's a bundler issue (I don't know which Bundler version you're using but that could only occur with 1.3 pre-releases) that can be resolved by adding psych to Gemfile.

I.e., create a Gemfile.local file containing a gem 'psych' line.

RE: Upgrading Redmine - Added by Matt Freitag about 11 years ago

I guess your Google fu is much stronger than mine is, Etienne. Worked great.

Thank you!

    (1-7/7)