{"action":"opened","issue":{"url":"https://api.github.com/repos/Kaixhin/FGLab/issues/20","repository_url":"https://api.github.com/repos/Kaixhin/FGLab","labels_url":"https://api.github.com/repos/Kaixhin/FGLab/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Kaixhin/FGLab/issues/20/comments","events_url":"https://api.github.com/repos/Kaixhin/FGLab/issues/20/events","html_url":"https://github.com/Kaixhin/FGLab/issues/20","id":175136392,"number":20,"title":"Heroku App: cannot use any FGMachines ({\"error\":\"No machine capacity available\"})","user":{"login":"asmith26","id":6988036,"avatar_url":"https://avatars.githubusercontent.com/u/6988036?v=3","gravatar_id":"","url":"https://api.github.com/users/asmith26","html_url":"https://github.com/asmith26","followers_url":"https://api.github.com/users/asmith26/followers","following_url":"https://api.github.com/users/asmith26/following{/other_user}","gists_url":"https://api.github.com/users/asmith26/gists{/gist_id}","starred_url":"https://api.github.com/users/asmith26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmith26/subscriptions","organizations_url":"https://api.github.com/users/asmith26/orgs","repos_url":"https://api.github.com/users/asmith26/repos","events_url":"https://api.github.com/users/asmith26/events{/privacy}","received_events_url":"https://api.github.com/users/asmith26/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-05T23:29:24Z","updated_at":"2016-09-05T23:29:24Z","closed_at":null,"body":"I've read all documentation and was trying to run the Bayesian Optimisation example through the Heroku app, but at [Step 5 of the \"Quickstart\" of the github.io documentation](https://kaixhin.github.io/FGLab/), when I click the add button/drop-down menu nothing happens (no options, messages, errors...). Indeed, when I try and Submit a new experiment I get `{\"error\":\"No machine capacity available\"}`\r\n\r\nThus I tried to deploy FGLab and FGMachine locally via docker, but I'm still having problems with FGMachines:\r\n```\r\n$ docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES\r\nacf5d5ea7a73        kaixhin/fgmachine   \"node machine\"           10 minutes ago      Up 10 minutes       0.0.0.0:5081->5081/tcp   fgmachine\r\n7523ba457713        kaixhin/fglab       \"node lab\"               2 hours ago         Up 2 hours          0.0.0.0:5080->5080/tcp   fglab\r\n4e01d03b0ae2        mongo               \"/entrypoint.sh mongo\"   2 hours ago         Up 2 hours          27017/tcp                mongodb\r\n\r\n$ docker logs fgmachine\r\nServer listening on port null\r\n{ RequestError: Error: Invalid protocol: <MY LAN IP>:\r\n    at new RequestError (/root/FGMachine/node_modules/request-promise-core/lib/errors.js:14:15)\r\n    at Request.plumbing.callback (/root/FGMachine/node_modules/request-promise-core/lib/plumbing.js:87:29)\r\n    at Request.RP$callback [as _callback] (/root/FGMachine/node_modules/request-promise-core/lib/plumbing.js:46:31)\r\n    at self.callback (/root/FGMachine/node_modules/request/request.js:187:22)\r\n    at emitOne (events.js:96:13)\r\n    at Request.emit (events.js:188:7)\r\n    at Request.init (/root/FGMachine/node_modules/request/request.js:460:17)\r\n    at Request.RP$initInterceptor [as init] (/root/FGMachine/node_modules/request-promise-core/configure/request2.js:45:29)\r\n    at new Request (/root/FGMachine/node_modules/request/request.js:129:8)\r\n    at request (/root/FGMachine/node_modules/request/index.js:55:10)\r\n    at fs.readFile.then.catch (/root/FGMachine/machine.js:80:3)\r\n  name: 'RequestError',\r\n  message: 'Error: Invalid protocol: <MY LAN IP>:',\r\n  cause: \r\n   Error: Invalid protocol: <MY LAN IP>:\r\n       at Request.init (/root/FGMachine/node_modules/request/request.js:460:31)\r\n       at Request.RP$initInterceptor [as init] (/root/FGMachine/node_modules/request-promise-core/configure/request2.js:45:29)\r\n       at new Request (/root/FGMachine/node_modules/request/request.js:129:8)\r\n       at request (/root/FGMachine/node_modules/request/index.js:55:10)\r\n       at fs.readFile.then.catch (/root/FGMachine/machine.js:80:3),\r\n  error: \r\n   Error: Invalid protocol: <MY LAN IP>:\r\n       at Request.init (/root/FGMachine/node_modules/request/request.js:460:31)\r\n       at Request.RP$initInterceptor [as init] (/root/FGMachine/node_modules/request-promise-core/configure/request2.js:45:29)\r\n       at new Request (/root/FGMachine/node_modules/request/request.js:129:8)\r\n       at request (/root/FGMachine/node_modules/request/index.js:55:10)\r\n       at fs.readFile.then.catch (/root/FGMachine/machine.js:80:3),\r\n  options: \r\n   { uri: '<MY LAN IP>:5080/api/v1/machines',\r\n     method: 'POST',\r\n     json: \r\n      { address: 'localhost:5081',\r\n        hostname: 'asmith26',\r\n        os: [Object],\r\n        cpus: [Object],\r\n        mem: '7.72GB',\r\n        gpus: [] },\r\n     gzip: true,\r\n     callback: [Function: RP$callback],\r\n     transform: undefined,\r\n     simple: true,\r\n     resolveWithFullResponse: false,\r\n     transform2xxOnly: false },\r\n  response: undefined }\r\n```\r\n\r\nI've tried:\r\n```\r\n docker run -d --name fgmachine -h $(hostname) -v /var/run/docker.sock:/var/run/docker.sock -e FGLAB_URL=<MY LAN IP>:5080 -e FGMACHINE_URL=<MY LAN IP>:5081 -p 5081:5081 kaixhin/fgmachine\r\n```\r\nand\r\n```\r\ndocker run -d --name fgmachine -h $(hostname) -v /var/run/docker.sock:/var/run/docker.sock -e FGLAB_URL=<MY LAN IP>:5080 -e FGMACHINE_URL=localhost:5081 -p 5081:5081 kaixhin/fgmachine\r\n```\r\n\r\nThank you for any help in advance!"}}
{"actor":{"display_login":"asmith26"}}