Met 500 Internal Server Error when update issue
Added by Eric Li over 12 years ago
I met a 500 Internal Server Error when update task. It just happens on some specific tasks, others are working well.
Here is the log:
Processing IssuesController#update (for 139.128.244.148 at 2013-01-07 15:00:41) [PUT] Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "commit"=>"Submit", "action"=>"update", "_method"=>"put", "authenticity_token"=>"sI+uhuEdx1qgBvoi7F+m6uS1cv5zGe1BN2x3z9MtXpc=", "id"=>"9277", "notes"=>"TEST", "controller"=>"issues", "issue"=>{"start_date"=>"", "parent_issue_id"=>"8329", "estimated_hours"=>"", "lock_version"=>"2", "priority_id"=>"4", "subject"=>"SYSREQ_0018(01)SourceReq:", "fixed_version_id"=>"", "description"=>"It shall be considered to be NULL value.", "tracker_id"=>"10", "done_ratio"=>"0", "due_date"=>"", "assigned_to_id"=>"61", "custom_field_values"=>{"22"=>"[3]Unstable", "23"=>"System", "24"=>"", "35"=>"1", "25"=>"", "36"=>"0", "47"=>"0", "37"=>"0", "50"=>"Rephrasing", "51"=>"0", "30"=>"RELEASED", "31"=>"", "32"=>"", "54"=>"Applicable"}}, "attachments"=>{"1"=>{"description"=>""}}} NoMethodError (undefined method `regexp' for nil:NilClass): app/models/custom_value.rb:54:in `validate' app/models/issue.rb:547:in `save_issue_with_child_records' app/models/issue.rb:536:in `save_issue_with_child_records' app/controllers/issues_controller.rb:170:in `update' Rendering E:/redmine/public/500.html (500 Internal Server Error)
From the log, I can see it is invoking a undefined method `regexp' from Ruby script. As I know nothing about Ruby, so I can not dig deeper for now. Is it because my Ruby too obsolete for Redmine?
Could anyone tell me what is the root cause? Any help is greatly appropriated.
Tons of thanks.
Replies (1)
RE: Met 500 Internal Server Error when update issue
-
Added by Markus Froehlich over 12 years ago
Eric Li wrote:
I met a 500 Internal Server Error when update task. It just happens on some specific tasks, others are working well.
Here is the log:[...]
From the log, I can see it is invoking a undefined method `regexp' from Ruby script. As I know nothing about Ruby, so I can not dig deeper for now. Is it because my Ruby too obsolete for Redmine?
Could anyone tell me what is the root cause? Any help is greatly appropriated.
Tons of thanks.
I have nearly the same case.
Windows XP SP3 DB: MySQL 5.5.29 Environment: Redmine version 2.2.2.stable Ruby version 1.9.3 (i386-mingw32) Rails version 3.2.11 Environment production Database adapter Mysql2 Redmine plugins: no plugin installed
Creation of issue works but update fails.
Logfile:
Started PUT "/issues/474" for 192.168.200.44 at 2013-01-24 10:22:09 +0100 Processing by IssuesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WCTQO+05MmmMTJ1xLcWHmxwtmdMEY1sHU5FaYO3lQCo=", "issue"=>{"is_private"=>"0", "project_id"=>"17", "tracker_id"=>"2", "subject"=>"Kundenspezifische Definition von Auftragsoptionen", "description"=>"* Fahrzeugart (Plane, Koffer, ...)\r\n* Lademittelart\r\n* analog zu Ladestellen und Materialien", "status_id"=>"1", "priority_id"=>"4", "assigned_to_id"=>"3", "parent_issue_id"=>"", "start_date"=>"2013-01-24", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"2"=>"Oelrich"}, "notes"=>"", "lock_version"=>"0"}, "time_entry"=>{"hours"=>"", "activity_id"=>"9", "comments"=>""}, "attachments"=>{"1"=>{"description"=>""}}, "last_journal_id"=>"", "commit"=>"OK", "id"=>"474"} Current user: markus (id=3) Completed 500 Internal Server Error in 250ms NoMethodError (undefined method `private_notes?' for #<Journal:0x390f390>): app/models/journal.rb:114:in `split_private_notes' app/models/journal.rb:52:in `save' app/models/issue.rb:1362:in `create_journal' app/models/issue.rb:965:in `block in save_issue_with_child_records' app/models/issue.rb:952:in `save_issue_with_child_records' app/controllers/issues_controller.rb:176:in `update'
Can anyone help?