{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/469","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/469/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/469/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/469","id":111983463,"number":469,"title":"Error 500 when trying to import a project from GitHub","user":{"login":"maximino","id":647989,"avatar_url":"https://avatars.githubusercontent.com/u/647989?v=3","gravatar_id":"","url":"https://api.github.com/users/maximino","html_url":"https://github.com/maximino","followers_url":"https://api.github.com/users/maximino/followers","following_url":"https://api.github.com/users/maximino/following{/other_user}","gists_url":"https://api.github.com/users/maximino/gists{/gist_id}","starred_url":"https://api.github.com/users/maximino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximino/subscriptions","organizations_url":"https://api.github.com/users/maximino/orgs","repos_url":"https://api.github.com/users/maximino/repos","events_url":"https://api.github.com/users/maximino/events{/privacy}","received_events_url":"https://api.github.com/users/maximino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-17T20:35:36Z","updated_at":"2015-10-18T07:19:01Z","closed_at":null,"body":"First of all, wonderful work done here with this project.\r\n\r\nI was wondering if someone has encountered this error while trying to import projects from GitHub, I'm being frustrated with this issue and not sure why I can't make it work, any pointers for help will be greatly appreciate it.\r\n\r\n```\r\nFilter chain halted as :github_auth rendered or redirected\r\nCompleted 302 Found in 38ms (ActiveRecord: 2.5ms)\r\nStarted GET \"/import/github/callback?code=[FILTERED]\" for 127.0.0.1 at 2015-10-17 20:22:04 +0000\r\nProcessing by Import::GithubController#callback as HTML\r\n  Parameters: {\"code\"=>\"[FILTERED]\"}\r\nCompleted 500 Internal Server Error in 42ms (ActiveRecord: 2.5ms)\r\n\r\nFaraday::Error::ConnectionFailed (getaddrinfo: Name or service not known):\r\n  lib/gitlab/github_import/client.rb:27:in `get_token'\r\n  app/controllers/import/github_controller.rb:8:in `callback'\r\n```\r\n\r\nI have set my `OAUTH_GITHUB_API_KEY` and `OAUTH_GITHUB_APP_SECRET` *environment variables*, and also have tried instantiating the `OAUTH_ENABLED` variable to `true` and the `OAUTH_AUTO_SIGN_IN_WITH_PROVIDER` with the `github` value. But so far I haven't been able to get through a 500 error page.\r\n\r\nI'm using the `8.0.5` `sameersbn/docker-gitlab` version.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/148986494","html_url":"https://github.com/sameersbn/docker-gitlab/issues/469#issuecomment-148986494","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/469","id":148986494,"user":{"login":"sameersbn","id":410147,"avatar_url":"https://avatars.githubusercontent.com/u/410147?v=3","gravatar_id":"","url":"https://api.github.com/users/sameersbn","html_url":"https://github.com/sameersbn","followers_url":"https://api.github.com/users/sameersbn/followers","following_url":"https://api.github.com/users/sameersbn/following{/other_user}","gists_url":"https://api.github.com/users/sameersbn/gists{/gist_id}","starred_url":"https://api.github.com/users/sameersbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameersbn/subscriptions","organizations_url":"https://api.github.com/users/sameersbn/orgs","repos_url":"https://api.github.com/users/sameersbn/repos","events_url":"https://api.github.com/users/sameersbn/events{/privacy}","received_events_url":"https://api.github.com/users/sameersbn/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T07:19:01Z","updated_at":"2015-10-18T07:19:01Z","body":"@maximino the import works. only thing you might want to do is, import each project individually instead of hitting \"Import All\". While the \"Import All\" feature does work, I would suggest manually import each project individually, wait for the import to finish before importing the next. You may decide to choose \"Import All\", that's your choice."}}