caching problems after updating self-hosted GitLab ee to 17.1.2
Summary
We updated our self-hosted EE GitLab instance from version from 17.1.1 to 17.1.2. After the update, we ran into caching issues:
- when trying to create a new MR for a new branch, the wizard says "Source branch 'feat/dummy' does not exist"
- when pushing commits to an existing branch & MR, the pipeline doesn't trigger and the commits don't show up in the commits tab
The data, however, is present on GitLab. For example, the branch with all commits is visible on GitLab.
To temporarily fix the problem, we refreshed the redis cache using sudo gitlab-rake cache:clear.
However, the issue still persists and keeps occurring. Furthermore, creating MRs via gitlab cli works.
Steps to reproduce
Update GitLab to 17.1.2 (ee, self hosted)
Example Project
Project independent
What is the current bug behavior?
- when trying to create a new MR for a new branch, the wizard says "Source branch 'foo/bar' does not exist"
- when pushing commits to an existing branch & MR, the pipeline doesn't trigger and the commits don't show up in the commits tab
What is the expected correct behavior?
caching works as expected
Relevant logs and/or screenshots
- no logs related to the caching inconsistency could be found
Output of checks
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.36.0 ? ... OK (14.36.0) 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: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... 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: ... 4/1 ... yes 4/2 ... yes 5/3 ... yes 5/4 ... yes 5/5 ... yes 4/7 ... yes 9/8 ... yes 4/9 ... yes 21/10 ... yes 22/11 ... yes 22/12 ... yes 22/13 ... yes 22/14 ... yes 11/15 ... yes 22/16 ... yes 11/17 ... yes 21/18 ... yes 21/19 ... yes 4/20 ... yes 4/21 ... yes 20/22 ... yes 4/24 ... yes 4/25 ... yes 2/26 ... yes 4/27 ... yes 4/28 ... yes 23/29 ... yes 4/30 ... yes 4/31 ... yes 4/32 ... yes 4/33 ... yes 10/34 ... yes 4/35 ... yes 4/36 ... yes 23/38 ... yes 4/39 ... yes 10/40 ... yes 12/41 ... yes 23/45 ... yes 4/47 ... yes 2/48 ... yes 4/49 ... yes 2/50 ... yes 36/51 ... yes 4/52 ... yes 4/53 ... yes 43/54 ... yes 43/55 ... yes 4/57 ... yes 4/58 ... yes 4/59 ... yes 4/60 ... yes 4/61 ... yes 129/62 ... yes 43/63 ... yes 135/64 ... yes 4/65 ... yes 43/66 ... yes 43/68 ... yes 4/69 ... yes 43/70 ... yes Redis version >= 6.2.14? ... yes Ruby version >= 3.0.6 ? ... yes (3.1.5) Git user has default SSH configuration? ... yes Active users: ... 43 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... skipped (Advanced Search is disabled) All migrations must be finished before doing a major upgrade ... skipped (Advanced Search is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
