Getting an Error when upgrading from 9.6 to 1.0

Added by Neal Bharadwaj over 7 years ago

Hey All,
While following the upgrade steps, when I try to run the DB migrate, I get an error stating an undefined method for attached_files for class Application controller.

C:\Server\railsapps\redmine1>rake db:migrate RAILS_ENV=production --trace
(in C:/Server/railsapps/redmine1)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `attach_files' for class `ApplicationController'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cor
e_ext/module/aliasing.rb:33:in `alias_method'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cor
e_ext/module/aliasing.rb:33:in `alias_method_chain'
C:/Server/railsapps/redmine1/vendor/plugins/redmine_screenshot_paste/init.rb:40:
in `send'
C:/Server/railsapps/redmine1/vendor/plugins/redmine_screenshot_paste/init.rb:40:
in `included'
C:/Server/railsapps/redmine1/vendor/plugins/redmine_screenshot_paste/init.rb:61:
in `include'
C:/Server/railsapps/redmine1/vendor/plugins/redmine_screenshot_paste/init.rb:61:
in `send'
C:/Server/railsapps/redmine1/vendor/plugins/redmine_screenshot_paste/init.rb:61
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:182:in `call'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:182:in `evaluate_method'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:166:in `call'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:90:in `run'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:90:in `each'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:90:in `send'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:90:in `run'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/cal
lbacks.rb:276:in `run_callbacks'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dis
patcher.rb:51:in `send'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dis
patcher.rb:51:in `run_prepare_callbacks'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:631:in `pre
pare_dispatcher'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:185:in `pro
cess'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `sen
d'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run
'
C:/Server/railsapps/redmine1/config/environment.rb:20
C:/Server/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_orig
inal_require'
C:/Server/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dep
endencies.rb:156:in `require'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dep
endencies.rb:521:in `new_constants_in'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dep
endencies.rb:156:in `require'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with
_call_chain'
C:/Server/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with
_call_chain'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prer
equisites'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prer
equisites'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with
_call_chain'
C:/Server/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with
_call_chain'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_tas
k'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'

C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'

C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_e
xception_handling'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'

C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_e
xception_handling'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Server/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Server/Ruby/bin/rake:19:in `load'
C:/Server/Ruby/bin/rake:19

Replies (5)

RE: Getting an Error when upgrading from 9.6 to 1.0 - Added by Felix Schäfer over 7 years ago

The "redmine_screenshot_paste" plugin causes this error, and from what I've read it's not compatible to 1.0 anymore.

RE: Getting an Error when upgrading from 9.6 to 1.0 - Added by Neal Bharadwaj over 7 years ago

To remove the plugin, do I just delete the folder and restart redmine?
Neal

RE: Getting an Error when upgrading from 9.6 to 1.0 - Added by Neal Bharadwaj over 7 years ago

I got the database to upgrade without any errors. As I am running this on windows following the Windows/Apache guide , I assume the next step is to create and execute new mongrels for the new directory?

RE: Getting an Error when upgrading from 9.6 to 1.0 - Added by Felix Schäfer over 7 years ago

Then you should be able to go on from there.

(1-5/5)