{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/229","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/229/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/229/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/229","id":53251535,"number":229,"title":"several \"readv() failed\" in nginx/gitlab_error.log","user":{"login":"kumm","id":254770,"avatar_url":"https://avatars.githubusercontent.com/u/254770?v=3","gravatar_id":"","url":"https://api.github.com/users/kumm","html_url":"https://github.com/kumm","followers_url":"https://api.github.com/users/kumm/followers","following_url":"https://api.github.com/users/kumm/following{/other_user}","gists_url":"https://api.github.com/users/kumm/gists{/gist_id}","starred_url":"https://api.github.com/users/kumm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumm/subscriptions","organizations_url":"https://api.github.com/users/kumm/orgs","repos_url":"https://api.github.com/users/kumm/repos","events_url":"https://api.github.com/users/kumm/events{/privacy}","received_events_url":"https://api.github.com/users/kumm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-02T13:02:12Z","updated_at":"2015-01-02T18:03:57Z","closed_at":null,"body":"Of course in these cases the page does not load. But after a page reload some of them magically start to work without any error.\r\n\r\nA few example for this:\r\n```\r\n2015/01/02 12:01:37 [alert] 319#0: *4 readv() failed (13: Permission denied) while reading upstream, client: 192.168.57.57, server: gitlab.wcs.local, request: \"GET / HTTP/1.1\", upstream: \"http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/\", host: \"gitlab.wcs.local\", referrer: \"http://gitlab.wcs.local/\"\r\n2015/01/02 12:11:57 [alert] 288#0: *79 readv() failed (13: Permission denied) while reading upstream, client: 192.168.57.57, server: gitlab.wcs.local, request: \"GET /help/workflow/notifications.md HTTP/1.1\", upstream: \"http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/help/workflow/notifications.md\", host: \"gitlab.wcs.local\", referrer: \"http://gitlab.wcs.local/help/workflow/README.md\"\r\n```\r\n\r\nI have a lot of permanent errors too. They all refer to images. Some example:\r\n```\r\n2015/01/02 12:08:06 [alert] 288#0: *44 readv() failed (13: Permission denied) while reading upstream, client: 192.168.57.57, server: gitlab.wcs.local, request: \"GET /help/workflow/ci_mr.png HTTP/1.1\", upstream: \"http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/help/workflow/ci_mr.png\", host: \"gitlab.wcs.local\", referrer: \"http://gitlab.wcs.local/help/workflow/gitlab_flow.md\"\r\n2015/01/02 12:08:06 [alert] 288#0: *60 readv() failed (13: Permission denied) while reading upstream, client: 192.168.57.57, server: gitlab.wcs.local, request: \"GET /help/workflow/git_pull.png HTTP/1.1\", upstream: \"http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/help/workflow/git_pull.png\", host: \"gitlab.wcs.local\", referrer: \"http://gitlab.wcs.local/help/workflow/gitlab_flow.md\"\r\n2015/01/02 12:08:06 [alert] 288#0: *69 readv() failed (13: Permission denied) while reading upstream, client: 192.168.57.57, server: gitlab.wcs.local, request: \"GET /help/workflow/messy_flow.png HTTP/1.1\", upstream: \"http://unix:/home/git/gitlab/tmp/sockets/gitlab.socket:/help/workflow/messy_flow.png\", host: \"gitlab.wcs.local\", referrer: \"http://gitlab.wcs.local/help/workflow/gitlab_flow.md\"\r\n```\r\nI've checked the file permissions inside the container, but can't find any problem. All failing files owned by \"git.git\" .\r\n\r\nMy fig.yml file:\r\n```\r\ngitlab:\r\n  image: sameersbn/gitlab:7.6.2\r\n  hostname: gitlab\r\n  domainname: wcs.local\r\n  environment:\r\n    - DB_NAME=gitlab\r\n    - DB_USER=gitlab\r\n    - DB_PASS=****\r\n    - GITLAB_HOST=gitlab.wcs.local\r\n    - GITLAB_TIMEZONE=Budapest\r\n    - GITLAB_EMAIL=****\r\n    - GITLAB_SIGNUP=true\r\n    - SMTP_HOST=***\r\n    - SMTP_PORT=25\r\n    - SMTP_STARTTLS=false\r\n    - SMTP_USER=****\r\n    - SMTP_PASS=****\r\n  volumes:\r\n    - /mnt/data/gitlab/data:/home/git/data\r\n    - /mnt/data/gitlab/log:/var/log/gitlab\r\n  links:\r\n    - redis:redisio\r\n    - postgresql:postgresql\r\n\r\nredis:\r\n  image: redis:2.8\r\n  volumes:\r\n    - /mnt/data/gitlab/redis:/data\r\n\r\npostgresql:\r\n  image: postgres:9.3\r\n  environment:\r\n   - POSTGRES_USER=gitlab\r\n   - POSTGRES_PASSWORD=****\r\n  volumes:\r\n   - /mnt/data/gitlab/postgres:/var/lib/postgresql/data\r\n```\r\n\r\nI've assigned the hostname in my dns to the container's ip address, and i connect to it's web port directly.\r\n\r\ndocker info, and version\r\n```\r\n# docker info\r\nContainers: 4\r\nImages: 108\r\nStorage Driver: btrfs\r\nExecution Driver: native-0.2\r\nKernel Version: 3.16.0-28-generic\r\nOperating System: Ubuntu 14.04.1 LTS\r\nCPUs: 4\r\nTotal Memory: 1001 MiB\r\nName: docker\r\nID: IQVJ:ATHQ:TDHX:AZWB:6XYU:MT2C:RJNN:6ZHY:GY6Y:OK3W:APRA:2A77\r\nWARNING: No swap limit support\r\n# docker version\r\nClient version: 1.4.1\r\nClient API version: 1.16\r\nGo version (client): go1.3.3\r\nGit commit (client): 5bc2ff8\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.4.1\r\nServer API version: 1.16\r\nGo version (server): go1.3.3\r\nGit commit (server): 5bc2ff8\r\n```\r\n\r\nAny ideas what can I check?\r\n"},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/68547198","html_url":"https://github.com/sameersbn/docker-gitlab/issues/229#issuecomment-68547198","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/229","id":68547198,"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-01-02T18:03:57Z","updated_at":"2015-01-02T18:03:57Z","body":"@kumm sorry about my earlier reply. this might not be related to selinux. Here gitlab is basically starting up. You should allow it some time to get ready to server requests."}}