Project

General

Profile

Actions

Defect #22819

closed

Internal Error while create new issue

Added by saurabh Savaliya over 8 years ago. Updated about 4 years ago.

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

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

While I am going to create, delete or edit any issue, it will give internal error. Recently I changed fields permission from administration. I have tried again after reset those changes but still it is not working.

I give lots of time to configure redmine and its admin. Please advise what should be error.

Affected Version: 3.2.1


Files

Snap 2016-05-14 at 20.03.21.png (50 KB) Snap 2016-05-14 at 20.03.21.png saurabh Savaliya, 2016-05-14 16:40
Error.png (42.3 KB) Error.png saurabh Savaliya, 2016-05-14 16:40
Actions #1

Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from New to Needs feedback
  • Priority changed from Urgent to Normal

Please see Submissions.

Actions #2

Updated by shedow qiu over 8 years ago

we get the same problem from 3.2.0 update to 3.2.2

Actions #3

Updated by shedow qiu over 8 years ago

ActiveRecord::StatementInvalid (Mysql2::Error: Field 'position' doesn't have a default value: INSERT INTO `issues` (`project_id`, `author_id`, `start_date`, `tracker_id`, `st
atus_id`, `subject`, `description`, `priority_id`, `updated_on`, `created_on`, `lock_version`) VALUES (34, 6, '2016-05-17', 1, 1, 'test3', '', 2, '2016-05-17 19:32:28', '2016
-05-17 19:32:28', 0)):

Actions #4

Updated by Toshi MARUYAMA over 8 years ago

shedow qiu wrote:

we get the same problem from 3.2.0 update to 3.2.2

Do not post unrelated issue.
"issues" table does not have 'position'.
Please ask your using plugin author.

Actions #5

Updated by Leydson Vieira over 8 years ago

Enter in your database and add a default value for the 'position' column.

ALTER TABLE issues MODIFY COLUMN position int(11) NOT NULL DEFAULT '1';

for example.

Actions #6

Updated by Toshi MARUYAMA over 8 years ago

  • Category deleted (Administration)
  • Status changed from Needs feedback to Closed
  • Resolution set to No feedback

No feedback from author.

Actions #7

Updated by Nishad Salam over 8 years ago

I am getting the same error and I have applied above SQL statement, and now you I have got the new error. I am using redmine 3.3 and I have recently upgraded from redmiine-1.3 to 3.3. I had redminebacklogs earlier but I have already installed the backlogs.

ActiveRecord::RecordNotUnique (Mysql2::Error: Duplicate entry '1-0' for key 'index_issues_on_position_and_position_lock': INSERT INTO `issues` (`project_id`, `author_id`, `start_date`, `tracker_id`, `status_id`, `subject`, `description`, `priority_id`, `updated_on`, `created_on`, `lock_version`) VALUES (249, 61, '2016-08-14', 1, 1, 'test', 'test', 4, '2016-08-14 13:16:23', '2016-08-14 13:16:23', 0)):
app/models/issue.rb:211:in `create_or_update'
app/controllers/issues_controller.rb:141:in `create'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Actions #8

Updated by Toshi MARUYAMA over 8 years ago

Nishad Salam wrote:

I am getting the same error...

Please contact plugin author.

Actions #9

Updated by Inese Ez over 7 years ago

Leydson Vieira wrote:

Enter in your database and add a default value for the 'position' column.

ALTER TABLE issues MODIFY COLUMN position int(11) NOT NULL DEFAULT '1';

for example.

Thankx, this worked!

Actions #10

Updated by Martín Tolava about 4 years ago

Hi, Im working with version 3.0.2 with Rails 4.2.1. and resolve this problem, but I have a new problem when delete an Issue.

In log I can see this error

ActiveRecord::StatementInvalid (Mysql2::Error: Cannot delete or update a parent row: a foreign key constraint fails (`redmine_production`.`redhopper_issues`, CONSTRAINT `fk_rails_d346a13856` FOREIGN KEY (`issue_id`) REFERENCES `issues` (`id`)): DELETE FROM `issues` WHERE `issues`.`id` = 33853 AND `issues`.`lock_version` = 0):

someone has a solution

Actions

Also available in: Atom PDF