Project

General

Profile

Migrate database Problem while installing Redmine 1.3.0

Added by Craig Efrein over 12 years ago

Hello,

I am migrating from 1.2.0 to 1.3.0. I restored the database from our production machine to our test redmine machine. I ran the rake db:migrate command and got this error.

RAILS_ENV=production rake db:migrate --trace

[root@xe-redmine-clone redmine]# RAILS_ENV=production rake db:migrate --trace
Please install RDoc 2.4.2+ to generate documentation.
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `requirement' for #<Rails::GemDependency:0x2b73de871dd8>
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:81:in `add_load_paths'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:301:in `add_gem_load_paths'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:301:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:301:in `add_gem_load_paths'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:132:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
/opt/redmine/config/environment.rb:24
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
Tasks: TOP => db:migrate => environment

Thank you in advance for your assistance.

I upgraded rails from 2.3.11 to 2.3.14 and here are all the gems

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.4)
fastthread (1.0.7)
fcgi (0.8.8)
gem_plugin (0.2.3)
i18n (0.4.2)
mongrel (1.1.5)
mysql (2.8.1)
rack (1.1.2)
rails (2.3.14)
rake (0.9.2)
rmagick (2.0.0)


Replies (5)

RE: Migrate database Problem while installing Redmine 1.3.0 - Added by Craig Efrein over 12 years ago

Thank you as always. Unrelated, where can I ask for help on redmine email integration.

Basically,

Client sends email to
Redmine pops or imaps the mailbox
The ticket is added to the support project in redmine
An email is sent to the client with the ticket number.

Craig

RE: Migrate database Problem while installing Redmine 1.3.0 - Added by Etienne Massip over 12 years ago

Check RedmineReceivingEmails in UserGuide.

You'll have to create a Redmine user for this client and set this email address to him.

RE: Migrate database Problem while installing Redmine 1.3.0 - Added by Craig Efrein over 12 years ago

Thank you for the instructions. I don't see though where I can send a confirmation email upon ticket integration. Do you know of a way that can send a confirmation email to the person who sent the support request with the ticket number?

Right now we are using perl scripts to do that but as things change those scripts fail and they are hard to manage.

RE: Migrate database Problem while installing Redmine 1.3.0 - Added by Etienne Massip over 12 years ago

No, AFAIR, there is no notification to the opener when they open the issue, since they open it.

When the issue is open via email, then the sender can simply ask for email delivery confirmation, or you can manually change a field in Redmine, e.g. Status field, to confirm reception.

Or have a look to plugins, I'm sorry I can't help you.

    (1-5/5)