Report this

What is the reason for this report?

Unable to clone GitHub repos in GitLab

Posted on September 13, 2014

I’ve installed GitLab via One-Click install on a droplet. It’s working fine for repos I’ve created within GitLab, but I can’t seem to clone repos from GitHub.

Here’s the general architecture:

Here’s the background of the issue:

  • Attempted to clone public repo with https clone uri; no dice
  • Attempted to clone public repo with https fork uri (clone_uri/fork); no dice
  • Forked public repo into my personal GitHub account and attempted authenticated clone in GitLab with the https clone uri; no dice
  • In case you’re curious, the public repo is https://github.com/PHPMailer/PHPMailer

When trying to clone my GitHub fork, I used the URI syntax of https://username:password@github.com/path/to/repo, and for all other attempts I used the standard clone URI. In all instances GitLab generated the error “Import failed. Retry?”

Prior to using this One-Click installed GitLab droplet I had an old test droplet I set up myself with Ubuntu 14.04 and GitLab 7, and, IIRC, I was able to clone projects from GitHub with no issue.

I’m not familiar with how the One-Click install config’d everything. Any ideas of error logs I can look at?

Based on Googling I think it could either be

  1. nginx config issue
  2. SSH key issue with GitHub
  3. A physical limitation of my brain

Thanks in advance!

-Tim



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @tlhaas:

So I destroyed the droplet and started over from scratch. Seems to be working again. Hopefully this issue doesn’t rear its head again.

View the original comment

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.