Search code examples
tokenfatal-errorgitlabrunnergitlab-ci

Gitlab CI can't clone gitlab repo


Has anybody has same problem?

I connected Gitlab ci with Gitlab. When test run Gitlab CI can't clone Gitlabs repo. Got this error:

cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds && git clone http://gitlab-ci-token:
<mytoken>@gitlab.xlab.si/primoz_godec/scrum_app.git project-3 && cd project-3 && git checkout
<othertoken>
Cloning into 'project-3'...
fatal: protocol error: bad line length 8188

Solution

  • Problem was that http clone has been disabled on Gitlab. After enabling it everything was ok.