Merge button infinite delay
Summary
We are fairly consistently seeing a problem where the “merge” button on the merge requests page never becomes available - it will sit there indefinitely with the message " "`Checking if merge request can be merged…"". If we do nothing, the merge button never becomes active. After a few minutes, if the page is manually refreshed it will usually become available, but only after a manual refresh. Merges will complete normally. This occurs anytime we navigate to a merge request on a project that has a large number of files and/or a long history. Smaller projects do not seem to be affected, as if the larger ones are exceeding some timeout limit.
Running Gitlab CE using the official, unmodified Docker container on Docker 20.10.11, RHEL 7.9, fully patched. Gitlab version 14.6.2 but the issue goes back many months with previous releases.
Steps to reproduce
- Create a merge request on a large project with a significant history of changes.
- Navigate to the Merge Requests from the sidebar
- click on an unmerged request At this point the Merge button will not be active with the message "Checking if merge request can be merged…" The button will not become available, even after waiting 15 minutes or more.
Example Project
N/A
What is the current bug behavior?
The Merge button remains disabled with the message "Checking if merge request can be merged…". Manually refreshing the page after a short time will then show the Merge button as enabled.
What is the expected correct behavior?
The Merge button should be enabled as soon as it has completed performing its checks.
Relevant logs and/or screenshots
N/A
Output of checks
self-hosted gitlab-ce
Results of GitLab environment info
N/A
Results of GitLab application Check
pasted below:
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.22.1 ? ... OK (13.22.1) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... Checking git no Try fixing it: An error occurred: Net::IMAP::NoResponseError: Plaintext authentication disallowed on non-secure (SSL/TLS) connections. Check that the information in config/gitlab.yml is correct For more information see: doc/administration/reply_by_email.md Please fix the error above and rerun the checks. Mailroom enabled? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 40/2 ... yes 40/3 ... yes 12/5 ... yes 3/7 ... yes 40/8 ... yes 40/9 ... yes 40/10 ... yes 3/11 ... yes 3/12 ... yes 3/13 ... yes 2/15 ... yes 3/18 ... yes 23/19 ... yes 38/20 ... yes 22/21 ... yes 3/22 ... yes 3/23 ... yes 22/24 ... yes 3/46 ... yes 3/47 ... yes 22/49 ... yes 22/50 ... yes 3/51 ... yes 22/52 ... yes 39/73 ... yes 39/74 ... yes 39/75 ... yes 39/76 ... yes 38/77 ... yes 39/78 ... yes 39/79 ... yes 39/80 ... yes 39/81 ... yes 39/82 ... yes 39/83 ... yes 39/84 ... yes 38/85 ... yes 3/86 ... yes 39/87 ... yes 38/88 ... yes 3/89 ... yes 39/90 ... yes 38/91 ... yes 38/92 ... yes 22/93 ... yes 3/94 ... yes 40/95 ... yes 3/96 ... yes 32/105 ... yes 32/106 ... yes 32/107 ... yes 32/108 ... yes 38/110 ... yes 38/111 ... yes 38/114 ... yes 3/115 ... yes 3/116 ... yes 12/117 ... yes 23/118 ... yes 23/119 ... yes 23/120 ... yes 23/121 ... yes 23/122 ... yes 23/123 ... yes 23/124 ... yes 23/125 ... yes 23/126 ... yes 23/127 ... yes 23/128 ... yes 23/129 ... yes 23/130 ... yes 23/131 ... yes 23/132 ... yes 23/133 ... yes 23/134 ... yes 23/135 ... yes 23/136 ... yes 23/137 ... yes 23/138 ... yes 23/139 ... yes 3/140 ... yes 23/141 ... yes 34/142 ... yes 35/145 ... yes 35/146 ... yes 35/147 ... yes 35/148 ... yes 35/149 ... yes 35/150 ... yes 35/151 ... yes 35/152 ... yes 23/153 ... yes 39/154 ... yes 39/155 ... yes 38/156 ... yes 3/157 ... yes 37/158 ... yes 38/159 ... yes 38/160 ... yes 38/161 ... yes 38/162 ... yes 3/167 ... yes 38/168 ... yes 39/169 ... yes 37/170 ... yes 37/171 ... yes 37/172 ... yes 38/173 ... yes 37/174 ... yes 3/175 ... yes 37/176 ... yes 37/177 ... yes 3/178 ... yes 37/179 ... yes 14/181 ... yes 3/182 ... yes 3/183 ... yes 3/184 ... yes 37/185 ... yes 38/186 ... yes 38/187 ... yes 3/188 ... yes 3/189 ... yes 43/225 ... yes 43/226 ... yes 37/334 ... yes 42/336 ... yes 41/337 ... yes 41/338 ... yes 42/339 ... yes 42/340 ... yes 42/341 ... yes 42/342 ... yes 42/343 ... yes 42/344 ... yes 42/345 ... yes 42/346 ... yes 42/347 ... yes 42/348 ... yes 42/349 ... yes 42/350 ... yes 42/352 ... yes 42/353 ... yes 42/354 ... yes 42/355 ... yes 42/356 ... yes 42/357 ... yes 42/358 ... yes 42/359 ... yes 42/360 ... yes 41/361 ... yes 14/362 ... yes 37/372 ... yes 37/375 ... yes 23/377 ... yes 23/379 ... yes 39/380 ... yes 40/381 ... yes 37/382 ... yes 3/383 ... yes 40/384 ... yes 37/386 ... yes 37/387 ... yes 14/388 ... yes 39/389 ... yes 3/390 ... yes 38/391 ... yes 23/392 ... yes 42/393 ... yes 42/394 ... yes 39/396 ... yes 40/397 ... yes 23/398 ... yes 3/399 ... yes 14/400 ... yes 23/401 ... yes 38/402 ... yes 34/403 ... yes 37/404 ... yes 42/405 ... yes 38/406 ... yes 37/407 ... yes 23/408 ... yes 37/410 ... yes 37/411 ... yes 3/412 ... yes 37/413 ... yes 51/414 ... yes 38/415 ... yes 38/416 ... yes 37/418 ... yes 38/419 ... yes 53/420 ... yes 53/421 ... yes 23/422 ... yes 38/423 ... yes 38/424 ... yes 23/425 ... yes 42/426 ... yes 37/427 ... yes 3/428 ... yes 37/429 ... yes 42/430 ... yes 38/431 ... yes 3/432 ... yes 3/433 ... yes 23/434 ... yes 38/435 ... yes 42/436 ... yes 23/437 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.5) Git version >= 2.33.0 ? ... yes (2.33.1) Git user has default SSH configuration? ... yes Active users: ... 23 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
N/A