Project

General

Profile

Actions

Defect #33967

closed

After upgrade getting error when time spent record updated

Added by yigithan tavsanoglu over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi ;
I Upgraded redmine 2.x to 4.x with manually (some scripting and migrating db) after that try to give record to issue with time spent im getting this error , what is missing i cannot find

Processing by IssuesController#update as HTML
  Parameters: {"utf8"=>"?~\~S", "authenticity_token"=>"s4fUkokrnRb7UoDobqMkY/9lJdMUb690XqM+OWn4n3R1dD1Q1teE9DhXQiJIWlJ1PVcRdAx/Kt+GDPK/PXNCkg==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "project_id"=>"213", "tracker_id"=>"3", "subject"=>"test", "description"=>"deneme", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"6"=>"FinansMuhasebe", "10"=>"308", "14"=>""}, "notes"=>"", "private_notes"=>"0", "lock_version"=>"0"}, "was_default_status"=>"1", "time_entry"=>{"hours"=>"123", "activity_id"=>"", "comments"=>""}, "last_journal_id"=>"", "commit"=>"Gönder", "next_issue_id"=>"38688"" 
, "issue_position"=>"1", "issue_count"=>"6", "id"=>"38689"}
  Current user: yigithan (id=55)
Completed 500 Internal Server Error in 73ms (ActiveRecord: 22.9ms)
Actions #1

Updated by yigithan tavsanoglu over 3 years ago

for better log view

Completed 200 OK in 325ms (Views: 156.0ms | ActiveRecord: 85.6ms)
Started PATCH "/issues/38689" for 213.14.97.106 at 2020-09-08 10:02:28 +0200
Processing by IssuesController#update as HTML
  Parameters: {"utf8"=>"?~\~S", "authenticity_token"=>"s4fUkokrnRb7UoDobqMkY/9lJdMUb690XqM+OWn4n3R1dD1Q1teE9DhXQiJIWlJ1PVcRdAx/Kt+GDPK/PXNCkg==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "project_id"=>"213", "tracker_id"=>"3", "subject"=>"test", "description"=>"deneme", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"6"=>"FinansMuhasebe", "10"=>"308", "14"=>""}, "notes"=>"", "private_notes"=>"0", "lock_version"=>"0"}, "was_default_status"=>"1", "time_entry"=>{"hours"=>"123", "activity_id"=>"", "comments"=>""}, "last_journal_id"=>"", "commit"=>"Gönder", "next_issue_id"=>"38688"" 
, "issue_position"=>"1", "issue_count"=>"6", "id"=>"38689"}
  Current user: yigithan (id=55)
Completed 500 Internal Server Error in 73ms (ActiveRecord: 22.9ms)

ActiveModel::MissingAttributeError (can't write unknown attribute `author_id`):

app/controllers/issues_controller.rb:580:in `block in save_issue_with_child_records'
app/controllers/issues_controller.rb:575:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:172:in `update'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
Actions #2

Updated by Marius BĂLTEANU over 3 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Resolution set to Invalid

You missed at least one migration, please see https://github.com/redmine/redmine/blob/master/db/migrate/20180501132547_add_author_id_to_time_entries.rb

You should check again all the migrations which could be quite hard if you manage all the migrations manually.

Actions

Also available in: Atom PDF