{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fbctf/issues/234","repository_url":"https://api.github.com/repos/facebook/fbctf","labels_url":"https://api.github.com/repos/facebook/fbctf/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fbctf/issues/234/comments","events_url":"https://api.github.com/repos/facebook/fbctf/issues/234/events","html_url":"https://github.com/facebook/fbctf/issues/234","id":179329474,"number":234,"title":"\"502 Bad Gateway\" NGINX error when HHVM does not start on virtual machine restart","user":{"login":"eeeehaw","id":19915509,"avatar_url":"https://avatars.githubusercontent.com/u/19915509?v=3","gravatar_id":"","url":"https://api.github.com/users/eeeehaw","html_url":"https://github.com/eeeehaw","followers_url":"https://api.github.com/users/eeeehaw/followers","following_url":"https://api.github.com/users/eeeehaw/following{/other_user}","gists_url":"https://api.github.com/users/eeeehaw/gists{/gist_id}","starred_url":"https://api.github.com/users/eeeehaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeeehaw/subscriptions","organizations_url":"https://api.github.com/users/eeeehaw/orgs","repos_url":"https://api.github.com/users/eeeehaw/repos","events_url":"https://api.github.com/users/eeeehaw/events{/privacy}","received_events_url":"https://api.github.com/users/eeeehaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-26T20:30:34Z","updated_at":"2016-09-27T03:07:51Z","closed_at":null,"body":"I thought I had licked this 502 Bad Gateway error when running FBCTF on Azure, after changing the private internal subnet address space to 10.10.10.0/24 and setting the virtual machine (VM) eth0 IPaddr to 10.10.10.5 (see Closed Issue https://github.com/facebook/fbctf/issues/219 ).  But then I discovered that after restarting the VM, the problem came back.  I then tried Google Cloud and saw the exact same problem occur on that VM, which uses a different hyper-visor.  Of course, both VMs are running Ubuntu 14.04LTS.  'sudo service hhvm status' shows hhvm running after initial provisioning, but not running after the VM is restarted.\r\n\r\nI am able to correct the problem temporarily by re-provisioning FBCTF again ('./extra/provision.sh -m prod -s $PWD'); then everything is back to normal...until the VM is restarted again.  Meanwhile, mysql & nginx services restart properly and run even after hhvm fails to start.  As a volunteer for a high school  cyber security club (= no money aside of volunteer out-of-pocket), I don't want a Azure or Google Cloud VM running when not needed so as to keep my out-of-pocket costs down, thus the need to have those environments stopped when not needed and restarted when needed by admin or students.\r\n\r\nI have posted this problem in the HHVM project Issues page also.  A search on NGINX did not reveal any relevant causes as far as I could determine (altho they emphasized file permissions as a frequent cause).  Could there be a permissions change that occurs during a restart that may be affecting sockets or something else, which I presume would fall into the FBCTF area scripts?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/fbctf/issues/comments/249755079","html_url":"https://github.com/facebook/fbctf/issues/234#issuecomment-249755079","issue_url":"https://api.github.com/repos/facebook/fbctf/issues/234","id":249755079,"user":{"login":"Ttech","id":33771,"avatar_url":"https://avatars.githubusercontent.com/u/33771?v=3","gravatar_id":"","url":"https://api.github.com/users/Ttech","html_url":"https://github.com/Ttech","followers_url":"https://api.github.com/users/Ttech/followers","following_url":"https://api.github.com/users/Ttech/following{/other_user}","gists_url":"https://api.github.com/users/Ttech/gists{/gist_id}","starred_url":"https://api.github.com/users/Ttech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ttech/subscriptions","organizations_url":"https://api.github.com/users/Ttech/orgs","repos_url":"https://api.github.com/users/Ttech/repos","events_url":"https://api.github.com/users/Ttech/events{/privacy}","received_events_url":"https://api.github.com/users/Ttech/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T03:07:51Z","updated_at":"2016-09-27T03:07:51Z","body":"@gsingh93: This was pulled as of yesterday. "}}
{"actor":{"display_login":"Ttech"}}