Gitlab Mirror error

Hi guys,
this is my first post here so be gentle :wink:

I am trying to clone a github repo to my selfhosted gitlab and I get this error.

13:fetch remote: "warning: object 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c: missingTaggerEntry: invalid format - expected 'tagger' line\nerror: RPC failed; curl 18 transfer closed with outstanding read data remaining\nerror: 6025 bytes of body are still expected\nfetch-pack: unexpected disconnect while reading sideband packet\nfatal: early EOF\nfatal: fetch-pack: invalid index-pack output\n": exit status 128.

I have managed to clone other repos from github without any issues before. Just this one ( wich i assume do to the size) does not work.

The process is quite simple I just Settings → General → Repository → Mirroring repositories (Click Expand) … well the rest is self explanatory
Could you please advice on how to proceed ?
Thanks

Well not really self explanatory - you should really explain in full detail exactly what you have configured and how you are using it which you haven’t done. So, assuming pull mirroring, which if you only are using Gitlab without a subscription won’t work anyway, since only push mirroring will work on installations without a subscription. Since you are mirroring from Github, would suggest push mirroring therefore is not being used since that would mean sending your Gitlab repository to Github and not the other way around.

Do you have a subscription Premium or Ultimate? If so, that would mean you have access to paid support and therefore could open a support ticket with Gitlab if you are using pull mirroring. Or perhaps you had the trial enabled that allowed pull mirroring to work but has since expired and therefore not possible.

Otherwise, with a free version, the only option available to you is to create a new project and choose the import project option which will allow you to import from Github.

  1. Can you share a screenshot of the mirroring overview?
  2. If the GitHub repository is public, can you share the URL to reproduce the error?
  3. Which GitLab version is involved in self-managed? https://example.gitlab.com/help will show it for example, replace with your external url.
  4. How big (size, commit/tag count) is the repository. Anything that is different from the other repos that worked.

The error message sounds like a Git error where the GitHub repository is corrupt. Can you clone the repository locally and run git fsck --full and when fixed, then configure the GitLab server/project as remote, and push it manually?

Something like that:

git clone https://github.com/name/project.git

cd project

git fsck --full 

git remote add origin-gitlab https://example.gitlab.com/name/project

git push origin-gitlab main 
1 Like

Hi to all,
thanks for the prompt feedback. For some unknown reason I left the system running in the night and now the repository was sucessfully mirrored.
Dont ask me why or how it just worked .
Thanks for the help either way.

1 Like

yes that always worked from the beginning.

1 Like