efigence / redmine_accounting

Plugin for displaying project history
GNU General Public License v3.0
0 stars 0 forks source link

Error during migration RM 2.5.1 #1

Open darioo opened 10 years ago

darioo commented 10 years ago

I have got error during migration:

Migrating redmine_accounting (Redmine Accounting plugin)... == PopulateProjectVersionsWithExistingProjects: migrating ==================== rake aborted! An error has occurred, all later migrations canceled:

undefined method created_by=' for #<ProjectVersion:0x00000006d6f0f0>/usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activemodel-3.2.17/lib/active_model/attribute_methods.rb:407:inmethod_missing' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/attribute_methods.rb:149:in method_missing' /usr/local/inp/redmine/plugins/redmine_accounting/lib/redmine_accounting/patches/project_patch.rb:26:increate_project_version' /usr/local/inp/redmine/plugins/redmine_accounting/db/migrate/002_populate_project_versions_with_existing_projects.rb:4:in block in change' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/relation/delegation.rb:6:ineach' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/relation/delegation.rb:6:in each' /usr/local/inp/redmine/plugins/redmine_accounting/db/migrate/002_populate_project_versions_with_existing_projects.rb:3:inchange' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:407:in block (2 levels) in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:407:inblock in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in with_connection' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:389:inmigrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:528:in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:720:inblock (2 levels) in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:777:in call' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:777:inddl_transaction' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:719:in block in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:ineach' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:in migrate' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:570:inup' /usr/local/inp/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:551:in migrate' /usr/local/inp/redmine/lib/redmine/plugin.rb:452:inmigrate_plugin' /usr/local/inp/redmine/lib/redmine/plugin.rb:424:in migrate' /usr/local/inp/redmine/lib/redmine/plugin.rb:438:inblock in migrate' /usr/local/inp/redmine/lib/redmine/plugin.rb:437:in each' /usr/local/inp/redmine/lib/redmine/plugin.rb:437:inmigrate' /usr/local/inp/redmine/lib/tasks/redmine.rake:126:in block (3 levels) in <top (required)>' /usr/local/inp/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:ineval' /usr/local/inp/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `

' Tasks: TOP => redmine:plugins:migrate (See full trace by running task with --trace)

rlisowski commented 9 years ago

Please provide information about environment and plugins list. You can fiund it on /admin/info page eg:

Environment:
  Redmine version                2.6.0.stable
  Ruby version                   1.9.3-p448 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  wiki_graphviz_plugin           0.6.0
darioo commented 9 years ago

Environment: Redmine version 2.5.1.stable.13087 Ruby version 2.1.1-p76 (2014-02-24) [x86_64-linux] Rails version 3.2.17 Environment production Database adapter Mysql2 SCM: Subversion 1.6.11 Git 1.7.1 Filesystem
Redmine plugins: a_common_libs 1.1.1 clipboard_image_paste 1.9 copy_parent_issue_id 1.0.0 default_roles 0.0.5 enhanced_queries 0.2 extended_fields 0.2.3.1 extra_queries 0.0.1 global_roles 0.0.1 hooks_manager 1.0.0 localizable 0.3.0 luxury_buttons 1.2.0 parent_issue_filter 1.0.0 planner 0.4 project_alias 0.1.0 quick_view 0.0.5 recurring_tasks 1.3.0 redmine_admin_monitor 1.0.0 redmine_agile 1.3.5 redmine_all_files 0.0.3 redmine_author_notification_emails 1.0.0 redmine_auto_percent 0.0.1 redmine_auto_watchers 1.0.0 redmine_banner 0.1.0 redmine_base_deface 0.0.1 redmine_base_select2 0.0.1 redmine_better_crossprojects 0.3 redmine_better_project_overview 1.0.0 redmine_changeauthor 1.0.1 redmine_code_review 0.6.3.1 redmine_contacts 3.4.4 redmine_contacts_helpdesk 2.3.0 redmine_default_columns 0.1.1 redmine_default_version 0.0.3 redmine_dmsf 1.4.8 stable redmine_documents 1.0.0 redmine_extra_query_operators 0.1.1 redmine_favourite_projects 0.7 redmine_group_owners 1.0.0 redmine_gsc_plantillas 0.1.0 redmine_holidays_plugin 0.0.1 redmine_importer 1.2.2 redmine_improved_searchbox 0.0.3 redmine_improved_subtasks 0.0.1 redmine_inline_note_images_plugin 0.0.1 redmine_involvement_filter 0.2.0 redmine_issue_checklist 2.0.7 redmine_issue_detailed_tabs_time 0.1.0 redmine_issue_icons 1.0.0 redmine_issue_reminder 0.0.1 redmine_issue_templates 0.0.8 redmine_issues_poll 0.2.0 redmine_issues_sidebar_time_entries_links 0.0.1 redmine_landing_page 0.1.0 redmine_lightbox 0.0.1 redmine_log_time_control 0.0.2 redmine_logs 0.0.5 redmine_mail_handler_clean_body_regexp 0.1 redmine_multiprojects_issue 0.1 redmine_my_page_queries 2.1.6 redmine_mylyn_connector 2.8.2.stable redmine_open_links_in_new_window 0.0.3 redmine_open_version_filter 0.0.2 redmine_own_time_entries 0.0.2 redmine_people 0.1.8 redmine_pretend 0.0.3 redmine_questions 0.0.5 redmine_remember_logged_date 0.1 redmine_restricted_members_managament 0.0.3 redmine_ruby_code 0.0.1 redmine_save_spent_time_queries 0.0.1 redmine_silencer 0.4.0 redmine_spent_time 2.6.6 redmine_subtasks_inherited_fields 0.0.2 redmine_sudo 0.0.1 redmine_tags 2.1.0 redmine_theme_changer 0.1.1 redmine_timesheet_accept 0.0.4 redmine_timesheet_plugin 0.8.4 redmine_touch 0.0.2 redmine_user_mentions 1.1.0 redmine_vividtone_my_page_blocks 1.2 (20120610) redmine_watcher_groups 1.0.0 redmine_zenedit 0.0.2 role_shift 0.1.0b sidebar 0.1.1 sidebar_hide 0.0.7 single_auth 1.1 unread_issues 0.0.1 wiking 1.0.0b