Closed tazzytazzy closed 9 years ago
Try the https://github.com/alexbevi/redmine_knowledgebase/tree/redmine-3.0-compat branch and let me know if that helps ...
@tazzytazzy did the compat branch work? I'm going to close this issue (soon-ish) unless there's more info you can provide to help me troubleshoot
Sorry for the delay. Yes. This fixed it. Thanks. :-)
Upgrading from redmine 2.3 to 3. Steps: Fresh install of ruby/rails/redmine. Install redmine 3. Copy database settings file. Download/clone knowledgbase plugin. Run: bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:plugins:migrate RAILS_ENV=production
That didn't work. So, then I did this to remove the tables.. This worked, and validated tables are gone (I only had a couple entries, so it doesn't matter):
/opt/redmine/redmine-3.0.3$ bundle exec rake redmine:plugins:migrate NAME=redmine_knowledgebase RAILS_ENV=production VERSION=0 --trace * Invoke redmine:plugins:migrate (first_time) * Invoke environment (first_time) * Execute environment * Execute redmine:plugins:migrate Migrating redmine_knowledgebase (Knowledgebase)... == 20121030102100 AddProjectIdToCategories: reverting ========================= -- remove_column(:kb_categories, :project_id) -> 0.0077s == 20121030102100 AddProjectIdToCategories: reverted (0.0079s) ================
== 20121005075010 AddUpdaterToArticle: reverting ============================== -- remove_column(:kb_articles, :updater_id) -> 0.0056s == 20121005075010 AddUpdaterToArticle: reverted (0.0058s) =====================
== 20110131145123 AddProjectIdToArticles: reverting =========================== -- remove_column(:kb_articles, :project_id) -> 0.0049s == 20110131145123 AddProjectIdToArticles: reverted (0.0051s) ==================
== 20100329103527 AddCommentsCountToArticles: reverting ======================= -- remove_column(:kb_articles, :comments_count) -> 0.0054s == 20100329103527 AddCommentsCountToArticles: reverted (0.0056s) ==============
== 20100317201659 AddRatingsToArticles: reverting ============================= == 20100317201659 AddRatingsToArticles: reverted (0.0021s) ====================
== 20100216000133 AddNestedSetBoundriesToCategory: reverting ================== -- remove_column(:kb_categories, :lft) -> 0.0051s -- remove_column(:kb_categories, :rgt) -> 0.0046s == 20100216000133 AddNestedSetBoundriesToCategory: reverted (0.0101s) =========
== 20100213201848 AddViewingTables: reverting ================================= == 20100213201848 AddViewingTables: reverted (0.0097s) ========================
== 20100213145708 AddAuthorToArticle: reverting =============================== -- remove_column(:kb_articles, :author_id) -> 0.0044s == 20100213145708 AddAuthorToArticle: reverted (0.0046s) ======================
== 20100211212704 CreateArticles: reverting =================================== -- drop_table(:kb_articles) -> 0.0040s == 20100211212704 CreateArticles: reverted (0.0042s) ==========================
== 20100211210218 AddParentIdToCategories: reverting ========================== -- remove_column(:kb_categories, :parent_id) -> 0.0076s == 20100211210218 AddParentIdToCategories: reverted (0.0079s) =================
== 20100210212009 CreateCategories: reverting ================================= -- drop_table(:kb_categories) -> 0.0024s == 20100210212009 CreateCategories: reverted (0.0026s) ========================
* Invoke db:schema:dump (first_time) * Invoke environment * Invoke db:load_config (first_time) * Execute db:load_config \ Execute db:schema:dump
---then tried again----- /opt/redmine/redmine-3.0.3$ rm -rf public/plugin_assets/redmine_knowledgebase/
/opt/redmine/redmine-3.0.3$ bundle exec rake redmine:plugins:migrate NAME=redmine_knowledgebase RAILS_ENV=production --trace * Invoke redmine:plugins:migrate (first_time) * Invoke environment (first_time) * Execute environment * Execute redmine:plugins:migrate Migrating redmine_knowledgebase (Knowledgebase)... == 20100210212009 CreateCategories: migrating ================================= -- create_table(:kb_categories) -> 0.0038s == 20100210212009 CreateCategories: migrated (0.0041s) ========================
== 20100211210218 AddParentIdToCategories: migrating ========================== -- add_column(:kb_categories, :parent_id, :int) -> 0.0058s == 20100211210218 AddParentIdToCategories: migrated (0.0060s) =================
== 20100211212704 CreateArticles: migrating =================================== -- create_table(:kb_articles) -> 0.0049s == 20100211212704 CreateArticles: migrated (0.0051s) ==========================
== 20100213145708 AddAuthorToArticle: migrating =============================== -- add_column(:kb_articles, :author_id, :int, {:default=>0, :null=>false}) -> 0.0051s == 20100213145708 AddAuthorToArticle: migrated (0.0053s) ======================
== 20100213201848 AddViewingTables: migrating ================================= == 20100213201848 AddViewingTables: migrated (0.0232s) ========================
== 20100216000133 AddNestedSetBoundriesToCategory: migrating ================== -- add_column(:kb_categories, :lft, :int) -> 0.0055s -- add_column(:kb_categories, :rgt, :int) -> 0.0059s == 20100216000133 AddNestedSetBoundriesToCategory: migrated (0.0119s) =========
== 20100317201659 AddRatingsToArticles: migrating ============================= == 20100317201659 AddRatingsToArticles: migrated (0.0211s) ====================
== 20100329103527 AddCommentsCountToArticles: migrating ======================= -- add_column(:kb_articles, :comments_count, :int) -> 0.0055s == 20100329103527 AddCommentsCountToArticles: migrated (0.0057s) ==============
== 20110131145123 AddProjectIdToArticles: migrating =========================== -- add_column(:kb_articles, :project_id, :int, {:default=>0}) -> 0.0135s == 20110131145123 AddProjectIdToArticles: migrated (0.0138s) ==================
== 20121005075010 AddUpdaterToArticle: migrating ============================== -- add_column(:kb_articles, :updater_id, :int, {:default=>0, :null=>false}) -> 0.0239s == 20121005075010 AddUpdaterToArticle: migrated (0.0242s) =====================
== 20121030102100 AddProjectIdToCategories: migrating ========================= -- add_column(:kb_categories, :project_id, :int, {:default=>0}) -> 0.0401s == 20121030102100 AddProjectIdToCategories: migrated (0.0404s) ================
== 20121205100143 AddVersioning: migrating ==================================== -- add_column(:kb_articles, :version_comments, :string, {:limit=>255, :default=>""}) -> 0.0293s rake aborted! StandardError: An error has occurred, all later migrations canceled:
Unknown key: :include. Valid keys are: :columns, :project_key, :date_column, :permission, :scope, :preload/usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:75:in'
ArgumentError: Unknown key: :include. Valid keys are: :columns, :project_key, :date_column, :permission, :scope, :preload
/usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:75:in '
Tasks: TOP => redmine:plugins:migrate
block in assert_valid_keys' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:73:in
each_key' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:73:inassert_valid_keys' /opt/redmine/redmine-3.0.3/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb:37:in
acts_as_searchable' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/app/models/kb_article.rb:28:in<class:KbArticle>' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/app/models/kb_article.rb:5:in
<top (required)>' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inrequire' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:inload_dependency' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:360:inrequire_or_load' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:494:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:184:inconst_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:526:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:184:inconst_missing' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/db/migrate/20121205100143_add_versioning.rb:4:in
up' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:569:inup' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:609:in
exec_migration' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:590:inblock (2 levels) in migrate' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:288:in
measure' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:589:inblock in migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in
with_connection' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:588:inmigrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:765:in
migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:995:inblock in execute_migration_in_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:1043:in
ddl_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:994:inexecute_migration_in_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:956:in
block in migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:ineach' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in
migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:inup' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:798:in
migrate' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:474:inmigrate_plugin' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:446:in
migrate' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:457:inmigrate' /opt/redmine/redmine-3.0.3/lib/tasks/redmine.rake:127:in
block (3 levels) in <top (required)>' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:240:incall' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:240:in
block in execute' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:235:ineach' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:235:in
execute' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:179:inblock in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in
mon_synchronize' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:165:in
invoke' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:150:ininvoke_task' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:in
block (2 levels) in top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:ineach' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:in
block in top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:115:inrun_with_threads' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:100:in
top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:78:inblock in run' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in
standard_exception_handling' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:75:inrun' /usr/local/rvm/rubies/ruby-2.2.2/bin/rake:33:in
block in assert_valid_keys' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:73:in
each_key' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/core_ext/hash/keys.rb:73:inassert_valid_keys' /opt/redmine/redmine-3.0.3/lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb:37:in
acts_as_searchable' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/app/models/kb_article.rb:28:in<class:KbArticle>' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/app/models/kb_article.rb:5:in
<top (required)>' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inrequire' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:inload_dependency' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:360:inrequire_or_load' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:494:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:184:inconst_missing' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:526:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:184:inconst_missing' /opt/redmine/redmine-3.0.3/plugins/redmine_knowledgebase/db/migrate/20121205100143_add_versioning.rb:4:in
up' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:569:inup' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:609:in
exec_migration' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:590:inblock (2 levels) in migrate' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:288:in
measure' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:589:inblock in migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in
with_connection' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:588:inmigrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:765:in
migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:995:inblock in execute_migration_in_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:1043:in
ddl_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:994:inexecute_migration_in_transaction' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:956:in
block in migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:ineach' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in
migrate' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:inup' /usr/local/rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:798:in
migrate' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:474:inmigrate_plugin' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:446:in
migrate' /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:457:inmigrate' /opt/redmine/redmine-3.0.3/lib/tasks/redmine.rake:127:in
block (3 levels) in <top (required)>' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:240:incall' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:240:in
block in execute' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:235:ineach' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:235:in
execute' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:179:inblock in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in
mon_synchronize' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:172:ininvoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/task.rb:165:in
invoke' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:150:ininvoke_task' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:in
block (2 levels) in top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:ineach' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:106:in
block in top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:115:inrun_with_threads' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:100:in
top_level' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:78:inblock in run' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in
standard_exception_handling' /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/application.rb:75:inrun' /usr/local/rvm/rubies/ruby-2.2.2/bin/rake:33:in