{"action":"created","issue":{"url":"https://api.github.com/repos/api-platform/api-platform/issues/735","repository_url":"https://api.github.com/repos/api-platform/api-platform","labels_url":"https://api.github.com/repos/api-platform/api-platform/issues/735/labels{/name}","comments_url":"https://api.github.com/repos/api-platform/api-platform/issues/735/comments","events_url":"https://api.github.com/repos/api-platform/api-platform/issues/735/events","html_url":"https://github.com/api-platform/api-platform/issues/735","id":336283398,"node_id":"MDU6SXNzdWUzMzYyODMzOTg=","number":735,"title":"502 Bad Gateway - php container missing ip address","user":{"login":"MartinSkytte","id":7711805,"node_id":"MDQ6VXNlcjc3MTE4MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/7711805?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinSkytte","html_url":"https://github.com/MartinSkytte","followers_url":"https://api.github.com/users/MartinSkytte/followers","following_url":"https://api.github.com/users/MartinSkytte/following{/other_user}","gists_url":"https://api.github.com/users/MartinSkytte/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinSkytte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinSkytte/subscriptions","organizations_url":"https://api.github.com/users/MartinSkytte/orgs","repos_url":"https://api.github.com/users/MartinSkytte/repos","events_url":"https://api.github.com/users/MartinSkytte/events{/privacy}","received_events_url":"https://api.github.com/users/MartinSkytte/received_events","type":"User","site_admin":false},"labels":[{"id":184113968,"node_id":"MDU6TGFiZWwxODQxMTM5Njg=","url":"https://api.github.com/repos/api-platform/api-platform/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-27T15:39:03Z","updated_at":"2018-06-27T16:51:00Z","closed_at":null,"author_association":"NONE","body":"When following the tutorial, i get a \"502 Bad Gateway\" when trying to access the api.\r\n\r\nI think i have located where the error is but I do not know how to fix it as both docker and api-platform are new to me.\r\n\r\n**The setup**:\r\nwindows 10 home (have also tried windows 10 pro with hyper-v using docker for windows)\r\napi-platform 2.28\r\nvagrant ubuntu box (have also tried directly in windows both versions)\r\ndocker 1.21.2\r\n\r\nThe vagrant setup have been tried on a Macbook and it works there\r\n\r\nWhen looking at the boxes it seems like they are running normal.\r\n\r\nAfter some digging around, i found that the php box is missing an ip address. If i do a\r\n\r\n`docker-compose up -d` \r\n\r\nfollowed quickly by a \r\n\r\n`docker inspect vagrant_php_1`\r\n\r\n`\"Networks\": {\r\n                \"vagrant_default\": {\r\n                    \"IPAMConfig\": null,\r\n                    \"Links\": null,\r\n                    \"Aliases\": [\r\n                        \"php\",\r\n                        \"fe406ae7aa80\"\r\n                    ],\r\n                    \"NetworkID\": \"121b01343a406f9923ad05efcbaa7df2414721d7a07b9fa548fdcc645073c80c\",\r\n                    \"EndpointID\": \"3e6fb3feca8b79fdde7c327e2d31a90c98f9b601eb13dfd4536720cee7f32c37\",\r\n                    \"Gateway\": \"172.18.0.1\",\r\n                    \"IPAddress\": \"172.18.0.5\",\r\n                    \"IPPrefixLen\": 16,\r\n                    \"IPv6Gateway\": \"\",\r\n                    \"GlobalIPv6Address\": \"\",\r\n                    \"GlobalIPv6PrefixLen\": 0,\r\n                    \"MacAddress\": \"02:42:ac:12:00:05\"\r\n                }\r\n}`\r\n\r\nI can see a ip address, but if I do it again the ip address is gone.\r\n\r\n`\"Networks\": {\r\n                \"vagrant_default\": {\r\n                    \"IPAMConfig\": null,\r\n                    \"Links\": null,\r\n                    \"Aliases\": [\r\n                        \"php\",\r\n                        \"fe406ae7aa80\"\r\n                    ],\r\n                    \"NetworkID\": \"121b01343a406f9923ad05efcbaa7df2414721d7a07b9fa548fdcc645073c80c\",\r\n                    \"EndpointID\": \"\",\r\n                    \"Gateway\": \"\",\r\n                    \"IPAddress\": \"\",\r\n                    \"IPPrefixLen\": 0,\r\n                    \"IPv6Gateway\": \"\",\r\n                    \"GlobalIPv6Address\": \"\",\r\n                    \"GlobalIPv6PrefixLen\": 0,\r\n                    \"MacAddress\": \"\"\r\n                }\r\n}`\r\n\r\nIf I take a look at the network vagrant_default the php box is also not listed\r\n\r\n`docker network inspect vagrant_default`\r\n\r\n`\"Containers\": {\r\n            \"409841bbb3df4b48d24256b3970de3754f35e2f38fbb3a53ef037103b6a8d176\": {\r\n                \"Name\": \"vagrant_db_1\",\r\n                \"EndpointID\": \"e6a24ae5dd52d2eea2424580d6ab4c151b98f6b2ddbf49b5835d54f53ee31ff0\",\r\n                \"MacAddress\": \"02:42:ac:12:00:02\",\r\n                \"IPv4Address\": \"172.18.0.2/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"c0306df00d9db6269693e7324905ea75c67104b42acfc11fd7cddd91b27a3f48\": {\r\n                \"Name\": \"vagrant_api_1\",\r\n                \"EndpointID\": \"4e4aed27c7593c64e1c031a46124e6dfdfc76b058056af1a8a76f0b5f3ec6ea8\",\r\n                \"MacAddress\": \"02:42:ac:12:00:06\",\r\n                \"IPv4Address\": \"172.18.0.6/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"d527197edd78c62f65e89c6241a4116e11f6e2f57a80e721d206fb0f746c5624\": {\r\n                \"Name\": \"vagrant_admin_1\",\r\n                \"EndpointID\": \"5a32759b373d2c2e335df6ec89b52b08686d3455b9290938f2173634f41e618c\",\r\n                \"MacAddress\": \"02:42:ac:12:00:04\",\r\n                \"IPv4Address\": \"172.18.0.4/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"e40797968a67eb79ee6fb2ba4debac5c91839a3a4e62fe148372dde7e0ff4949\": {\r\n                \"Name\": \"vagrant_h2-proxy_1\",\r\n                \"EndpointID\": \"b875b45b80d35b7c0040e6218b7425ce3e88a6d3887763bd06bfcb6886509dac\",\r\n                \"MacAddress\": \"02:42:ac:12:00:08\",\r\n                \"IPv4Address\": \"172.18.0.8/16\",\r\n                \"IPv6Address\": \"\"\r\n            },\r\n            \"f297e67b4a4e9a3a0b3a5a7058d04d40d7e047cddd1d4b066df16038cc75a011\": {\r\n                \"Name\": \"vagrant_client_1\",\r\n                \"EndpointID\": \"89ff63c2f8255350bbc1d6093b132ad414b2b72971f073076ca9f58aea08418f\",\r\n                \"MacAddress\": \"02:42:ac:12:00:03\",\r\n                \"IPv4Address\": \"172.18.0.3/16\",\r\n                \"IPv6Address\": \"\"\r\n            }\r\n}`\r\n\r\nAnyone who have had this problem, or do know how to solve it?"},"comment":{"url":"https://api.github.com/repos/api-platform/api-platform/issues/comments/400751541","html_url":"https://github.com/api-platform/api-platform/issues/735#issuecomment-400751541","issue_url":"https://api.github.com/repos/api-platform/api-platform/issues/735","id":400751541,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc1MTU0MQ==","user":{"login":"MartinSkytte","id":7711805,"node_id":"MDQ6VXNlcjc3MTE4MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/7711805?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinSkytte","html_url":"https://github.com/MartinSkytte","followers_url":"https://api.github.com/users/MartinSkytte/followers","following_url":"https://api.github.com/users/MartinSkytte/following{/other_user}","gists_url":"https://api.github.com/users/MartinSkytte/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinSkytte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinSkytte/subscriptions","organizations_url":"https://api.github.com/users/MartinSkytte/orgs","repos_url":"https://api.github.com/users/MartinSkytte/repos","events_url":"https://api.github.com/users/MartinSkytte/events{/privacy}","received_events_url":"https://api.github.com/users/MartinSkytte/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T16:51:00Z","updated_at":"2018-06-27T16:51:00Z","author_association":"NONE","body":"Just tried it, and it did not work.\r\n\r\n`\r\nphp_1          | Loading composer repositories with package information\r\nphp_1          | Installing dependencies (including require-dev) from lock file\r\nphp_1          | Nothing to install or update\r\nphp_1          | Generating autoload files\r\nphp_1          | Executing script cache:clear [OK]\r\nphp_1          | \r\nphp_1          | Executing script assets:install [OK]\r\nphp_1          | /usr/local/bin/docker-entrypoint: line 20: bin/console: Permission denied\r\nvagrant_php_1 exited with code 126\r\n`\r\n\r\nStill with a permission denied"}}
{"actor":{"display_login":"MartinSkytte"}}