/doc/administration/repository_checks.md

https://gitlab.com/visay/gitlab-ce · Markdown · 43 lines · 33 code · 10 blank · 0 comment · 0 complexity · a0a529c04870553cf9cbb6b7644e3f2c MD5 · raw file

  1. # Repository checks
  2. > [Introduced][ce-3232] in GitLab 8.7. It is OFF by default because it still
  3. causes too many false alarms.
  4. Git has a built-in mechanism, [git fsck][git-fsck], to verify the
  5. integrity of all data committed to a repository. GitLab administrators
  6. can trigger such a check for a project via the project page under the
  7. admin panel. The checks run asynchronously so it may take a few minutes
  8. before the check result is visible on the project admin page. If the
  9. checks failed you can see their output on the admin log page under
  10. 'repocheck.log'.
  11. ## Periodic checks
  12. When enabled, GitLab periodically runs a repository check on all project
  13. repositories and wiki repositories in order to detect data corruption problems.
  14. A project will be checked no more than once per month. If any projects
  15. fail their repository checks all GitLab administrators will receive an email
  16. notification of the situation. This notification is sent out once a week on
  17. Sunday, by default.
  18. ## Disabling periodic checks
  19. You can disable the periodic checks on the 'Settings' page of the admin
  20. panel.
  21. ## What to do if a check failed
  22. If the repository check fails for some repository you should look up the error
  23. in repocheck.log (in the admin panel or on disk; see
  24. `/var/log/gitlab/gitlab-rails` for Omnibus installations or
  25. `/home/git/gitlab/log` for installations from source). Once you have
  26. resolved the issue use the admin panel to trigger a new repository check on
  27. the project. This will clear the 'check failed' state.
  28. If for some reason the periodic repository check caused a lot of false
  29. alarms you can choose to clear ALL repository check states from the
  30. 'Settings' page of the admin panel.
  31. ---
  32. [ce-3232]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3232 "Auto git fsck"
  33. [git-fsck]: https://www.kernel.org/pub/software/scm/git/docs/git-fsck.html "git fsck documentation"