alexbevi / redmine_knowledgebase

A knowledgebase plugin for Redmine
452 stars 199 forks source link

Database migration failed at 20150326093122_add_taggings_counter_cache_to_tags.rb #382

Open ace280 opened 3 years ago

ace280 commented 3 years ago

When running the database migration ( rake redmine:plugins:migrate NAME=redmine_knowledgebase) I ran into an error:

rake aborted! SyntaxError: D:/redmine-4.1.1_B/plugins/redmine_knowledgebase/db/migrate/20150326093122_add_taggings_counter_cache_to_ta gs.rb:6: syntax error, unexpected keyword_rescue, expecting keyword_end rescue ^ D:/redmine-4.1.1_B/lib/redmine/plugin.rb:510:in up' D:/redmine-4.1.1_B/lib/redmine/plugin.rb:542:inmigrate_plugin' D:/redmine-4.1.1_B/lib/redmine/plugin.rb:483:in migrate' D:/redmine-4.1.1_B/lib/redmine/plugin.rb:494:inmigrate' D:/redmine-4.1.1_B/lib/tasks/redmine.rake:135:in `block (3 levels) in <top (required)>' Tasks: TOP => redmine:plugins:migrate

My workaround was to remove the rescue call in question. Rake was able to finish the migration and the plugin seems to work now. I will keep you updated if I run into any other problems.

grafik

ace280 commented 3 years ago

I am not good enough at doing Ruby to know if the Ruby version has something to do with this error, but it is one of hot scents.