Fetch remote default branch doesn't work with SSH mirrors
After the deploy of RC2, I'm seeing a different issue: 13:exit status 128
:
However, the FetchRemote
succeeded and the repository is there now:
2018-10-10_14:01:21.60344 time="2018-10-10T14:01:21Z" level=info msg="finished unary call" grpc.code=OK grpc.meta.auth_version=v2 grpc.meta.client_name=gitlab-sidekiq grpc.method=FetchRemote grpc.request.glRepository=project-68 grpc.request.repoPath=root/test-mirror.git grpc.request.repoStorage=default grpc.request.topLevelGroup=root grpc.service=gitaly.RepositoryService grpc.time_ms=929 peer.address=@ span.kind=server system=grpc
It looks like FindRemoteRootRef
is failing for some reason:
2018-10-10_14:01:21.93810 time="2018-10-10T14:01:21Z" level=error msg="finished unary call" error="rpc error: code = Internal desc = exit status 128" grpc.code=Internal grpc.meta.auth_version=v2 grpc.meta.client_name=gitlab-sidekiq grpc.method=FindRemoteRootRef grpc.request.glRepository=project-68 grpc.request.repoPath=root/test-mirror.git grpc.request.repoStorage=default grpc.request.topLevelGroup=root grpc.service=gitaly.RemoteService grpc.time_ms=320 peer.address=@ span.kind=server system=grpc
I suspect FetchRemote
sets up the SSH temporary key properly in gitlab-ruby, but the latter does not since it is implemented in Go.
Edited by Stan Hu