{"action":"created","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/438","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/438/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/438/events","html_url":"https://github.com/jwilder/nginx-proxy/issues/438","id":152494197,"number":438,"title":"Error: no servers are inside upstream in","user":{"login":"mrvini","id":239840,"avatar_url":"https://avatars.githubusercontent.com/u/239840?v=3","gravatar_id":"","url":"https://api.github.com/users/mrvini","html_url":"https://github.com/mrvini","followers_url":"https://api.github.com/users/mrvini/followers","following_url":"https://api.github.com/users/mrvini/following{/other_user}","gists_url":"https://api.github.com/users/mrvini/gists{/gist_id}","starred_url":"https://api.github.com/users/mrvini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrvini/subscriptions","organizations_url":"https://api.github.com/users/mrvini/orgs","repos_url":"https://api.github.com/users/mrvini/repos","events_url":"https://api.github.com/users/mrvini/events{/privacy}","received_events_url":"https://api.github.com/users/mrvini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-02T07:18:43Z","updated_at":"2016-05-03T09:10:53Z","closed_at":null,"body":"I've updated my proxy image today, and tried to restart all my other containers behind the proxy, however all of them failed, am I doing something wrong? ( i did follow explanations in issue #64, however that didn't help)\r\n\r\nproxy\r\n```\r\ndocker run -d --name nginx-proxy \\\r\n    -p 80:80 -p 443:443 \\\r\n    --restart=always \\\r\n    -v /opt/my-certs:/etc/nginx/certs \\\r\n    -v /var/run/docker.sock:/tmp/docker.sock:ro \\\r\n    jwilder/nginx-proxy\r\n```\r\n\r\nmy dev container (nodejs)  built locally and it exposes port 8181\r\n\r\n```\r\ndocker run -d --name www.dev1 \\\r\n    --restart=always \\\r\n    --link db --link redis \\\r\n    -e VIRTUAL_PORT=8181 \\\r\n    -e VIRTUAL_PROTO=https \\\r\n    -e VIRTUAL_HOST=dev1.mysite.com \\\r\n    -v /opt/my-volume/web/dev1/:/opt/my-volume/web/ \\\r\n    -v /opt/my-certs:/opt/my-certs:ro \\\r\n    -w /opt/my-volume/web/ localhost:5000/www \\\r\n    bash -c 'npm start server.js'\r\n```\r\n\r\nRight before I run dev container, i can see output of nginx -t\r\n```\r\nroot@fba41f832f35:/app# nginx -t  \r\nnginx: the configuration file /etc/nginx/nginx.conf syntax is ok\r\nnginx: configuration file /etc/nginx/nginx.conf test is successful\r\n```\r\nAfter I start dev container, i see the following\r\n\r\n```\r\nroot@fba41f832f35:/app# nginx -t        \r\n2016/05/02 07:15:49 [emerg] 69#69: no servers are inside upstream in /etc/nginx/conf.d/default.conf:34\r\nnginx: [emerg] no servers are inside upstream in /etc/nginx/conf.d/default.conf:34\r\nnginx: configuration file /etc/nginx/nginx.conf test failed\r\n```\r\n\r\nwhen I check  /etc/nginx/conf.d/default.conf i see empty upstream\r\n```\r\nupstream dev1.mysite.com {\r\n}\r\n```\r\nIs there anything I am doing wrong? I've been using same startup script for a good 6 month and it used to work right before I pulled the new image, did anything changed? Please help\r\n"},"comment":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/comments/216474562","html_url":"https://github.com/jwilder/nginx-proxy/issues/438#issuecomment-216474562","issue_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/438","id":216474562,"user":{"login":"benzht","id":1212766,"avatar_url":"https://avatars.githubusercontent.com/u/1212766?v=3","gravatar_id":"","url":"https://api.github.com/users/benzht","html_url":"https://github.com/benzht","followers_url":"https://api.github.com/users/benzht/followers","following_url":"https://api.github.com/users/benzht/following{/other_user}","gists_url":"https://api.github.com/users/benzht/gists{/gist_id}","starred_url":"https://api.github.com/users/benzht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benzht/subscriptions","organizations_url":"https://api.github.com/users/benzht/orgs","repos_url":"https://api.github.com/users/benzht/repos","events_url":"https://api.github.com/users/benzht/events{/privacy}","received_events_url":"https://api.github.com/users/benzht/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T09:10:53Z","updated_at":"2016-05-03T09:10:53Z","body":"machine1 and machine2 have revprox-environment variables set\r\n```\r\n[\r\n    {\r\n        \"Name\": \"bridge\",\r\n        \"Id\": \"12562cb7079b3b4061e12545ac7f795a2f8954f7f40a16c1525d77be890de2cf\",\r\n        \"Scope\": \"local\",\r\n        \"Driver\": \"bridge\",\r\n        \"EnableIPv6\": false,\r\n        \"IPAM\": {\r\n            \"Driver\": \"default\",\r\n            \"Options\": null,\r\n            \"Config\": [\r\n                {\r\n                    \"Subnet\": \"172.17.0.0/16\"\r\n                }\r\n            ]\r\n        },\r\n        \"Internal\": false,\r\n        \"Containers\": {\r\n            \"2802bd663583505b77370c9088403f2bfee45991a62d1258dfd835659ac5b857\": {\r\n                \"Name\": \"machine1\",\r\n                \"EndpointID\": \"1f726b852ff0d3e077877697f9162ec48557de77373804f052f80171dde12562\",\r\n                \"MacAddress\": \"02:42:ac:11:00:06\",\r\n                \"IPv4Address\": \"172.17.0.6/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"633c10d347a82f5d1f0f8af0ab15fa48913735b6f05f307c37c0a7a473214e1a\": {\r\n                \"Name\": \"machine2\",\r\n                \"EndpointID\": \"c8ae9dbc77862d79f4217755892f96dc294896f4663b0f00fa82a8367c7f9263\",\r\n                \"MacAddress\": \"02:42:ac:11:00:05\",\r\n                \"IPv4Address\": \"172.17.0.5/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"ab875c71a13a435c9e152c5464dcb567475057405dc9ab6e5c9941d57d854b56\": {\r\n                \"Name\": \"pg\",\r\n                \"EndpointID\": \"1303f351679a69ab05c9bc9947f28f165d01a1841545b1416a914b4f2e4266a8\",\r\n                \"MacAddress\": \"02:42:ac:11:00:04\",\r\n                \"IPv4Address\": \"172.17.0.4/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"bcb350d31152ed4cae3ae50226c38650f2b47d91f709664d0e05e36d7e8abe6c\": {\r\n                \"Name\": \"nginx\",\r\n                \"EndpointID\": \"f0ac2c422780598843209dffdb0b89d7c7ae7baa821d0547bba7b4acc5605773\",\r\n                \"MacAddress\": \"02:42:ac:11:00:02\",\r\n                \"IPv4Address\": \"172.17.0.2/16\",\r\n                \"IPv6Address\": \"\"\r\n            }\r\n        },\r\n        \"Options\": {\r\n            \"com.docker.network.bridge.default_bridge\": \"true\",\r\n            \"com.docker.network.bridge.enable_icc\": \"true\",\r\n            \"com.docker.network.bridge.enable_ip_masquerade\": \"true\",\r\n            \"com.docker.network.bridge.host_binding_ipv4\": \"0.0.0.0\",\r\n            \"com.docker.network.bridge.name\": \"docker0\",\r\n            \"com.docker.network.driver.mtu\": \"1500\"\r\n        },\r\n        \"Labels\": {}\r\n    },\r\n    {\r\n        \"Name\": \"host\",\r\n        \"Id\": \"2da3ced6d4504489e820f0fb5353cd01adfd7000804a687dba6c1424bd5c17c4\",\r\n        \"Scope\": \"local\",\r\n        \"Driver\": \"host\",\r\n        \"EnableIPv6\": false,\r\n        \"IPAM\": {\r\n            \"Driver\": \"default\",\r\n            \"Options\": null,\r\n            \"Config\": []\r\n        },\r\n        \"Internal\": false,\r\n        \"Containers\": {},\r\n        \"Options\": {},\r\n        \"Labels\": {}\r\n    },\r\n    {\r\n        \"Name\": \"none\",\r\n        \"Id\": \"069bd7fedaf4ce732eb5e9ac645d995befd24aa4aa91828116c49555ad3ea9a5\",\r\n        \"Scope\": \"local\",\r\n        \"Driver\": \"null\",\r\n        \"EnableIPv6\": false,\r\n        \"IPAM\": {\r\n            \"Driver\": \"default\",\r\n            \"Options\": null,\r\n            \"Config\": []\r\n        },\r\n        \"Internal\": false,\r\n        \"Containers\": {},\r\n        \"Options\": {},\r\n        \"Labels\": {}\r\n    }\r\n]\r\n```"}}