Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.11-stable, Gitaly shutdown, unsupported Git version: "2.36.6" #15

Open
supar opened this issue Jun 6, 2023 · 1 comment
Open

15.11-stable, Gitaly shutdown, unsupported Git version: "2.36.6" #15

supar opened this issue Jun 6, 2023 · 1 comment

Comments

@supar
Copy link

supar commented Jun 6, 2023

docker compose up

...
gitlab-gitaly-1        | time="2023-06-06T10:32:10Z" level=info msg="Starting Gitaly, version 15.11.6"
gitlab-gitaly-1        | time="2023-06-06T10:32:10.351Z" level=info msg="grpc prometheus histograms enabled" latencies="[0.001 0.005 0.025 0.1 0.5 1 10 30 60 300 1500]"
gitlab-gitaly-1        | time="2023-06-06T10:32:18.417Z" level=info msg="License database preloaded"
gitlab-gitaly-1        | time="2023-06-06T10:32:18.419Z" level=error msg="failed to clean up memory cgroups" error="list gitaly process directory: open /sys/fs/cgroup/memory/gitaly: no such file or directory"
gitlab-gitaly-1        | time="2023-06-06T10:32:18.419Z" level=error msg="failed to clean up cpu cgroups" error="list gitaly process directory: open /sys/fs/cgroup/cpu/gitaly: no such file or directory"
gitlab-gitaly-1        | time="2023-06-06T10:32:18.978Z" level=warning msg="Git has not been properly configured, falling back to Git found on PATH" resolvedPath=/usr/bin/git
gitlab-gitaly-1        | time="2023-06-06T10:32:19.030Z" level=error msg="Gitaly shutdown" error="unsupported Git version: \"2.36.6\""
...

Resolve "unsupported Git version" in gitaly/config.yml

# # Git settings
[git]
# bin_path = "/usr/bin/git"
bin_path = "/usr/local/bin/gitaly-git-v2.39"

May be to build gitaly image with linked git binary?

/usr/bin/git -> /usr/local/bin/gitaly-git-v2.39
@Ikke
Copy link
Contributor

Ikke commented Jun 6, 2023

See the git-execution-environments document. I switched to using the bundled git distribution.

You need to add

[git]
use_bundled_binaries = true

This should be documented / automatically set probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants