sudo gitlab-rake gitlab:db:repair_index

Category: GitLab

sudo gitlab-rake gitlab:db:repair_index

Fix broken database indexes

Rebuilds indexes that GitLab detected as invalid or corrupted, for example after an aborted migration. Run it when the db:migrate output mentions index problems. Safe to run repeatedly if unsure.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.