Repocheck failes:
ERROR -- : my_group/my_project: Could not fsck repository: error in blob eb87a57adefc985514ddc8ae1fa4e6749c7d8211: gitmodulesUrl: disallowed submodule url: https://gitlab.example.com:my_group/my_project.git
gitaly['configuration'] = { git: { config: [ { key: "fetch.fsck.gitmodulesUrl", value: "ignore" }, { key: "fsck.gitmodulesUrl", value: "ignore" }, ], }, }
sudo gitlab-ctl reconfigure
cat /var/log/gitlab/gitlab-rails/repocheck.log
error in blob 31ae455954e2ab24f917f0cad3c9dd9b0e029be4: gitmodulesMissing: unable to read .gitmodules blob
Solution:
su - git cd /home/git-data/repositories/\@hashed\..\..\...git git fsck git gc git fsck
gru 28 18:36:15 gitlab systemd[1]: user@997.service: Failed to add control inotify watch descriptor for control group /user.slice/user-997.slice/user@997.service: No space left on device gru 28 18:36:15 gitlab systemd[1]: user@997.service: Failed to add memory inotify watch descriptor for control group /user.slice/user-997.slice/user@997.service: No space left on device
rate_limit_gitlab_shell:
Gitlab runner cannot clone repository:
Permission denied, please try again. Permission denied, please try again. git@gitlab.example.com: Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Tracing
Upon SSH connection gitlab-shell
is executed. Shell makes internal API connection to http://unix/api/v4/internal/allowed
endpoint.
Puma
web server is responsible for handling request.
HINT: GitLab: API is not accessible
Reason: Rate limit introduced with v14.8 with (28 Jan, 2022) Enable Gitlab Shell rate limit by default.
More info:
How to disable rate limits - how to disable rate_limit_gitlab_shell
:
gitlab-rails console
and then
Feature.enabled?(:rate_limit_gitlab_shell) Feature.disable(:rate_limit_gitlab_shell) Feature.enabled?(:rate_limit_gitlab_shell)
Still problems, try to figure out:
Gitaly also has a rate-limiter in place, but calls are never made to Gitaly if the rate limit is exceeded in GitLab Shell (Rails).
When these limits are reached, users are disconnected.