Error cloning repository

Site: bergwerk-website

We are in the process of moving from a Self Hosted Gitlab to GitHub. Now I have changed the Git to GitHub under Deploy Settings, but now the Git clone is failing.

7:30:10 PM: Build ready to start
7:30:12 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
7:30:12 PM: build-image tag: v3.6.1
7:30:12 PM: buildbot version: b5aa40ef41f8f8b302713d535e9a3180a3b0e301
7:30:12 PM: Fetching cached dependencies
7:30:12 PM: Failed to fetch cache, continuing with build
7:30:12 PM: Starting to prepare the repo for build
7:30:12 PM: Git LFS enabled
7:30:13 PM: No cached dependencies found. Cloning fresh repo
7:30:13 PM: git lfs clone
7:30:15 PM: Error cloning repository:
7:30:15 PM: Failing build: Failed to prepare repo
7:30:15 PM: Failed during stage 'preparing repo': exit status 2
7:30:15 PM: Finished processing build request in 2.619487098s

To be honest I have no idea why.

Thanks for your help in advance!

Best regards,

hi Marvin, so that error message “failed while preparing repo” definitely indicates we are having problems cloning, either with the permissions to access the repo OR with the repo itself.

Are you able to manually clone the repo down into a fresh, bare directory without problems?

What happens if you try to revoke the permissions for access to that repo for netlify and then re-established?

1 Like

You were right. Something went wrong when importing the repository to Github, that was the problem. Thanks a lot!

1 Like