Git version in Gitlab

Hi All,

Currently i have upgraded Gitlab with version 12 but still my git version is “git version 1.7.1” . is there any recommendation to use latest version of git ?

Hi @palakkadansar,

All git versions(1.5 or 1.7…) are supported by GitLab unless GIT LFS is used.
As per the latest GitLab Documentation, it is recommended that Git version should be 2.22 or higher.

Please go through attached link for more details:

1 Like

Hi All,

Sorry to add a new issue here, It is part of upgrade and i am getting below error from logs and the clone failing intermittently.

{"error":"rpc error: code = Canceled desc = rpc error: code = Unavailable desc = transport is closing","grpc.code":"Canceled","grpc.method":"SSHUploadPack","grpc.request.fullMethod":"/gitaly.SSHService/SSHUploadPack","grpc.request.glProjectPath":"NFMT/esm","grpc.request.glRepository":"project-827","grpc.request.repoPath":"NFMT/esm.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"NFMT","grpc.service":"gitaly.SSHService","grpc.start_time":"2019-12-11T12:19:31Z","grpc.time_ms":3374.047,"level":"info","msg":"finished streaming call with code Canceled","peer.address":"@","pid":6679,"span.kind":"server","system":"grpc","time":"2019-12-11T12:19:34Z"}
{"error":"rpc error: code = Canceled desc = rpc error: code = Unavailable desc = transport is closing","grpc.code":"Canceled","grpc.method":"SSHUploadPack","grpc.request.fullMethod":"/gitaly.SSHService/SSHUploadPack","grpc.request.glProjectPath":"NFMT/esm","grpc.request.glRepository":"project-827","grpc.request.repoPath":"NFMT/esm.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"NFMT","grpc.service":"gitaly.SSHService","grpc.start_time":"2019-12-11T12:19:37Z","grpc.time_ms":2965.607,"level":"info","msg":"finished streaming call with code Canceled","peer.address":"@","pid":6679,"span.kind":"server","system":"grpc","time":"2019-12-11T12:19:40Z"}
{"error":"rpc error: code = Canceled desc = rpc error: code = Unavailable desc = transport is closing","grpc.code":"Canceled","grpc.method":"SSHUploadPack","grpc.request.fullMethod":"/gitaly.SSHService/SSHUploadPack","grpc.request.glProjectPath":"NFMT/esm","grpc.request.glRepository":"project-827","grpc.request.repoPath":"NFMT/esm.git","grpc.request.repoStorage":"default","grpc.request.topLevelGroup":"NFMT","grpc.service":"gitaly.SSHService","grpc.start_time":"2019-12-11T12:19:43Z","grpc.time_ms":2719.251,"level":"info","msg":"finished streaming call with code Canceled","peer.address":"@","pid":6679,"span.kind":"server","system":"grpc","time":"2019-12-11T12:19:45Z"}

And the clone error is below,

remote: Enumerating objects: 264, done.
remote: Counting objects: 100% (264/264), done.
remote: Compressing objects: 100% (167/167), done.
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
PC=0x301ba32495 m=10 sigcode=18446744073709551610

goroutine 0 [idle]:
runtime: unknown pc 0x301ba32495
stack: frame={sp:0x7fbf61241918, fp:0x0} stack=[0x7fbf60a42248,0x7fbf61241e48)
00007fbf61241818:  00007fbf612418c0  0000000000000000
00007fbf61241828:  000000301b8224e8  00007fbf612419a0
00007fbf61241838:  00007fbf612419c8  000000301b822190
00007fbf61241848:  00007fbf6771e108  000000000f11ed7d
00007fbf61241858:  000000301b60a26a  0000000000000000
00007fbf61241868:  00007fbf6771e108  0000000000000005
00007fbf61241878:  0000000000000000  0000003000000001
00007fbf61241888:  000000301b822190  0000000000a3c6e7
00007fbf61241898:  000000301be02df0  0000000000a3c9c8
00007fbf612418a8:  0000000500000000  0000000000000000
00007fbf612418b8:  000000301b8224e8  00007fbf61241950
00007fbf612418c8:  0000000000000000  00007fbf61241968
00007fbf612418d8:  0000000167727b20  0000000000a3c700
00007fbf612418e8:  000000301bd8f638  0000000000a1233a
00007fbf612418f8:  00007fbf280008c0  0000000000000011
00007fbf61241908:  00000000009fbdac  0000000000000000
00007fbf61241918: <000000301ba33c75  00007fbf61241a90
00007fbf61241928:  00007fbf61241ab8  000000301b822190
00007fbf61241938:  000000301ba2d8ef  000000008ff90043
00007fbf61241948:  000000301ba34e5a  000000301ba06b58
00007fbf61241958:  00007fbf67727b20  415353454d5f434c
00007fbf61241968:  0000000000679694 <github.com/golang/protobuf/proto.(*mergeInfo).computeMergeInfo.func5+84>  00000000006f6d2e <net/http.newTransferWriter+1422>
00007fbf61241978:  0000000000000005  0000000000d92058
00007fbf61241988:  0000000000000000  00000000009fbdac
00007fbf61241998:  0000000000000000  0000000000000000
00007fbf612419a8:  000000301b60e420  0000000000000005
00007fbf612419b8:  0000000000000000  0000000000000020
00007fbf612419c8:  0000000000000000  0000000000000000
00007fbf612419d8:  0000000000000000  0000000000000000
00007fbf612419e8:  0000000000000000  0000000000000000
00007fbf612419f8:  0000000000000000  0000000000000000
00007fbf61241a08:  0000000000000000  0000000000000000
runtime: unknown pc 0x301ba32495
stack: frame={sp:0x7fbf61241918, fp:0x0} stack=[0x7fbf60a42248,0x7fbf61241e48)
00007fbf61241818:  00007fbf612418c0  0000000000000000
00007fbf61241828:  000000301b8224e8  00007fbf612419a0
00007fbf61241838:  00007fbf612419c8  000000301b822190
00007fbf61241848:  00007fbf6771e108  000000000f11ed7d
00007fbf61241858:  000000301b60a26a  0000000000000000
00007fbf61241868:  00007fbf6771e108  0000000000000005
00007fbf61241878:  0000000000000000  0000003000000001
00007fbf61241888:  000000301b822190  0000000000a3c6e7
00007fbf61241898:  000000301be02df0  0000000000a3c9c8
00007fbf612418a8:  0000000500000000  0000000000000000
00007fbf612418b8:  000000301b8224e8  00007fbf61241950
00007fbf612418c8:  0000000000000000  00007fbf61241968
00007fbf612418d8:  0000000167727b20  0000000000a3c700
00007fbf612418e8:  000000301bd8f638  0000000000a1233a
00007fbf612418f8:  00007fbf280008c0  0000000000000011
00007fbf61241908:  00000000009fbdac  0000000000000000
00007fbf61241918: <000000301ba33c75  00007fbf61241a90
00007fbf61241928:  00007fbf61241ab8  000000301b822190
00007fbf61241938:  000000301ba2d8ef  000000008ff90043
00007fbf61241948:  000000301ba34e5a  000000301ba06b58
00007fbf61241958:  00007fbf67727b20  415353454d5f434c
00007fbf61241968:  0000000000679694 <github.com/golang/protobuf/proto.(*mergeInfo).computeMergeInfo.func5+84>  00000000006f6d2e <net/http.newTransferWriter+1422>
00007fbf61241978:  0000000000000005  0000000000d92058
00007fbf61241988:  0000000000000000  00000000009fbdac
00007fbf61241998:  0000000000000000  0000000000000000
00007fbf612419a8:  000000301b60e420  0000000000000005
00007fbf612419b8:  0000000000000000  0000000000000020
00007fbf612419c8:  0000000000000000  0000000000000000
00007fbf612419d8:  0000000000000000  0000000000000000
00007fbf612419e8:  0000000000000000  0000000000000000
00007fbf612419f8:  0000000000000000  0000000000000000
00007fbf61241a08:  0000000000000000  0000000000000000

goroutine 1 [select]:
google.golang.org/grpc/internal/transport.(*recvBufferReader).read(0xc0001d6230, 0xc000651ffb, 0x4027, 0x4027, 0xc0001fa000, 0xc0001dc100, 0x4000)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:142 +0x1af
google.golang.org/grpc/internal/transport.(*recvBufferReader).Read(0xc0001d6230, 0xc000651ffb, 0x4027, 0x4027, 0x4000, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:131 +0x5a
google.golang.org/grpc/internal/transport.(*transportReader).Read(0xc0001ce2a0, 0xc000651ffb, 0x4027, 0x4027, 0x4000, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:401 +0x55
io.ReadAtLeast(0xa0a4a0, 0xc0001ce2a0, 0xc00064a000, 0xc022, 0xc022, 0xc022, 0x893080, 0x1, 0xc00064a000)
        /usr/local/go/src/io/io.go:310 +0x88
io.ReadFull(...)
        /usr/local/go/src/io/io.go:329
google.golang.org/grpc/internal/transport.(*Stream).Read(0xc0001dc100, 0xc00064a000, 0xc022, 0xc022, 0x5, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:385 +0xc8
google.golang.org/grpc.(*parser).recvMsg(0xc0001b8280, 0x400000, 0x0, 0xc00062e000, 0xa16060, 0x0, 0xc0001c2480, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/rpc_util.go:495 +0x10c
google.golang.org/grpc.recvAndDecompress(0xc0001b8280, 0xc0001dc100, 0x0, 0x0, 0x400000, 0x0, 0x0, 0x0, 0xc00062e000, 0xc022, ...)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/rpc_util.go:602 +0x4d
google.golang.org/grpc.recv(0xc0001b8280, 0x7fbf62c6b078, 0xdf79a0, 0xc0001dc100, 0x0, 0x0, 0x919280, 0xc0001c24c0, 0x400000, 0x0, ...)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/rpc_util.go:645 +0x9b
google.golang.org/grpc.(*csAttempt).recvMsg(0xc000114e70, 0x919280, 0xc0001c24c0, 0x7fbf6022137a, 0xc000044508)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:762 +0xe1
google.golang.org/grpc.(*clientStream).RecvMsg.func1(0xc000114e70, 0xc0001c24c0, 0x40)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:648 +0x3d
google.golang.org/grpc.(*clientStream).withRetry(0xc00016e5a0, 0xc0004e5ba8, 0xc0004e5b98, 0xc01e, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:530 +0x29f
google.golang.org/grpc.(*clientStream).RecvMsg(0xc00016e5a0, 0x919280, 0xc0001c24c0, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:647 +0x8d
gitlab.com/gitlab-org/gitaly-proto/go/gitalypb.(*sSHServiceSSHUploadPackClient).Recv(0xc0001ba140, 0x0, 0x0, 0x0)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly-proto@v1.12.0/go/gitalypb/ssh.pb.go:328 +0x62
gitlab.com/gitlab-org/gitaly/client.UploadPack.func2(0xc000010018, 0xc00063c000, 0xc01e, 0xe000)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/client/upload_pack.go:32 +0x2f
gitlab.com/gitlab-org/gitaly/client.streamHandler(0xc0004e5d68, 0xc0001c23c0, 0xa0a9e0, 0xc000010018, 0xa0a9e0, 0xc000010020, 0xa1bca0, 0xc0001ba140, 0x0)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/client/std_stream.go:28 +0x8f
gitlab.com/gitlab-org/gitaly/client.UploadPack(0xa18360, 0xc0000c4740, 0xc00018e300, 0xa0a9c0, 0xc000010010, 0xa0a9e0, 0xc000010018, 0xa0a9e0, 0xc000010020, 0xc0000fe6e0, ...)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/client/upload_pack.go:31 +0x2cd
gitlab.com/gitlab-org/gitlab-shell/go/internal/handler.UploadPack(0xa18360, 0xc0000c4740, 0xc00018e300, 0xc0000fe6e0, 0x0, 0x0, 0x0)
        /var/cache/omnibus/src/gitlab-shell/go/internal/handler/upload_pack.go:17 +0xfd
main.main.func1(0xa183a0, 0xc000024018, 0xc00018e300, 0x7ffe6b5bfe59, 0x14f, 0xc000098080, 0x22, 0xc00011beb8)
        /var/cache/omnibus/src/gitlab-shell/go/cmd/gitaly-upload-pack/main.go:25 +0x93
gitlab.com/gitlab-org/gitlab-shell/go/internal/handler.internalRunGitalyCommand(0xc000020180, 0x3, 0x3, 0x98a8c8, 0x40725f, 0xc0000e0058, 0x0)
        /var/cache/omnibus/src/gitlab-shell/go/internal/handler/exec.go:103 +0x2c6
gitlab.com/gitlab-org/gitlab-shell/go/internal/handler.RunGitalyCommand(0x98a8c8)
        /var/cache/omnibus/src/gitlab-shell/go/internal/handler/exec.go:48 +0x53
main.main()
        /var/cache/omnibus/src/gitlab-shell/go/cmd/gitaly-upload-pack/main.go:19 +0x2d

goroutine 5 [select]:
google.golang.org/grpc.(*ccResolverWrapper).watcher(0xc0000c4680)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/resolver_conn_wrapper.go:111 +0x13f
created by google.golang.org/grpc.(*ccResolverWrapper).start
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/resolver_conn_wrapper.go:97 +0x3f

goroutine 18 [select]:
google.golang.org/grpc.(*ccBalancerWrapper).watcher(0xc0001c20c0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/balancer_conn_wrappers.go:122 +0x110
created by google.golang.org/grpc.newCCBalancerWrapper
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/balancer_conn_wrappers.go:113 +0x14f

goroutine 24 [select]:
google.golang.org/grpc.newClientStream.func5(0xc00018e300, 0xc00016e5a0, 0xa18420, 0xc00018c450)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:287 +0xd7
created by google.golang.org/grpc.newClientStream
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/stream.go:286 +0x8c7

goroutine 21 [runnable]:
google.golang.org/grpc/internal/transport.(*recvBuffer).put(0xc0001c2300, 0xc000372000, 0x4000, 0x4000, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:71 +0x218
google.golang.org/grpc/internal/transport.(*Stream).write(...)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/transport.go:375
google.golang.org/grpc/internal/transport.(*http2Client).handleData(0xc0001fa000, 0xc0001ce120)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/http2_client.go:937 +0x435
google.golang.org/grpc/internal/transport.(*http2Client).reader(0xc0001fa000)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/http2_client.go:1238 +0x72b
created by google.golang.org/grpc/internal/transport.newHTTP2Client
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/http2_client.go:277 +0xc32

goroutine 22 [select]:
google.golang.org/grpc/internal/transport.(*controlBuffer).get(0xc0001c22c0, 0x1, 0x0, 0x0, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/controlbuf.go:317 +0x104
google.golang.org/grpc/internal/transport.(*loopyWriter).run(0xc000216000, 0x0, 0x0)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/controlbuf.go:435 +0x1b6
google.golang.org/grpc/internal/transport.newHTTP2Client.func3(0xc0001fa000)
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/http2_client.go:319 +0x7b
created by google.golang.org/grpc/internal/transport.newHTTP2Client
        /root/go/pkg/mod/google.golang.org/grpc@v1.16.0/internal/transport/http2_client.go:317 +0xd8a

goroutine 25 [syscall]:
syscall.Syscall(0x0, 0x0, 0xc00023c000, 0x20000, 0x42c50f, 0x8, 0xc0000c4080)
        /usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0x0, 0xc00023c000, 0x20000, 0x20000, 0x0, 0xb, 0x337a)
        /usr/local/go/src/syscall/zsyscall_linux_amd64.go:732 +0x5a
syscall.Read(...)
        /usr/local/go/src/syscall/syscall_unix.go:172
internal/poll.(*FD).Read(0xc0000c8060, 0xc00023c000, 0x20000, 0x20000, 0x0, 0x0, 0x0)
        /usr/local/go/src/internal/poll/fd_unix.go:165 +0x131
os.(*File).read(...)
        /usr/local/go/src/os/file_unix.go:263
os.(*File).Read(0xc000010010, 0xc00023c000, 0x20000, 0x20000, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/file.go:108 +0x70
gitlab.com/gitlab-org/gitaly/streamio.(*sendWriter).ReadFrom(0xc0001cc028, 0xa0a9c0, 0xc000010010, 0x7fbf62c2a230, 0xc0001cc028, 0x1)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/streamio/stream.go:124 +0xf6
io.copyBuffer(0xa0a280, 0xc0001cc028, 0xa0a9c0, 0xc000010010, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/io/io.go:388 +0x2fc
io.Copy(...)
        /usr/local/go/src/io/io.go:364
gitlab.com/gitlab-org/gitaly/client.UploadPack.func3(0xc0001ca4e0)
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/client/upload_pack.go:34 +0x80
created by gitlab.com/gitlab-org/gitaly/client.streamHandler
        /root/go/pkg/mod/gitlab.com/gitlab-org/gitaly@v1.7.0/client/std_stream.go:25 +0x6b

rax    0x0
rbx    0x301bd8f638
rcx    0x301ba32495
rdx    0x6
rdi    0x7491
rsi    0x74a9
rbp    0xa1233a
rsp    0x7fbf61241918
r8     0xa
r9     0x7fbf61242700
r10    0x8
r11    0x202
r12    0x7fbf280008c0
r13    0x11
r14    0x9fbdac
r15    0x0
rip    0x301ba32495
rflags 0x202
cs     0x33
fs     0x0
gs     0x0
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed