500 error page when asking to merge a topic into default
We're getting a 500 error on the merge request page after trying to merge a topic into default
https://forge.example.org/org/project/merge_requests/11
We get the following traceback in the logs
heptapod_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
heptapod_1 |
heptapod_1 | ActionView::Template::Error (wrong argument type nil (expected String)):
heptapod_1 | 20: -# haml-lint:disable InlineJavaScript
heptapod_1 | 21: :javascript
heptapod_1 | 22: window.gl = window.gl || {};
heptapod_1 | 23: window.gl.mrWidgetData = #{serialize_issuable(@merge_request)}
heptapod_1 | 24:
heptapod_1 | 25: #js-vue-mr-widget.mr-widget
heptapod_1 | 26:
heptapod_1 | lib/gitlab/git/repository.rb:464:in `rev_parse_target'
heptapod_1 | lib/gitlab/git/repository.rb:458:in `sha_from_ref'
heptapod_1 | lib/gitlab/git/repository.rb:489:in `hgsha_from_ref'
heptapod_1 | app/models/repository.rb:462:in `method_missing'
heptapod_1 | app/models/merge_request_diff.rb:151:in `diff_refs'
heptapod_1 | app/models/merge_request.rb:362:in `diff_refs'
heptapod_1 | app/models/merge_request.rb:934:in `has_complete_diff_refs?'
heptapod_1 | app/services/merge_requests/conflicts/list_service.rb:17:in `can_be_resolved_in_ui?'
heptapod_1 | app/presenters/merge_request_presenter.rb:74:in `conflict_resolution_path'
heptapod_1 | app/serializers/merge_request_entity.rb:115:in `block in <class:MergeRequestEntity>'
heptapod_1 | app/serializers/base_serializer.rb:11:in `represent'
heptapod_1 | app/serializers/merge_request_serializer.rb:7:in `represent'
heptapod_1 | app/helpers/issuables_helper.rb:42:in `serialize_issuable'
heptapod_1 | app/views/projects/merge_requests/show.html.haml:23:in `_app_views_projects_merge_requests_show_html_haml__3548273651006355395_70240175999540'
heptapod_1 | app/controllers/projects/merge_requests_controller.rb:79:in `block (3 levels) in show'
heptapod_1 | lib/gitlab/gitaly_client.rb:193:in `allow_n_plus_1_calls'
heptapod_1 | app/controllers/projects/merge_requests_controller.rb:78:in `block (2 levels) in show'
heptapod_1 | app/controllers/projects/merge_requests_controller.rb:62:in `show'
heptapod_1 | lib/gitlab/i18n.rb:47:in `with_locale'
heptapod_1 | lib/gitlab/i18n.rb:53:in `with_user_locale'
heptapod_1 | app/controllers/application_controller.rb:346:in `set_locale'
heptapod_1 | lib/gitlab/middleware/multipart.rb:93:in `call'
heptapod_1 | lib/gitlab/request_profiler/middleware.rb:14:in `call'
heptapod_1 | lib/gitlab/middleware/go.rb:17:in `call'
heptapod_1 | lib/gitlab/etag_caching/middleware.rb:11:in `call'
heptapod_1 | lib/gitlab/middleware/read_only.rb:30:in `call'
heptapod_1 | lib/gitlab/request_context.rb:18:in `call'
heptapod_1 | lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
heptapod_1 |
let me know if you need extra information
@tanguy.lecarrour can probably fill in the gaps too.
Since @marmoute says you're using this feature, it might be an installation problem.