{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/544","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/544/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/544/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/544","id":123095640,"number":544,"title":"GitLab: Failed to authorize your Git request: internal API unreachable","user":{"login":"ymettier","id":2285664,"avatar_url":"https://avatars.githubusercontent.com/u/2285664?v=3","gravatar_id":"","url":"https://api.github.com/users/ymettier","html_url":"https://github.com/ymettier","followers_url":"https://api.github.com/users/ymettier/followers","following_url":"https://api.github.com/users/ymettier/following{/other_user}","gists_url":"https://api.github.com/users/ymettier/gists{/gist_id}","starred_url":"https://api.github.com/users/ymettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymettier/subscriptions","organizations_url":"https://api.github.com/users/ymettier/orgs","repos_url":"https://api.github.com/users/ymettier/repos","events_url":"https://api.github.com/users/ymettier/events{/privacy}","received_events_url":"https://api.github.com/users/ymettier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-19T16:18:10Z","updated_at":"2015-12-23T19:11:17Z","closed_at":null,"body":"Hello,\r\n\r\nI have a problem with push (both http and ssh protocols).\r\n\r\n```\r\n$ git push --mirror ssh://git@gitlab:10022/mygroup/myproject.git\r\nPoussée vers ssh://git@gitlab:10022/mygroup/myproject.git\r\nGitLab: Failed to authorize your Git request: internal API unreachable\r\nfatal: Could not read from remote repository.\r\n\r\nPlease make sure you have the correct access rights\r\nand the repository exists.\r\n```\r\n\r\nI logged inside the container and found something strange. \r\n```\r\n# su - git\r\ngit@96c8bf28c991:/var/log/gitlab/gitlab-shell$ more gitlab-shell.log \r\n# Logfile created on 2015-12-18 18:16:29 +0000 by logger.rb/44203\r\n[...]\r\nW, [2015-12-18T18:22:35.156496 #464]  WARN -- : Failed to connect to internal API <POST http://localhost:8080//api/v3/internal/allowed>: #<SocketError: getaddrinfo: Name or service not known>\r\n```\r\n\r\nMore fun :\r\n```\r\ngit@96c8bf28c991:/var/log/gitlab/gitlab-shell$ getent hosts localhost\r\ngit@96c8bf28c991:/var/log/gitlab/gitlab-shell$ cat /etc/hosts\r\ncat: /etc/hosts: Permission denied\r\n```\r\nOK, back with root permissions :\r\n```\r\n# ls -l /etc/hosts\r\n-rw-r--r--+ 1 root root 399 Dec 18 18:29 /etc/hosts\r\n```\r\n\r\nBecause `getfacl` and `setfacl` are not installed, I install them.\r\n```\r\n# apt-get update\r\n# apt-get install acl\r\n# getfacl /etc/hosts\r\ngetfacl: Removing leading '/' from absolute path names\r\n# file: etc/hosts\r\n# owner: root\r\n# group: root\r\nuser::rw-\r\nuser:root:rwx\t\t\t#effective:r--\r\nuser:nobody:---\r\ngroup::rwx\t\t\t#effective:r--\r\nmask::r--\r\nother::r--\r\n```\r\n\r\nNo git ?\r\n\r\n```\r\n# setfacl -m u:git:r /etc/hosts\r\n```\r\n\r\n**And now it works for me.**\r\n\r\nCould you help investigating why I have this problem ? Or just fix it with the same command I ran :\r\n`setfacl -m u:git:r /etc/hosts`\r\n\r\nFor your information, I'm using a container-data :\r\n```\r\n# docker ps -a|grep gitlab | grep -v redis\r\n96c8bf28c991        sameersbn/gitlab:8.2.3   \"/sbin/entrypoint.sh \"   21 hours ago        Up 21 hours             443/tcp, 0.0.0.0:10022->22/tcp, 0.0.0.0:10080->80/tcp   gitlab\r\n489476f6ab75        sameersbn/gitlab:8.2.3   \"/sbin/entrypoint.sh \"   4 days ago          Exited (0) 4 days ago                                                           gitlab-data\r\n```\r\n\r\nRegards,\r\nYves"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/166973100","html_url":"https://github.com/sameersbn/docker-gitlab/issues/544#issuecomment-166973100","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/544","id":166973100,"user":{"login":"ymettier","id":2285664,"avatar_url":"https://avatars.githubusercontent.com/u/2285664?v=3","gravatar_id":"","url":"https://api.github.com/users/ymettier","html_url":"https://github.com/ymettier","followers_url":"https://api.github.com/users/ymettier/followers","following_url":"https://api.github.com/users/ymettier/following{/other_user}","gists_url":"https://api.github.com/users/ymettier/gists{/gist_id}","starred_url":"https://api.github.com/users/ymettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymettier/subscriptions","organizations_url":"https://api.github.com/users/ymettier/orgs","repos_url":"https://api.github.com/users/ymettier/repos","events_url":"https://api.github.com/users/ymettier/events{/privacy}","received_events_url":"https://api.github.com/users/ymettier/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T19:11:17Z","updated_at":"2015-12-23T19:11:17Z","body":"Hello,\r\n\r\nFor your information, I cannot reproduce any of my problems on Fedora23 / sameersbn/gitlab:8.3.0.\r\nSo I think I can close the issue.\r\n\r\nI will retry on my NAS with sameersbn/gitlab:8.3.0 and newer docker 1.9.1 and see if the problem persists. If yes, I will reopen this issue with more info.\r\n\r\nRegards,\r\nYves\r\n\r\n"}}