Gitaly: FAIL: 14:Connect Failed - could not create Gitlab API client

Hello,

I got the following error on my gitaly.log

level=fatal msg="could not create GitLab API client: is not a valid url"level=fatal msg="could not create GitLab API client

This cause Gitaly: FAIL: 14:Connect Failed When I tried to run gitlab:check

I wonder what could be the issue ?

Thank you

i had the same issue, found this solution https://gitlab.com/gitlab-org/gitaly/-/issues/2981
worked for me

yup, I posted the issue overthere as well

unfortunately my problem doesn’t end there :frowning:
i can’t push into any repository

everything is now fine according to
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production

however when i try git push i’m getting an error response
git push
Enumerating objects: 37, done.
Counting objects: 100% (37/37), done.
Delta compression using up to 8 threads
Compressing objects: 100% (24/24), done.
Writing objects: 100% (26/26), 3.71 KiB | 1.85 MiB/s, done.
Total 26 (delta 17), reused 0 (delta 0), pack-reused 0
remote: GitLab: Internal API unreachable
To gitlab.alembiq.net:abc/def
! [remote rejected] 2020-07-09 -> 2020-07-09 (pre-receive hook declined)
error: failed to push some refs to ‘gitlab.alembiq.net:abc/def’

yes i found an error in the gitaly.log, but…

==> gitaly.log <==
time="2020-07-23T19:20:43Z" level=error msg="Internal API unreachable" duration_ms=0s error="Post http://unix/api/v4/internal/allowed: dial unix /home/git/gitlab/tmp/sockets/gitlab-workhorse.socket: connect: connection refused" method=POST url="http://unix/api/v4/internal/allowed" time="2020-07-23T19:20:43Z" level=info msg="finished streaming call with code OK" grpc.code=OK grpc.meta.deadline_type=none grpc.method=PreReceiveHook grpc.request.fullMethod=/gitaly.HookService/PreReceiveHook grpc.request.glProjectPath=abc/def grpc.request.glRepository=project-128 grpc.request.repoPath=@hashed/27/47/2747b7c718564ba5f066f0523b03e17f6a496b06851333d2d59ab6d863225848.git grpc.request.repoStorage=default grpc.request.topLevelGroup=@hashed grpc.service=gitaly.HookService grpc.start_time="2020-07-23T19:20:43Z" grpc.time_ms=0.633 peer.address=@ pid=61853 span.kind=server system=grpc time="2020-07-23T19:20:43Z" level=info msg="diskcache state change" diskcache=cefbb39c-a50a-461b-adae-f8ada301ad69 grpc.meta.deadline_type=none grpc.method=SSHReceivePack grpc.request.fullMethod=/gitaly.SSHService/SSHReceivePack grpc.request.glProjectPath=abc/def grpc.request.glRepository=project-128 grpc.request.repoPath=@hashed/27/47/2747b7c718564ba5f066f0523b03e17f6a496b06851333d2d59ab6d863225848.git grpc.request.repoStorage=default grpc.request.topLevelGroup=@hashed grpc.service=gitaly.SSHService grpc.start_time="2020-07-23T19:20:42Z" peer.address=@ pid=61853 span.kind=server system=grpc time="2020-07-23T19:20:43Z" level=info msg="finished streaming call with code OK" grpc.code=OK grpc.meta.deadline_type=none grpc.method=SSHReceivePack grpc.request.fullMethod=/gitaly.SSHService/SSHReceivePack grpc.request.glProjectPath=abc/def grpc.request.glRepository=project-128 grpc.request.repoPath=@hashed/27/47/2747b7c718564ba5f066f0523b03e17f6a496b06851333d2d59ab6d863225848.git grpc.request.repoStorage=default grpc.request.topLevelGroup=@hashed grpc.service=gitaly.SSHService grpc.start_time="2020-07-23T19:20:42Z" grpc.time_ms=123.535 peer.address=@ pid=61853 span.kind=server system=grpc

…but i’m none the wiser :frowning: socket is there, looks fine-ish for me
ll /home/git/gitlab/tmp/sockets/gitlab-workhorse.socket
srwxrwxrwx 1 git git 0 Dec 24 2019 /home/git/gitlab/tmp/sockets/gitlab-workhorse.socket=