Project

General

Profile

Defect #947

some errors occur while I run "rake"

Added by Lin Ye almost 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
Source:
Development
Detected on version:
Blocked:
Alone:
Milestones:
Sprint:

Description

I install the plugins, and it works fine.
Later I try to install another plugin, and some error messages occur.
I thought there are some bugs in the db/migrate/*.rb, it try to rename the column name, but it has been already renamed.
So, the system tips can't find the column name.


rake redmine:plugins:migrate RAILS_ENV=production --trace
  • Invoke redmine:plugins:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:plugins:migrate
    Migrating advanced_roadmap_v2 (Advanced roadmap & milestones plugin)...
    Migrating clipboard_image_paste (Clipboard image paste)...
    Migrating redmine_agile (Redmine Agile plugin (Light version))...
    Migrating redmine_banner (Redmine Banner plugin)...
    Migrating redmine_bootstrap_kit (Redmine Bootstrap Kit plugin)...
    Migrating redmine_checklists (Redmine Checklists plugin (Light version))...
    Migrating redmine_ckeditor (Redmine CKEditor plugin)...
    Migrating redmine_close_button (Redmine Close Button plugin)...
    Migrating redmine_code_review (Redmine Code Review plugin)...
    Migrating redmine_dashboard (Redmine Dashboard plugin)...
    Migrating redmine_jquery_opentip (Redmine JQuery OpenTip)...
    Migrating redmine_lightbox2 (Redmine Lightbox 2)...
    Migrating redmine_theme_changer (Redmine Theme Changer plugin)...
    Migrating redmine_work_time (Redmine Work Time plugin)...
    Migrating scrum (Scrum Redmine plugin)...
    ChangeSprintsDates: migrating ===========================================
    -- rename_column(:sprints, :start_date, :sprint_start_date)
    rake aborted!
    StandardError: An error has occurred, all later migrations canceled:

No such column: sprints.start_date/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:630:in `rename_column_sql'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:484:in `rename_column'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:466:in `block in method_missing'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:438:in `block in say_with_time'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:438:in `say_with_time'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:458:in `method_missing'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:334:in `method_missing'
/opt/redmine/plugins/scrum/db/migrate/20150123075700_change_sprints_dates.rb:3:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:370:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:389:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:528:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `call'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `ddl_transaction'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:719:in `block in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:570:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:551:in `migrate'
/opt/redmine/lib/redmine/plugin.rb:469:in `migrate_plugin'
/opt/redmine/lib/redmine/plugin.rb:441:in `migrate'
/opt/redmine/lib/redmine/plugin.rb:455:in `block in migrate'
/opt/redmine/lib/redmine/plugin.rb:454:in `each'
/opt/redmine/lib/redmine/plugin.rb:454:in `migrate'
/opt/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.4/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.1.4/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'
ActiveRecord::ActiveRecordError: No such column: sprints.start_date
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:630:in `rename_column_sql'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:484:in `rename_column'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:466:in `block in method_missing'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:438:in `block in say_with_time'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:438:in `say_with_time'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:458:in `method_missing'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:334:in `method_missing'
/opt/redmine/plugins/scrum/db/migrate/20150123075700_change_sprints_dates.rb:3:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:370:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:410:in `block in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:389:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:528:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:720:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `call'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:777:in `ddl_transaction'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:719:in `block in migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:700:in `migrate'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:570:in `up'
/usr/local/rvm/gems/ruby-2.1.4/gems/activerecord-3.2.21/lib/active_record/migration.rb:551:in `migrate'
/opt/redmine/lib/redmine/plugin.rb:469:in `migrate_plugin'
/opt/redmine/lib/redmine/plugin.rb:441:in `migrate'
/opt/redmine/lib/redmine/plugin.rb:455:in `block in migrate'
/opt/redmine/lib/redmine/plugin.rb:454:in `each'
/opt/redmine/lib/redmine/plugin.rb:454:in `migrate'
/opt/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.1.4/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.4/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.1.4/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => redmine:plugins:migrate

Also available in: Atom PDF