Repository skeleton exist for project but not recognized as git repositories
During the execution of gitlab-com/gl-infra/production#3445 (closed), we found a couple of projects (so far, IDs are 13430678 and 13535743) that returned 500 errors for any operations done on them. Gitaly logs indicate that their directories are not git repositories, this has been confirmed manually. Below are the directory trees:
root@file-33-stor-gprd.c.gitlab-production.internal:/var/opt/gitlab/git-data/repositories/@hashed/c5/78/c57816c68b87df767b4d2ebd7e6e60419bccd71504d3605e366a76bc6cb4cb7e.git# tree -s
.
├── [ 112] config
├── [ 0] description
├── [ 0] HEAD
├── [ 4096] hooks
│ ├── [ 0] applypatch-msg.sample
│ ├── [ 0] commit-msg.sample
│ ├── [ 0] fsmonitor-watchman.sample
│ ├── [ 0] post-update.sample
│ ├── [ 0] pre-applypatch.sample
│ ├── [ 0] pre-commit.sample
│ ├── [ 0] prepare-commit-msg.sample
│ ├── [ 0] pre-push.sample
│ ├── [ 0] pre-rebase.sample
│ ├── [ 0] pre-receive.sample
│ └── [ 0] update.sample
├── [ 4096] info
│ └── [ 0] exclude
├── [ 4096] objects
│ ├── [ 4096] info
│ └── [ 4096] pack
└── [ 4096] refs
├── [ 4096] heads
└── [ 4096] tags
8 directories, 15 files
root@file-35-stor-gprd.c.gitlab-production.internal:/var/opt/gitlab/git-data/repositories/@hashed/70/a8/70a8b032d6fb8a191a4262bea0b7ad1edf89069c9916c0fba205df356dbd9147.git# tree -s
.
├── [ 139] config
├── [ 0] description
├── [ 0] HEAD
├── [ 4096] hooks
│ ├── [ 0] applypatch-msg.sample
│ ├── [ 0] commit-msg.sample
│ ├── [ 0] fsmonitor-watchman.sample
│ ├── [ 0] post-update.sample
│ ├── [ 0] pre-applypatch.sample
│ ├── [ 0] pre-commit.sample
│ ├── [ 0] prepare-commit-msg.sample
│ ├── [ 0] pre-push.sample
│ ├── [ 0] pre-rebase.sample
│ ├── [ 0] pre-receive.sample
│ └── [ 0] update.sample
├── [ 4096] info
│ └── [ 0] exclude
├── [ 4096] objects
│ ├── [ 4096] info
│ └── [ 4096] pack
└── [ 4096] refs
├── [ 4096] heads
└── [ 4096] tags
8 directories, 15 files
UPDATE 2020-02-15: Projects 6243737 and 6243734 seem to suffer the same issue.
Edited by Ahmad Sherif