Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ff80d10d
Commit
ff80d10d
authored
Sep 28, 2021
by
Mike Russo
Committed by
Achilleas Pipinellis
Sep 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vale fixes administration rake tasks check
parent
896c02a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
doc/administration/raketasks/check.md
doc/administration/raketasks/check.md
+8
-7
No files found.
doc/administration/raketasks/check.md
View file @
ff80d10d
...
...
@@ -14,7 +14,8 @@ Even though Git is very resilient and tries to prevent data integrity issues,
there are times when things go wrong. The following Rake tasks intend to
help GitLab administrators diagnose problem repositories so they can be fixed.
There are 3 things that are checked to determine integrity.
These Rake tasks use three different methods to determine the integrity of Git
repositories.
1.
Git repository file system check (
[
`git fsck`
](
https://git-scm.com/docs/git-fsck
)
).
This step verifies the connectivity and validity of objects in the repository.
...
...
@@ -37,7 +38,7 @@ exactly which repositories are causing the trouble.
### Check project code repositories
This task loops through the project code repositories and runs the integrity check
described previously. If a project uses a pool repository, that
will also be
checked.
described previously. If a project uses a pool repository, that
is also
checked.
Other types of Git repositories
[
are not checked
](
https://gitlab.com/gitlab-org/gitaly/-/issues/3643
)
.
**Omnibus Installation**
...
...
@@ -67,7 +68,7 @@ source repository.
This task loops through all repositories on the GitLab server and outputs
checksums in the format
`<PROJECT ID>,<CHECKSUM>`
.
-
If a repository doesn't exist, the project ID
will have
a blank checksum.
-
If a repository doesn't exist, the project ID
is
a blank checksum.
-
If a repository exists but is empty, the output checksum is
`0000000000000000000000000000000000000000`
.
-
Projects which don't exist are skipped.
...
...
@@ -85,9 +86,9 @@ sudo -u git -H bundle exec rake gitlab:git:checksum_projects RAILS_ENV=productio
For example, if:
-
Project with ID#2 doesn't exist, it
will be
skipped.
-
Project with ID#4 doesn't have a repository, its checksum
will be
blank.
-
Project with ID#5 has an empty repository, its checksum
will be
`0000000000000000000000000000000000000000`
.
-
Project with ID#2 doesn't exist, it
is
skipped.
-
Project with ID#4 doesn't have a repository, its checksum
is
blank.
-
Project with ID#5 has an empty repository, its checksum
is
`0000000000000000000000000000000000000000`
.
The output would then look something like:
...
...
@@ -115,7 +116,7 @@ These integrity checks can detect missing files. Additionally, for locally
stored files, checksums are generated and stored in the database upon upload,
and these checks verify them against current files.
Currently, i
ntegrity checks are supported for the following types of file:
I
ntegrity checks are supported for the following types of file:
-
CI artifacts (Available from version 10.7.0)
-
LFS objects (Available from version 10.6.0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment