{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/1997","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/1997/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/1997/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/1997/events","html_url":"https://github.com/dokku/dokku/issues/1997","id":140823736,"number":1997,"title":"502 Error , I have followed a lot of the closed tickets , still no luck. ","user":{"login":"rjrobinson","id":3730551,"avatar_url":"https://avatars.githubusercontent.com/u/3730551?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrobinson","html_url":"https://github.com/rjrobinson","followers_url":"https://api.github.com/users/rjrobinson/followers","following_url":"https://api.github.com/users/rjrobinson/following{/other_user}","gists_url":"https://api.github.com/users/rjrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrobinson/subscriptions","organizations_url":"https://api.github.com/users/rjrobinson/orgs","repos_url":"https://api.github.com/users/rjrobinson/repos","events_url":"https://api.github.com/users/rjrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/rjrobinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-14T23:19:39Z","updated_at":"2016-03-14T23:26:53Z","closed_at":null,"body":"Description of problem:\r\n```\r\n502 Bad Gateway error nginx\r\n```\r\nOutput of the following commands\r\n\r\nuname -a: \r\n```\r\nLinux opsen-gru-2 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\nfree -m: --\r\n```\r\ntotal used free shared buffers cached\r\nMem: 7985 2764 5220 0 106 2338\r\n-/+ buffers/cache: 319 7665\r\nSwap: 0 0 0\r\n```\r\ndocker version: `Docker version 1.10.2, build c3959b1`\r\ndocker -D info: `Cannot connect to the Docker daemon. Is the docker daemon running on this host?`\r\n\r\nsigil -v: sigil: `command not found`\r\ndocker run -ti gliderlabs/herokuish:latest herokuish version: `n/a ?`\r\ndokku version: `0.4.14`\r\ndokku plugin: --\r\n```\r\nplugn: dev\r\n00_dokku-standard 0.4.0 enabled dokku core standard plugin\r\n20_events 0.4.0 enabled dokku core events logging plugin\r\napps 0.4.0 enabled dokku core apps plugin\r\nbackup 0.4.0 enabled dokku core backup plugin\r\nbuild-env 0.4.0 enabled dokku core build-env plugin\r\ncerts 0.4.0 enabled dokku core certificate management plugin\r\nchecks 0.4.0 enabled dokku core checks plugin\r\ncommon 0.4.0 enabled dokku core common plugin\r\nconfig 0.4.0 enabled dokku core config plugin\r\ndocker-options 0.4.0 enabled dokku core docker-options plugin\r\ndomains 0.4.0 enabled dokku core domains plugin\r\nenter 0.4.0 enabled dokku core enter plugin\r\ngit 0.4.0 enabled dokku core git plugin\r\nlogs 0.4.0 enabled dokku core logs plugin\r\nnamed-containers 0.4.0.1 enabled dokku core named containers plugin\r\nnginx-vhosts 0.4.0 enabled dokku core nginx-vhosts plugin\r\nplugin 0.4.0 enabled dokku core plugin plugin\r\nps 0.4.0 enabled dokku core ps plugin\r\nshell 0.4.0 enabled dokku core shell plugin\r\ntags 0.4.0 enabled dokku core tags plugin\r\ntar 0.4.0 enabled dokku core tar plugin\r\n```\r\ndocker inspect CONTAINER_ID (if applicable): (BEWARE: docker inspect will print environment variables for some commands, be sure you're not exposing any sensitive information when posting issues. You may replace these values with XXXXXXX):\r\ncat /home/dokku//nginx.conf (if applicable):\r\n```\r\nserver {\r\n  listen      [::]:80;\r\n  listen      80;\r\n  server_name go-gru.gruapi.com ;\r\n  access_log  /var/log/nginx/go-gru-access.log;\r\n  error_log   /var/log/nginx/go-gru-error.log;\r\n\r\n  location    / {\r\n\r\n    gzip on;\r\n    gzip_min_length  1100;\r\n    gzip_buffers  4 32k;\r\n    gzip_types    text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml  application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;\r\n    gzip_vary on;\r\n    gzip_comp_level  6;\r\n\r\n    proxy_pass  http://go-gru; `can this be the error? `\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection upgrade;\r\n    proxy_set_header Host $http_host;\r\n    proxy_set_header X-Forwarded-Proto $scheme;\r\n    proxy_set_header X-Forwarded-For $remote_addr;\r\n    proxy_set_header X-Forwarded-Port $server_port;\r\n    proxy_set_header X-Request-Start $msec;\r\n  }\r\n  include /home/dokku/go-gru/nginx.conf.d/*.conf;\r\n}\r\nupstream go-gru {\r\n  server 172.17.0.4:5000;\r\n}\r\n```\r\nLink to the exact repository being deployed (if possible/applicable): `can't`\r\nIf a deploy is failing: `fixed that already`\r\nApplication name: go-gru\r\nThe type of application being deployed (node, php, python, ruby, etc.)\r\nWhether or not you have a Dockerfile in the root of your repository\r\nIf using buildpacks, which custom buildpacks are in use\r\nIf it exists, the contents of your Procfile.\r\nOutput of failing dokku commands after running dokku trace on (BEWARE: trace on will print environment variables for some commands, be sure you're not exposing any sensitive information when posting issues. You may replace these values with XXXXXXX):\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\n\r\nHow was dokku installed?: instructions on the main page\r\n\r\nHow reproducible: \r\n\r\nSteps to Reproduce: 1. 2. 3.\r\n\r\nActual Results:\r\n\r\nExpected Results:\r\n\r\nAdditional info:"},"comment":{"url":"https://api.github.com/repos/dokku/dokku/issues/comments/196563916","html_url":"https://github.com/dokku/dokku/issues/1997#issuecomment-196563916","issue_url":"https://api.github.com/repos/dokku/dokku/issues/1997","id":196563916,"user":{"login":"rjrobinson","id":3730551,"avatar_url":"https://avatars.githubusercontent.com/u/3730551?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrobinson","html_url":"https://github.com/rjrobinson","followers_url":"https://api.github.com/users/rjrobinson/followers","following_url":"https://api.github.com/users/rjrobinson/following{/other_user}","gists_url":"https://api.github.com/users/rjrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrobinson/subscriptions","organizations_url":"https://api.github.com/users/rjrobinson/orgs","repos_url":"https://api.github.com/users/rjrobinson/repos","events_url":"https://api.github.com/users/rjrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/rjrobinson/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T23:26:53Z","updated_at":"2016-03-14T23:26:53Z","body":"nginx error logs \r\n```\r\nubuntu@opsen-gru-2:~$ dokku nginx:error-logs go-gru\r\n2016/03/14 21:12:14 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\"\r\n2016/03/14 21:12:14 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:12:15 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.3:5000/favicon.ico\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:12:36 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\"\r\n2016/03/14 21:12:36 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:12:36 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.3:5000/favicon.ico\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:12:40 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /go-gru HTTP/1.1\", upstream: \"http://172.17.0.3:5000/go-gru\", host: \"example.com\"\r\n2016/03/14 21:12:40 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD /go-gru HTTP/1.1\", upstream: \"http://172.17.0.3:5000/go-gru\", host: \"example.com\", referrer: \"http://example.com/go-gru\"\r\n2016/03/14 21:12:40 [error] 7158#0: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.3:5000/favicon.ico\", host: \"example.com\", referrer: \"http://example.com/go-gru\"\r\n2016/03/14 21:15:24 [error] 7158#0: *36 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\"\r\n2016/03/14 21:15:24 [error] 7158#0: *36 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:15:25 [error] 7158#0: *36 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.3:5000/favicon.ico\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:34:45 [error] 10092#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\"\r\n2016/03/14 21:34:45 [error] 10092#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:34:46 [error] 10092#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.3:5000/favicon.ico\", host: \"example.com\", referrer: \"http://example.com/\"\r\n2016/03/14 21:42:44 [error] 10092#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.3:5000/\", host: \"0.0.0.0\"\r\n2016/03/14 21:44:45 [error] 19314#0: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.4:5000/\", host: \"0.0.0.0\"\r\n2016/03/14 21:45:19 [error] 19314#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET / HTTP/1.1\", upstream: \"http://172.17.0.4:5000/\", host: \"0.0.0.0\"\r\n2016/03/14 21:45:19 [error] 19314#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"HEAD / HTTP/1.1\", upstream: \"http://172.17.0.4:5000/\", host: \"0.0.0.0\", referrer: \"http://0.0.0.0/\"\r\n2016/03/14 21:45:20 [error] 19314#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 10.23.3.124, server: go-gru.example.com, request: \"GET /favicon.ico HTTP/1.1\", upstream: \"http://172.17.0.4:5000/favicon.ico\", host: \"0.0.0.0\", referrer: \"http://0.0.0.0/\"\r\n\r\n```"}}