Debugging failed GitHub import

Hello,

I’m doing some testing of GitLab’s import from GitHub feature, but the import itself is failing.

I’m able to connect my GitHub account to my GitLab account, and I’m able to see the GitHub repositories. When I select “Import” on any of the repositories, after a few seconds I get a “Failed” status with no other information. The project is created on GitLab, but it is completely empty. I was not able to find any indication of why the import failed. See the below details.

Environment Details

GitLab CE 8.1.3

  • LDAP set as primary authentication.
  • Configured according to GitHub Integration docs
  • Using self-signed SSL Cert.
    GitHub EE 2.8

Debugging

  • I’ve checked all the logs in /var/log/gitlab. Some of them mention the import process starting/completing, but there are no errors found.
  • I’ve tried importing various repositories. Some are extremely basic, with only a few files and no merge requests. Some are more complex with merge requests, wikis, tags, etc… The behavior is the same in both cases.

Log Output

Sidekiq

2017-05-16_16:51:24.52332 2017-05-16T16:51:24.522Z 32005 TID-oxb5ttzvs AuthorizedProjectsWorker JID-986a83eec0c6bd9bb73314c3 INFO: start 2017-05-16_16:51:24.85643 2017-05-16T16:51:24.856Z 32005 TID-oxb5ttzvs AuthorizedProjectsWorker JID-986a83eec0c6bd9bb73314c3 INFO: done: 0.334 sec 2017-05-16_16:51:24.92970 2017-05-16T16:51:24.929Z 32005 TID-oxb5tu89g RepositoryImportWorker JID-65d74fdf27d55a809de7d26f INFO: start 2017-05-16_16:51:29.72832 2017-05-16T16:51:29.728Z 32005 TID-oxb5tu89g RepositoryImportWorker JID-65d74fdf27d55a809de7d26f INFO: done: 4.799 sec

Application

May 16, 2017 17:09: Joe Conrady created a new project “Joe Conrady / example-microservice1”

Production

Started GET "/import/github/jobs" for <IP> at 2017-05-16 17:11:28 +0000 Processing by Import::GithubController#jobs as */* Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 2.6ms) Started POST "/api/v4/jobs/request" for <IP> at 2017-05-16 17:11:28 +0000 Started POST "/ci/api/v1/builds/register.json" for <IP> at 2017-05-16 17:11:29 +0000 Started POST "/api/v4/jobs/request" for <IP> at 2017-05-16 17:11:29 +0000 Started POST "/import/github" for <IP> at 2017-05-16 17:11:29 +0000 Processing by Import::GithubController#create as */* Parameters: {"repo_id"=>"1140", "target_namespace"=>"conrady", "new_name"=>"example-microservice1"} Started POST "/api/v4/jobs/request" for <IP> at 2017-05-16 17:11:30 +0000 Started POST "/ci/api/v1/builds/register.json" for <IP> at 2017-05-16 17:11:30 +0000 Import job started for conrady/example-microservice1 with job ID 4801bdd5eae3574e946d9934 Completed 200 OK in 565ms (Views: 2.1ms | ActiveRecord: 65.3ms)

Links

I’m looking for any help in where I can look for more information about these failures. I’m evaluating this as part of a potential purchase of GitLab EE license. This is a significant feature for us, as many of our users are already using GitHub.

Thanks for any help,
Joe