500 error on merge reqeust
post update to 11.0.4 we are getting 500 error on creating merge requests have checked the DB migrate logs, they show a good return code. restart and reconfigured gitlab, did a gitlab-rake db:migrate
A gitlab-rake db:migrate:status dose not show any problems jobs (as I would expect from looking at the logs of the migrations).
New branches repositories are ok and work.
======production.log======== Completed 500 Internal Server Error in 125ms (ActiveRecord: 68.1ms)
- ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_merge_requests_on_target_project_id_and_iid" DETAIL: Key (target_project_id, iid)=(XXXX, XXX) already exists.
- INSERT INTO "merge_requests" ("merge_params", "target_project_id", "source_project_id", "source_branch", "assignee_id", "description", "target_branch", "title", "author_id", "iid", "created_at", "updated_at", "title_html", "description_html", "cached_markdown_version", "time_estimate") VALUES ('---
force_remove_source_branch: ''0''
', 3249, 3249, 'st-915', 338, 'Closes st-915', 'Dev', 'Resolve st-915', 538, 447, '2018-07-24 13:45:10.168425', '2018-07-24 13:45:10.168425', 'Resolve st-915', '
Closes st-915
', 3, 0) RETURNING "id"): config/initializers/active_record_locking.rb:15:in_create_record' app/services/issuable_base_service.rb:132:inblock in create_issuable' app/services/issuable_base_service.rb:131:increate_issuable' app/services/issuable_base_service.rb:151:increate' app/services/merge_requests/create_service.rb:34:increate' app/services/merge_requests/create_service.rb:12:inexecute' app/controllers/projects/merge_requests/creations_controller.rb:21:increate' lib/gitlab/i18n.rb:50:inwith_locale' lib/gitlab/i18n.rb:56:inwith_user_locale' app/controllers/application_controller.rb:362:inset_locale' lib/gitlab/middleware/multipart.rb:95:incall' lib/gitlab/request_profiler/middleware.rb:14:incall' lib/gitlab/middleware/go.rb:17:incall' lib/gitlab/etag_caching/middleware.rb:11:incall' lib/gitlab/middleware/read_only/controller.rb:28:incall' lib/gitlab/middleware/read_only.rb:16:incall' lib/gitlab/request_context.rb:18:incall' lib/gitlab/metrics/requests_rack_middleware.rb:27:incall' lib/gitlab/middleware/release_env.rb:10:in `call'
Edited by 🤖 GitLab Bot 🤖