{"action":"created","issue":{"url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/30","labels_url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/30/comments","events_url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/30/events","html_url":"https://github.com/compmodels/jupyterhub-deploy/issues/30","id":59677510,"number":30,"title":"nginx config is loaded both by","user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T17:42:36Z","updated_at":"2015-03-03T17:58:00Z","closed_at":"2015-03-03T17:58:00Z","body":"when the proxy machine rebooted, an nginx instance on the proxy machine started, with incomplete config, preventing access. To fix it, I stopped the outer nginx instance before relaunching the containers:\r\n\r\n```bash\r\nnginx -s stop\r\ndocker start nginx static-files\r\n```\r\n\r\nI believe this is because the [proxy role](https://github.com/compmodels/jupyterhub-deploy/blob/master/roles/proxy/tasks/main.yml) is putting nginx config where the outer machine will find it, and then copying it to the docker container running the 'real' nginx instance. We aren't intentionally starting the host's nginx, but I think we happen to be putting the config files where the service startup will find it on boot."},"comment":{"url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/comments/76998350","html_url":"https://github.com/compmodels/jupyterhub-deploy/issues/30#issuecomment-76998350","issue_url":"https://api.github.com/repos/compmodels/jupyterhub-deploy/issues/30","id":76998350,"user":{"login":"jhamrick","id":83444,"avatar_url":"https://avatars.githubusercontent.com/u/83444?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamrick","html_url":"https://github.com/jhamrick","followers_url":"https://api.github.com/users/jhamrick/followers","following_url":"https://api.github.com/users/jhamrick/following{/other_user}","gists_url":"https://api.github.com/users/jhamrick/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamrick/subscriptions","organizations_url":"https://api.github.com/users/jhamrick/orgs","repos_url":"https://api.github.com/users/jhamrick/repos","events_url":"https://api.github.com/users/jhamrick/events{/privacy}","received_events_url":"https://api.github.com/users/jhamrick/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T17:58:00Z","updated_at":"2015-03-03T17:58:00Z","body":"I *think* this should just be fixed by setting the `nginx_config_dir` variable in ansible to somewhere different, and then making sure nginx isn't configured to boot on startup."}}