Redmine hangs up while updating an issue
Added by Anonymous over 12 years ago
Hi, the app is throwing an error while updating an issue
Processing IssuesController#update (for 127.0.0.1 at 2012-03-19 15:14:37) [PUT]
Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"119", "hours"=>""}, "commit"=>"Aceptar", "notes"=>"ddfasdf", "action"=>"update", "_method"=>"put", "authenticity_token"=>"nNmOStRt+ykBctxT1RtU0WEA66Y+enpjKvIPbWCB4yQ=", "id"=>"60106", "issue"=>{"start_date"=>"2012-02-17", "custom_field_values"=>{"3"=>""}, "estimated_hours"=>"", "parent_issue_id"=>"53419", "priority_id"=>"4", "is_private"=>"0", "lock_version"=>"0", "fixed_version_id"=>"", "done_ratio"=>"100", "assigned_to_id"=>"82", "subject"=>"Confección CUS16-Historial de Reuniones", "tracker_id"=>"36", "due_date"=>"2012-02-24", "status_id"=>"16", "description"=>""}, "note"=>{"question_assigned_to"=>""}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}}
Mongrel::TimeoutError (Mongrel timed out this thread: shutdown):
C:1:in `collect'
C:1:in `__send__'
C:1:in `collect'
app/models/issue.rb:569:in `soonest_start'
C:1:in `collect'
C:1:in `__send__'
C:1:in `collect'
...
app/models/issue.rb:569:in `soonest_start'
C:1:in `collect'
C:1:in `__send__'
C:1:in `collect'
app/models/issue.rb:569:in `soonest_start'
C:1:in `collect'
C:1:in `__send__'
C:1:in `collect'
app/models/issue.rb:569:in `soonest_start'
C:1:in `collect'
C:1:in `__send__'
C:1:in `collect'
app/models/issue.rb:569:in `soonest_start'
app/models/issue.rb:372:in `validate'
app/models/issue.rb:628:in `save_issue_with_child_records'
app/models/issue.rb:617:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:175:in `update'
config/initializers/mongrel.rb:62:in `dispatch_cgi'
Rendering rescues/layout (internal_server_error)
There is no log when I try to update the issue. It only shows the error if I stop the app from the "administravite tools" -> "services" menu
This is similar to http://www.redmine.org/boards/2/topics/21377, but not the same.
I'm really stuck with this and dunno what to do. Please help.
Thanks,
Sergio.
Replies (6)
RE: Redmine hangs up while updating an issue
-
Added by Anonymous over 12 years ago
It gets stuck while it performs the following code: ancestors.collect(&:soonest_start)
def soonest_start @soonest_start ||= ( relations_to.collect{|relation| relation.successor_soonest_start} + ancestors.collect(&:soonest_start) ).compact.max end
seems to me a circular dependency problem.