Defect #23693
closedError in wiki "Installing a plugin"
0%
Description
after installing redmine 3.3.0 I add the scrum-plugin according the wiki how to install.
First all seems to be OK. Here the config:
Then we noticed an error on Calendars. This seems to be the same as reported by Meindert Oldenburger . Meindert's "workaround"-hint is OK.
But we got another error:
Processing by CalendarsController#show as HTML Parameters: {"project_id"=>"XXX"} Current user: admin (id=1) Rendered queries/_filters.html.erb (11.3ms) Rendered common/_calendar.html.erb (22.7ms) Rendered issues/_sidebar.html.erb (8.4ms) Rendered calendars/show.html.erb within layouts/base (51.7ms) Rendered plugins/scrum/app/views/scrum_hooks/_head.html.erb (0.2ms) Rendered plugins/scrum/app/views/scrum_hooks/_scrum_tips.html.erb (8.1ms) Completed 500 Internal Server Error in 258ms (Views: 87.9ms | ActiveRecord: 24.8ms) ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'sprints.sprint_start_date' in 'where clause': SELECT `sprints`.`id` AS t0_r0, `sprints`.`name` AS t0_r1, `sprints`.`description` AS t0_r2, `sprints`.`start_date` AS t0_r3, `sprints`.`end_date` AS t0_r4, `sprints`.`user_id` AS t0_r5, `sprints`.`project_id` AS t0_r6, `sprints`.`created_on` AS t0_r7, `sprints`.`updated_on` AS t0_r8, `sprints`.`is_product_backlog` AS t0_r9, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11, `projects`.`inherit_members` AS t1_r12, `projects`.`product_backlog_id` AS t1_r13, `projects`.`default_version_id` AS t1_r14 FROM `sprints` INNER JOIN `projects` ON `projects`.`id` = `sprints`.`project_id` WHERE ((projects.lft >= 9 AND projects.rgt <= 16)) AND `sprints`.`is_product_backlog` = 0 AND (`sprints`.`sprint_start_date` BETWEEN '2016-08-01' AND '2016-09-04')): plugins/scrum/lib/scrum/calendars_controller_patch.rb:35:in `query_sprints' plugins/scrum/lib/scrum/calendars_controller_patch.rb:24:in `add_sprints' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
- without the scrum plugin all was fine
Why?
- I tried once more:
sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production
- same result, error on calendar
- and the db table
sprints
has columnstart_date
, instead ofsprint_start_date
Then I try:
sudo bundle exec rake --trace redmine:plugins:migrate NAME=scrum RAILS_ENV=production
Result:- no error on calendar
- the colunm
sprints.sprint_start_date
is there
- NAME=plugin-name is missing
- I would suggest to prefix the cmd with sudo, too
Files
Updated by Toshi MARUYAMA over 8 years ago
- Category deleted (
Documentation) - Status changed from New to Closed
- Resolution set to Invalid
eugen hanussek wrote:
- and the db table
sprints
has columnstart_date
, instead ofsprint_start_date
This did not run.
https://redmine.ociotec.com/projects/redmine-plugin-scrum/repository/entry/tags/scrum%20v0.14.0/db/migrate/20150123075700_change_sprints_dates.rb
- NAME=plugin-name is missing
NAME does not need if VERSION is not defined.
source:tags/3.3.0/lib/tasks/redmine.rake#L115
Updated by Toshi MARUYAMA over 8 years ago
Toshi MARUYAMA wrote:
eugen hanussek wrote:
- NAME=plugin-name is missing
NAME does not need if VERSION is not defined.
source:tags/3.3.0/lib/tasks/redmine.rake#L115
Sorry, I am wrong.
NAME is optional.
source:tags/3.3.0/lib/redmine/plugin.rb#L463
But, this is problem of your environment or plugin.
Please contact plugin author.