sudo gitlab-rake gitlab:doctor:secrets

Category: GitLab

sudo gitlab-rake gitlab:doctor:secrets

Check secret files for consistency

Verifies that the secret files match what the database expects, which matters after restoring from a backup. Mismatched secrets break features such as two-factor auth and CI tokens. Re-encrypt the database when the check reports a problem.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.