alpinelinux / alpine-docker-gitlab

[MIRROR] Gitlab docker image based on Alpine Linux
https://gitlab.alpinelinux.org/alpine/infra/docker/gitlab
MIT License
14 stars 16 forks source link

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

Open supar opened 1 year ago

supar commented 1 year ago
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 commented 1 year ago

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.