Forums » Problems or support »
Error on new issue
Added by Paul Taylor about 9 years ago
I am getting a 500 error whenever I attempt to create a new issue for a project.
It doesn't matter if scrum is enabled for the project or not, the error still occurs.
The following text appears in the redmine log after each attempt;
Started GET "/redmine/projects/competition-registration/issues/new" for 10.15.168.144 at 2015-08-24 05:18:51 +0000
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"competition-registration"}
Current user: paul (id=3)
Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.3ms)
ActiveModel::MissingAttributeError (can't write unknown attribute `sprint_id`):
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Can anybody provide guidance on how to resolve?
Replies (6)
RE: Error on new issue - Added by Emilio González Montaña about 9 years ago
Did you run?
RAILS_ENV=production rake redmine:plugins:migrate
to run plugin DB changes.
RE: Error on new issue - Added by Paul Taylor about 9 years ago
Have run this command many times....
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
Migrating scrum (Scrum Redmine plugin)...
RE: Error on new issue - Added by Paul Taylor about 9 years ago
Is it possible to uninstall (ie reverse the db changes) and then re-execute the migrate?
RE: Error on new issue - Added by Emilio González Montaña about 9 years ago
Paul Taylor escribió:
Have run this command many times....
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
Migrating scrum (Scrum Redmine plugin)...
That's not the correct way, it's important to put RAILS_ENV=production
before the rake
command.
RE: Error on new issue - Added by Paul Taylor about 9 years ago
Can you advise the correct syntax for the command.
This causes an error;
bundle exec RAILS_ENV=production rake redmine:plugins:migrate
bundler: command not found: RAILS_ENV=production
Install missing gem executables with `bundle install`
RE: Error on new issue - Added by Paul Taylor about 9 years ago
I changed the command to
bundle exec rake RAILS_ENV=production redmine:plugins:migrate
Migrating scrum (Scrum Redmine plugin)...
And now it works.
Thank you for your help.