`rake cache:clear` doesn't clear pipeline status cache
Running rake cache:clear
doesn't clear pipeline status cache because it's not using the cache prefix.
Original title
Random commit status displayed on projects dashboard if CI/CD is not configured
Original description
Summary
I just installed a completely fresh installation of GitLab Omnibus 10.6 via Docker. Surprisingly the projects dashboard shows random commit status messages (commit: passed, commit: skipped) for a few repositories after I pushed them. These repositories do not include a .gitlab-ci.yml
file.
If I click on the commit status, I see a 404 error page: The page could not be found or you don't have permission to view it.
The actual project page shows the correct information -> no commit status.
I am not sure, but it could be that it was caused by a timeout issue. I was pushing multiple repositories at the same time with a pretty bad internet connection. Some of the repositories included a .gitlab-ci.yml
file.
Do you know how I can fix the information shown on the dashboard page? I tried to wait a few hours and push something to the affected repository again, but it is still showing these wrong information.
I also tried to run gitlab-rake cache:clear
, but it unfortunately did not fix the issue.
Maybe it is related to: https://gitlab.com/gitlab-org/gitlab-ce/issues/32869
Steps to reproduce
- Install a fresh installation of GitLab Omnibus 10.6 via docker hub
- Create a repository on GitLab
- Create locally a repository that does not contain a
.gitlab-ci.yml
file - Add the new GitLab repository as remote and push
- Visit htts://your_gitlab.com/dashboard/projects
What is the current bug behavior?
The dashboard randomly shows commit: passed
or commit: skipped
.
What is the expected correct behavior?
No commit status is shown.
Relevant logs and/or screenshots
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknown
GitLab information Version: 10.6.0 Revision: 8f82e53 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://[redacted] HTTP Clone URL: https:/[redacted]/some-group/some-project.git SSH Clone URL: ssh://git@[redacted]:30001/some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: github, bitbucket, gitlab, google_oauth2
GitLab Shell Version: 6.0.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 6.0.4 ? ... OK (6.0.4) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 6/1 ... ok 6/2 ... ok 6/3 ... ok 2/4 ... ok 8/5 ... ok 8/6 ... ok 7/7 ... ok 7/8 ... ok 7/9 ... ok 5/10 ... ok 4/11 ... ok 3/12 ... ok 1/13 ... ok 1/14 ... ok 1/15 ... ok 1/16 ... ok 1/17 ... ok 1/18 ... ok 1/19 ... ok 1/20 ... ok 1/21 ... ok 1/22 ... ok 1/23 ... ok 1/24 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
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 Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 6/1 ... yes 6/2 ... yes 6/3 ... yes 2/4 ... yes 8/5 ... yes 8/6 ... yes 7/7 ... yes 7/8 ... yes 7/9 ... yes 5/10 ... yes 4/11 ... yes 3/12 ... yes 1/13 ... yes 1/14 ... yes 1/15 ... yes 1/16 ... yes 1/17 ... yes 1/18 ... yes 1/19 ... yes 1/20 ... yes 1/21 ... yes 1/22 ... yes 1/23 ... yes 1/24 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 1
Checking GitLab ... Finished